summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authordrochner <drochner>2003-08-04 08:18:58 +0000
committerdrochner <drochner>2003-08-04 08:18:58 +0000
commit5ab784c7faebf0c35b7eb55396a2894e52f06b4c (patch)
tree37db8dec8661a53209b14a4b5507539a701ed254 /devel
parentbef3cf1ee23227f3e9deaaaca41514b83bb1af0e (diff)
downloadpkgsrc-5ab784c7faebf0c35b7eb55396a2894e52f06b4c.tar.gz
Deal with the changed layout of the "Idle" IDE stuff in Python-2.3:
All the meat coms with the base installation; we just install a small wrapper here.
Diffstat (limited to 'devel')
-rw-r--r--devel/py-idle/Makefile30
1 files changed, 25 insertions, 5 deletions
diff --git a/devel/py-idle/Makefile b/devel/py-idle/Makefile
index e08f70fe48f..6a537d1015e 100644
--- a/devel/py-idle/Makefile
+++ b/devel/py-idle/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2003/07/17 21:33:27 grant Exp $
+# $NetBSD: Makefile,v 1.9 2003/08/04 08:18:58 drochner Exp $
#
PKGNAME= ${PYPKGPREFIX}-idle-0
@@ -11,9 +11,6 @@ COMMENT= IDLE - The Integrated DeveLopment Environment for Python
USE_X11= yes
USE_BUILDLINK2= yes
-EXTRACT_ELEMENTS= ${PYSUBDIR}/Tools/idle/*
-
-PYTHON_PATCH_SCRIPTS= ${WRKSRC}/Tools/idle/idle.py
PLIST_SRC= ${WRKDIR}/.PLIST_SRC
PY_PATCHPLIST= yes
PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX}
@@ -25,6 +22,17 @@ do-patch:
${PATCH} --batch <$$f || true; \
done)
+#
+# With Python-2.3, the Idle code is part of the base library.
+# We just install a wrapper script. Also, threads are required now.
+#
+PYTHON_VERSIONS_ACCEPTED= 20 20pth 21 21pth 22 22pth 23pth
+.include "../../lang/python/extension.mk"
+.if ${PYPKGPREFIX} != "py23pth"
+
+EXTRACT_ELEMENTS= ${PYSUBDIR}/Tools/idle/*
+PYTHON_PATCH_SCRIPTS= ${WRKSRC}/Tools/idle/idle.py
+
do-build:
${PYTHONBIN} ${LOCALBASE}/${PYLIB}/compileall.py ${WRKSRC}/Tools/idle
@@ -39,7 +47,19 @@ do-install:
(cd ${PREFIX}; ${FIND} -d ${PYSITELIB}/idle -type d -print | \
${SED} -e "s/^/@dirrm /" >>${PLIST_SRC})
-.include "../../lang/python/extension.mk"
+.else # py23pth
+
+EXTRACT_ELEMENTS= ${PYSUBDIR}/Tools/scripts/idle
+PYTHON_PATCH_SCRIPTS= ${WRKSRC}/Tools/scripts/idle
+NO_BUILD= yes
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/Tools/scripts/idle \
+ ${PREFIX}/bin/idle${PYVERSSUFFIX}
+ ${CAT} ${PKGDIR}/PLIST.pre >${PLIST_SRC}
+
+.endif # py23pth
+
.include "../../lang/python/srcdist.mk"
.include "../../lang/python/application.mk"
.include "../../x11/py-Tk/buildlink2.mk"