aboutsummaryrefslogtreecommitdiff
path: root/graphics/py-visual
diff options
context:
space:
mode:
authorSam Lawrance <lawrance@FreeBSD.org>2006-05-03 13:55:09 +0000
committerSam Lawrance <lawrance@FreeBSD.org>2006-05-03 13:55:09 +0000
commit1e476a33307db3d7f6b98ea8e311eef14c9b0586 (patch)
tree5b4b2cebc33c25dfab5f0856e20cc82588a60d46 /graphics/py-visual
parentb92465886e398ddaa8f050554d95b3a5959246c4 (diff)
downloadports-1e476a33307db3d7f6b98ea8e311eef14c9b0586.tar.gz
ports-1e476a33307db3d7f6b98ea8e311eef14c9b0586.zip
Notes
Diffstat (limited to 'graphics/py-visual')
-rw-r--r--graphics/py-visual/Makefile17
-rw-r--r--graphics/py-visual/distinfo6
-rw-r--r--graphics/py-visual/pkg-plist66
3 files changed, 49 insertions, 40 deletions
diff --git a/graphics/py-visual/Makefile b/graphics/py-visual/Makefile
index 47e1ecb9cd4e..efd749ac4820 100644
--- a/graphics/py-visual/Makefile
+++ b/graphics/py-visual/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= visual
-PORTVERSION= 3.2.7
-PORTREVISION= 1
+PORTVERSION= 3.2.9
CATEGORIES= graphics python
MASTER_SITES= http://www.vpython.org/download/ \
${MASTER_SITE_SOURCEFORGE}
@@ -28,9 +27,11 @@ USE_GNOME= gtk12
USE_PYTHON= 2.3+
USE_XLIB= yes
+OPTIONS= EXAMPLES "install example files" on
+OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options
+
GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --with-html-dir=${DOCSDIR} \
- --with-example-dir=${EXAMPLESDIR}
+CONFIGURE_ARGS= --with-html-dir=${DOCSDIR}
CONFIGURE_ENV= PYTHONPATH=${PYTHON_LIBDIR}
.if defined(NOPORTDOCS)
CONFIGURE_ARGS+= --disable-docs
@@ -48,6 +49,14 @@ BROKEN= does not compile
IGNORE= loops infinitely during build
.endif
+.if !defined(WITH_EXAMPLES)
+CONFIGURE_ARGS+= --disable-examples
+PLIST_SUB+= PORTEXAMPLES="@comment "
+.else
+CONFIGURE_ARGS+= --with-example-dir=${EXAMPLESDIR}
+PLIST_SUB+= PORTEXAMPLES=""
+.endif
+
post-patch:
@cd ${WRKSRC}; \
${REINPLACE_CMD} -e 's|%%PYTHONBASE%%|${PYTHONBASE}|g' \
diff --git a/graphics/py-visual/distinfo b/graphics/py-visual/distinfo
index 13e2710f8281..ecb2a6b749e6 100644
--- a/graphics/py-visual/distinfo
+++ b/graphics/py-visual/distinfo
@@ -1,3 +1,3 @@
-MD5 (visual-3.2.7.tar.bz2) = 3fd2ac486835f1412833022776df1aab
-SHA256 (visual-3.2.7.tar.bz2) = 7c644884f6ab60f4bfda048348ecf7cdf97f1b18b3bda8f61c163468a931e921
-SIZE (visual-3.2.7.tar.bz2) = 414863
+MD5 (visual-3.2.9.tar.bz2) = 58e46ecb628a4fdbb5c58540b6cbede1
+SHA256 (visual-3.2.9.tar.bz2) = 613df56208b668f7ebe9fbebc862d5684883ab27658fb8a89c8c05d5e1720f49
+SIZE (visual-3.2.9.tar.bz2) = 419962
diff --git a/graphics/py-visual/pkg-plist b/graphics/py-visual/pkg-plist
index 9dd819c6f9eb..4068bdd559db 100644
--- a/graphics/py-visual/pkg-plist
+++ b/graphics/py-visual/pkg-plist
@@ -85,40 +85,40 @@ bin/vpython
%%PORTDOCS%%%%DOCSDIR%%/visual/sphere.html
%%PORTDOCS%%%%DOCSDIR%%/visual/spherebox.gif
%%PORTDOCS%%%%DOCSDIR%%/visual/vector.html
-%%EXAMPLESDIR%%/Tk-Visual.py
-%%EXAMPLESDIR%%/bounce.py
-%%EXAMPLESDIR%%/bounce2.py
-%%EXAMPLESDIR%%/colorsliders.py
-%%EXAMPLESDIR%%/controlstest.py
-%%EXAMPLESDIR%%/convex.py
-%%EXAMPLESDIR%%/crossproduct.py
-%%EXAMPLESDIR%%/crystal.py
-%%EXAMPLESDIR%%/dipole.py
-%%EXAMPLESDIR%%/doublependulum.py
-%%EXAMPLESDIR%%/drape.py
-%%EXAMPLESDIR%%/faces_cone.py
-%%EXAMPLESDIR%%/faces_heightfield.py
-%%EXAMPLESDIR%%/gas.py
-%%EXAMPLESDIR%%/glinfo.py
-%%EXAMPLESDIR%%/graphtest.py
-%%EXAMPLESDIR%%/gyro.py
-%%EXAMPLESDIR%%/gyro2.py
-%%EXAMPLESDIR%%/hanoi.py
-%%EXAMPLESDIR%%/lathe.py
-%%EXAMPLESDIR%%/lorenz.py
-%%EXAMPLESDIR%%/orbit.py
-%%EXAMPLESDIR%%/planar.py
-%%EXAMPLESDIR%%/randombox.py
-%%EXAMPLESDIR%%/stars.py
-%%EXAMPLESDIR%%/stonehenge.py
-%%EXAMPLESDIR%%/texttest.py
-%%EXAMPLESDIR%%/tictac.py
-%%EXAMPLESDIR%%/tictacdat.py
-%%EXAMPLESDIR%%/toroid.py
-%%EXAMPLESDIR%%/toroid_drag.py
-%%EXAMPLESDIR%%/wave.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Tk-Visual.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/bounce.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/bounce2.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/colorsliders.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/controlstest.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/convex.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/crossproduct.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/crystal.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/dipole.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/doublependulum.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/drape.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/faces_cone.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/faces_heightfield.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/gas.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/glinfo.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/graphtest.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/gyro.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/gyro2.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/hanoi.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lathe.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lorenz.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/orbit.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/planar.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/randombox.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/stars.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/stonehenge.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/texttest.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/tictac.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/tictacdat.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/toroid.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/toroid_drag.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/wave.py
%%PORTDOCS%%@dirrm %%DOCSDIR%%/visual/icons
%%PORTDOCS%%@dirrm %%DOCSDIR%%/visual
%%PORTDOCS%%@dirrm %%DOCSDIR%%
-@dirrm %%EXAMPLESDIR%%
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
@dirrm %%PYTHON_SITELIBDIR%%/visual