diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2005-07-19 19:58:07 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2005-07-19 19:58:07 +0000 |
commit | 7bba18f67b0a4509ec10d1d7befc444e52dc47af (patch) | |
tree | 38f8565a8138ddc96e1a993c71fafaddf33d1b7d /graphics/py-visual | |
parent | 8da19709bf7897bc68ea79df937de71946fdf0fd (diff) |
Notes
Diffstat (limited to 'graphics/py-visual')
-rw-r--r-- | graphics/py-visual/Makefile | 11 | ||||
-rw-r--r-- | graphics/py-visual/files/patch-bin-vpython.in | 12 |
2 files changed, 23 insertions, 0 deletions
diff --git a/graphics/py-visual/Makefile b/graphics/py-visual/Makefile index 3133500f47f3..9d086aca5199 100644 --- a/graphics/py-visual/Makefile +++ b/graphics/py-visual/Makefile @@ -7,6 +7,7 @@ PORTNAME= visual PORTVERSION= 3.2.1 +PORTREVISION= 1 CATEGORIES= graphics python MASTER_SITES= http://www.vpython.org/download/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -24,19 +25,29 @@ USE_GMAKE= yes USE_GNOME= gtk12 USE_LIBTOOL_VER= 15 USE_PYTHON= 2.3+ +USE_REINPLACE= yes USE_XLIB= yes GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-html-dir=${DOCSDIR} \ --with-example-dir=${EXAMPLESDIR} +CONFIGURE_ENV= PYTHONPATH=${PYTHON_LIBDIR} .if defined(NOPORTDOCS) CONFIGURE_ARGS+= --disable-docs .endif +VPYTHON_SCRIPT= bin/vpython.in + .include <bsd.port.pre.mk> .if ${OSVERSION} < 500000 BROKEN= "does not compile" .endif +post-patch: + @cd ${WRKSRC}; \ + ${REINPLACE_CMD} -e 's|%%PYTHONBASE%%|${PYTHONBASE}|g' \ + -e 's|%%PYTHON_VERSION%%|${PYTHON_VERSION:S/python//g}|g' \ + ${VPYTHON_SCRIPT} + .include <bsd.port.post.mk> diff --git a/graphics/py-visual/files/patch-bin-vpython.in b/graphics/py-visual/files/patch-bin-vpython.in new file mode 100644 index 000000000000..9a97f8b88270 --- /dev/null +++ b/graphics/py-visual/files/patch-bin-vpython.in @@ -0,0 +1,12 @@ +$FreeBSD$ +--- bin/vpython.in Fri Feb 25 21:39:38 2005 ++++ bin/vpython.in.port Tue Jul 19 10:35:23 2005 +@@ -2,7 +2,7 @@ + # Variables determined by configure. + PYTHON=@PYTHON@ + visualexampledir=@visualexampledir@ +-IDLE=idle ++IDLE=%%PYTHONBASE%%/bin/idle%%PYTHON_VERSION%% + PYTHONPATH=@PYTHONPATH@ + export PYTHONPATH + |