summaryrefslogtreecommitdiff
path: root/lang/python24
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2006-03-13 12:59:08 +0000
committerrillig <rillig@pkgsrc.org>2006-03-13 12:59:08 +0000
commit4c92317d261a88e83e9bf9625ee45eedbaa62edd (patch)
treecb4c6639baa2df8b349aff339e5bbb9fb42decf4 /lang/python24
parent2a67dceaae5305f2b755085d9a57a2be54a952f9 (diff)
downloadpkgsrc-4c92317d261a88e83e9bf9625ee45eedbaa62edd.tar.gz
Fixed the interpreter paths of some installed Python programs. Bumped
PKGREVISION.
Diffstat (limited to 'lang/python24')
-rw-r--r--lang/python24/Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/lang/python24/Makefile b/lang/python24/Makefile
index 875abbd7f35..1bc46b3a4fb 100644
--- a/lang/python24/Makefile
+++ b/lang/python24/Makefile
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.21 2006/03/09 21:04:44 jlam Exp $
+# $NetBSD: Makefile,v 1.22 2006/03/13 12:59:08 rillig Exp $
#
DISTNAME= Python-2.4.2
PKGNAME= python24-2.4.2
-PKGREVISION= 4
+PKGREVISION= 5
CATEGORIES= lang python
MASTER_SITES= ftp://ftp.python.org/pub/python/2.4.2/
EXTRACT_SUFX= .tar.bz2
@@ -111,6 +111,13 @@ PLIST_SUBST+= PY_VER_SUFFIX=${PY_VER_SUFFIX:Q}
TEST_TARGET= test
INSTALL_TARGET= altinstall
+REPLACE_INTERPRETER+= py24
+REPLACE.py24.old= .*python[^ ]*
+REPLACE.py24.new= ${PREFIX}/bin/python${PY_VER_SUFFIX}
+REPLACE_FILES.py24= Lib/cgi.py # explicitly demanded to be patched
+REPLACE_FILES.py24+= Lib/bsddb/dbshelve.py Lib/test/test_bz2.py
+REPLACE_FILES.py24+= Lib/test/test_largefile.py Lib/test/test_optparse.py
+
post-extract:
${MV} ${WRKSRC}/Lib/smtpd.py ${WRKSRC}/Lib/smtpd${PY_VER_SUFFIX}.py
${MV} ${WRKSRC}/Tools/scripts/pydoc ${WRKSRC}/Tools/scripts/pydoc${PY_VER_SUFFIX}