1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00

- Fix idle path in vpython script

PR:		ports/83717
Submitted by:	Nicola Vitale <nivit@email.it> (maintainer)
This commit is contained in:
Pav Lucistnik 2005-07-19 19:58:07 +00:00
parent 8da19709bf
commit 7bba18f67b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=139616
2 changed files with 23 additions and 0 deletions

View File

@ -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>

View File

@ -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