summaryrefslogtreecommitdiff
path: root/devel/py-idle
diff options
context:
space:
mode:
authordarcy <darcy@pkgsrc.org>2005-01-10 16:07:55 +0000
committerdarcy <darcy@pkgsrc.org>2005-01-10 16:07:55 +0000
commitffe4b39e5bc08dae89eedc7a23069a2b4d63232b (patch)
tree2a7644bd9cfe517dbd332081360fadb8a29bd187 /devel/py-idle
parent6347870f6bbf6fab39a95c073c5d9596ccd031a6 (diff)
downloadpkgsrc-ffe4b39e5bc08dae89eedc7a23069a2b4d63232b.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/Makefile12
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"