diff options
author | darcy <darcy@pkgsrc.org> | 2005-01-13 21:51:42 +0000 |
---|---|---|
committer | darcy <darcy@pkgsrc.org> | 2005-01-13 21:51:42 +0000 |
commit | 55c825b56d765be414291afe9d21115828b461d4 (patch) | |
tree | e2d10fe144ae100be392514a371dbb4eadb86bac /devel/py-idle | |
parent | 224323427425b8a15fbda54135411716c3f879e2 (diff) | |
download | pkgsrc-55c825b56d765be414291afe9d21115828b461d4.tar.gz |
The last change did not work. The PREFIX variable was not evaluated until
after the .if. Changed it back but added more comments about it.
Diffstat (limited to 'devel/py-idle')
-rw-r--r-- | devel/py-idle/Makefile | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/devel/py-idle/Makefile b/devel/py-idle/Makefile index 665eee1e102..4280c2a9081 100644 --- a/devel/py-idle/Makefile +++ b/devel/py-idle/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.16 2005/01/10 16:07:55 darcy Exp $ +# $NetBSD: Makefile,v 1.17 2005/01/13 21:51:42 darcy Exp $ # PKGNAME= ${PYPKGPREFIX}-idle-0 @@ -24,11 +24,13 @@ do-patch: done) # -# With Python-2.3, the Idle code is part of the base library. +# With Python-2.3 and up, the Idle code is part of the base library. # We just install a wrapper script. Also, threads are required now. +# NOTE: if you add a new version of Python here, add to the following test # PYTHON_VERSIONS_ACCEPTED= 24pth 23pth 22pth 22 21pth 21 20pth 20 -.if !exists(${PREFIX}/${PYLIB}/idlelib/) +.include "../../lang/python/extension.mk" +.if (${PYPKGPREFIX} != "py23pth") && (${PYPKGPREFIX} != "py24pth") EXTRACT_ELEMENTS= ${PYSUBDIR}/Tools/idle/* PYTHON_PATCH_SCRIPTS= Tools/idle/idle.py @@ -47,7 +49,7 @@ do-install: (cd ${PREFIX}; ${FIND} -d ${PYSITELIB}/idle -type d -print | \ ${SED} -e "s/^/@dirrm /" >>${PLIST_SRC}) -.else # py23pth +.else # py23pth and up EXTRACT_ELEMENTS= ${PYSUBDIR}/Tools/scripts/idle PYTHON_PATCH_SCRIPTS= Tools/scripts/idle @@ -60,7 +62,6 @@ do-install: .endif # py23pth and up -.include "../../lang/python/extension.mk" .include "../../lang/python/srcdist.mk" .include "../../lang/python/application.mk" .include "../../x11/py-Tk/buildlink3.mk" |