| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.36 2011/04/22 13:42:00 obache Exp $ | | 1 | # $NetBSD: Makefile,v 1.37 2011/04/23 01:41:36 obache Exp $ |
2 | | | 2 | |
3 | .include "dist.mk" | | 3 | .include "dist.mk" |
4 | | | 4 | |
5 | PKGNAME= python26-${PY_DISTVERSION} | | 5 | PKGNAME= python26-${PY_DISTVERSION} |
6 | PKGREVISION= 8 | | 6 | PKGREVISION= 8 |
7 | CATEGORIES= lang python | | 7 | CATEGORIES= lang python |
8 | | | 8 | |
9 | MAINTAINER= pkgsrc-users@NetBSD.org | | 9 | MAINTAINER= pkgsrc-users@NetBSD.org |
10 | HOMEPAGE= http://www.python.org/ | | 10 | HOMEPAGE= http://www.python.org/ |
11 | COMMENT= Interpreted, interactive, object-oriented programming language | | 11 | COMMENT= Interpreted, interactive, object-oriented programming language |
12 | LICENSE= python-software-foundation | | 12 | LICENSE= python-software-foundation |
13 | | | 13 | |
14 | PKG_DESTDIR_SUPPORT= user-destdir | | 14 | PKG_DESTDIR_SUPPORT= user-destdir |
| @@ -135,26 +135,33 @@ MAKE_ENV+= PY_BDB_TRANSFORM=${BUILDLINK_ | | | @@ -135,26 +135,33 @@ MAKE_ENV+= PY_BDB_TRANSFORM=${BUILDLINK_ |
135 | .endif | | 135 | .endif |
136 | | | 136 | |
137 | PLIST_SUBST+= PY_VER_SUFFIX=${PY_VER_SUFFIX:Q} | | 137 | PLIST_SUBST+= PY_VER_SUFFIX=${PY_VER_SUFFIX:Q} |
138 | | | 138 | |
139 | TEST_TARGET= test | | 139 | TEST_TARGET= test |
140 | INSTALL_TARGET= altinstall | | 140 | INSTALL_TARGET= altinstall |
141 | | | 141 | |
142 | REPLACE_INTERPRETER+= py26 | | 142 | REPLACE_INTERPRETER+= py26 |
143 | REPLACE.py26.old= .*python[^ ]* | | 143 | REPLACE.py26.old= .*python[^ ]* |
144 | REPLACE.py26.new= ${PREFIX}/bin/python${PY_VER_SUFFIX} | | 144 | REPLACE.py26.new= ${PREFIX}/bin/python${PY_VER_SUFFIX} |
145 | REPLACE_FILES.py26= Lib/cgi.py # explicitly demanded to be patched | | 145 | REPLACE_FILES.py26= Lib/cgi.py # explicitly demanded to be patched |
146 | REPLACE_FILES.py26+= Lib/bsddb/dbshelve.py Lib/test/test_bz2.py | | 146 | REPLACE_FILES.py26+= Lib/bsddb/dbshelve.py Lib/test/test_bz2.py |
147 | REPLACE_FILES.py26+= Lib/test/test_largefile.py Lib/test/test_optparse.py | | 147 | REPLACE_FILES.py26+= Lib/test/test_largefile.py Lib/test/test_optparse.py |
| | | 148 | REPLACE_FILES.py26+= Lib/*.py |
| | | 149 | REPLACE_FILES.py26+= Lib/test/*.py |
| | | 150 | REPLACE_FILES.py26+= Lib/bsddb/test/test_dbtables.py |
| | | 151 | REPLACE_FILES.py26+= Lib/encodings/rot_13.py |
| | | 152 | REPLACE_FILES.py26+= Lib/idlelib/PyShell.py |
| | | 153 | REPLACE_FILES.py26+= Lib/lib2to3/pgen2/token.py |
| | | 154 | REPLACE_FILES.py26+= Lib/lib2to3/tests/pytree_idempotency.py |
148 | | | 155 | |
149 | SUBST_CLASSES+= findlib | | 156 | SUBST_CLASSES+= findlib |
150 | SUBST_MESSAGE.findlib= Fixing find_library_file on Darwin. | | 157 | SUBST_MESSAGE.findlib= Fixing find_library_file on Darwin. |
151 | SUBST_STAGE.findlib= pre-configure | | 158 | SUBST_STAGE.findlib= pre-configure |
152 | SUBST_FILES.findlib= Lib/distutils/unixccompiler.py | | 159 | SUBST_FILES.findlib= Lib/distutils/unixccompiler.py |
153 | SUBST_SED.findlib= -e 's,/usr/local,${PREFIX},' | | 160 | SUBST_SED.findlib= -e 's,/usr/local,${PREFIX},' |
154 | | | 161 | |
155 | post-extract: | | 162 | post-extract: |
156 | ${MV} ${WRKSRC}/Lib/smtpd.py ${WRKSRC}/Lib/smtpd${PY_VER_SUFFIX}.py | | 163 | ${MV} ${WRKSRC}/Lib/smtpd.py ${WRKSRC}/Lib/smtpd${PY_VER_SUFFIX}.py |
157 | ${MV} ${WRKSRC}/Tools/scripts/pydoc ${WRKSRC}/Tools/scripts/pydoc${PY_VER_SUFFIX} | | 164 | ${MV} ${WRKSRC}/Tools/scripts/pydoc ${WRKSRC}/Tools/scripts/pydoc${PY_VER_SUFFIX} |
158 | ${MV} ${WRKSRC}/Tools/scripts/2to3 ${WRKSRC}/Tools/scripts/2to3-${PY_VER_SUFFIX} | | 165 | ${MV} ${WRKSRC}/Tools/scripts/2to3 ${WRKSRC}/Tools/scripts/2to3-${PY_VER_SUFFIX} |
159 | | | 166 | |
160 | .if ${OPSYS} == "HPUX" | | 167 | .if ${OPSYS} == "HPUX" |