summaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2000-09-22 11:56:23 +0000
committersobomax <sobomax@FreeBSD.org>2000-09-22 11:56:23 +0000
commit93d07ed23dfd9f33e80f36209a19f6f174fb79a3 (patch)
treefce5533451a172134642b1f8609a7fccdbedfb13 /devel
parent9a3f0edd65a527cbaa3d789ff955ad2891c36980 (diff)
downloadFreeBSD-ports-93d07ed23dfd9f33e80f36209a19f6f174fb79a3.zip
FreeBSD-ports-93d07ed23dfd9f33e80f36209a19f6f174fb79a3.tar.gz
Pythonize.
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 9b9f244..7f72618 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 9b9f244..7f72618 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)
OpenPOWER on IntegriCloud