diff options
author | darcy <darcy@pkgsrc.org> | 2005-01-10 16:07:55 +0000 |
---|---|---|
committer | darcy <darcy@pkgsrc.org> | 2005-01-10 16:07:55 +0000 |
commit | 6cd6389c160bc1d58641e52db1e34d90f89d48d3 (patch) | |
tree | 2a7644bd9cfe517dbd332081360fadb8a29bd187 /devel/py-idle | |
parent | c31af6ddae8973944e3cc375ca76c38346223e81 (diff) | |
download | pkgsrc-6cd6389c160bc1d58641e52db1e34d90f89d48d3.tar.gz |
Clean up the test for the version of Python.
Use ${TRUE} instead of true.
Reorder a few lines.
Diffstat (limited to 'devel/py-idle')
-rw-r--r-- | devel/py-idle/Makefile | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/devel/py-idle/Makefile b/devel/py-idle/Makefile index 3a27eb92e64..665eee1e102 100644 --- a/devel/py-idle/Makefile +++ b/devel/py-idle/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.15 2005/01/08 19:40:37 perry Exp $ +# $NetBSD: Makefile,v 1.16 2005/01/10 16:07:55 darcy Exp $ # PKGNAME= ${PYPKGPREFIX}-idle-0 @@ -20,16 +20,15 @@ PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX} do-patch: (cd ${WRKSRC}; \ for f in ${PATCHDIR}/patch-*;do \ - ${PATCH} --batch <$$f || true; \ + ${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 24pth -.include "../../lang/python/extension.mk" -.if (${PYPKGPREFIX} != "py23pth") && (${PYPKGPREFIX} != "py24pth") +PYTHON_VERSIONS_ACCEPTED= 24pth 23pth 22pth 22 21pth 21 20pth 20 +.if !exists(${PREFIX}/${PYLIB}/idlelib/) EXTRACT_ELEMENTS= ${PYSUBDIR}/Tools/idle/* PYTHON_PATCH_SCRIPTS= Tools/idle/idle.py @@ -59,8 +58,9 @@ do-install: ${PREFIX}/bin/idle${PYVERSSUFFIX} ${CAT} ${PKGDIR}/PLIST.pre >${PLIST_SRC} -.endif # py23pth +.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" |