aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
Diffstat (limited to 'devel')
-rw-r--r--devel/idle/Makefile11
-rw-r--r--devel/idlefork/Makefile11
2 files changed, 12 insertions, 10 deletions
diff --git a/devel/idle/Makefile b/devel/idle/Makefile
index 9b9f244119ba..7f72618b4bf2 100644
--- a/devel/idle/Makefile
+++ b/devel/idle/Makefile
@@ -13,19 +13,20 @@ EXTRACT_SUFX= .tgz
MAINTAINER= sobomax@FreeBSD.org
-BUILD_DEPENDS= ${LOCALBASE}/bin/python:${PORTSDIR}/lang/python
-RUN_DEPENDS= ${LOCALBASE}/lib/python1.5/site-packages/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter
+RUN_DEPENDS= ${PYTHON_LIBDIR}/site-packages/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter
+
+USE_PYTHON= yes
+PYTHON_VERSION= python1.5
do-build:
- ${LOCALBASE}/bin/python \
- ${LOCALBASE}/lib/python1.5/compileall.py ${WRKSRC}
+ ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
do-install:
@${MKDIR} ${PREFIX}/share/idle/Icons
@cd ${WRKSRC} && \
${INSTALL_DATA} *.py? help.txt ${PREFIX}/share/idle
@${INSTALL_DATA} ${WRKSRC}/Icons/* ${PREFIX}/share/idle/Icons
- @printf "#!/bin/sh\n${LOCALBASE}/bin/python ${PREFIX}/share/idle/idle.pyc\n" \
+ @printf "#!/bin/sh\n${PYTHON_CMD} ${PREFIX}/share/idle/idle.pyc\n" \
> ${WRKDIR}/idle.sh
@${INSTALL_SCRIPT} ${WRKDIR}/idle.sh ${PREFIX}/bin/idle
.if !defined(NOPORTDOCS)
diff --git a/devel/idlefork/Makefile b/devel/idlefork/Makefile
index 9b9f244119ba..7f72618b4bf2 100644
--- a/devel/idlefork/Makefile
+++ b/devel/idlefork/Makefile
@@ -13,19 +13,20 @@ EXTRACT_SUFX= .tgz
MAINTAINER= sobomax@FreeBSD.org
-BUILD_DEPENDS= ${LOCALBASE}/bin/python:${PORTSDIR}/lang/python
-RUN_DEPENDS= ${LOCALBASE}/lib/python1.5/site-packages/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter
+RUN_DEPENDS= ${PYTHON_LIBDIR}/site-packages/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter
+
+USE_PYTHON= yes
+PYTHON_VERSION= python1.5
do-build:
- ${LOCALBASE}/bin/python \
- ${LOCALBASE}/lib/python1.5/compileall.py ${WRKSRC}
+ ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
do-install:
@${MKDIR} ${PREFIX}/share/idle/Icons
@cd ${WRKSRC} && \
${INSTALL_DATA} *.py? help.txt ${PREFIX}/share/idle
@${INSTALL_DATA} ${WRKSRC}/Icons/* ${PREFIX}/share/idle/Icons
- @printf "#!/bin/sh\n${LOCALBASE}/bin/python ${PREFIX}/share/idle/idle.pyc\n" \
+ @printf "#!/bin/sh\n${PYTHON_CMD} ${PREFIX}/share/idle/idle.pyc\n" \
> ${WRKDIR}/idle.sh
@${INSTALL_SCRIPT} ${WRKDIR}/idle.sh ${PREFIX}/bin/idle
.if !defined(NOPORTDOCS)