diff options
author | perky <perky@FreeBSD.org> | 2003-09-24 19:07:22 +0800 |
---|---|---|
committer | perky <perky@FreeBSD.org> | 2003-09-24 19:07:22 +0800 |
commit | a8b64c5851a06d0202d3388331035c94db400c9d (patch) | |
tree | 04152e1d0c058015b9c0e0d83aae8eb3e4afdb12 /lang/python23 | |
parent | e596e43b3806910407e670aedf77712d24cd42b2 (diff) | |
download | freebsd-ports-gnome-a8b64c5851a06d0202d3388331035c94db400c9d.tar.gz freebsd-ports-gnome-a8b64c5851a06d0202d3388331035c94db400c9d.tar.zst freebsd-ports-gnome-a8b64c5851a06d0202d3388331035c94db400c9d.zip |
- Update to Python-2.3.1, the lastest Bugfix release.
- Disable dlmodule on amd64 and sparc64 because dlmodule isn't designed
for them.
- Add -fPIC on CFLAGS on amd64 for mod_python3 and other ports using it
on linking their own dynamic library.
Diffstat (limited to 'lang/python23')
-rw-r--r-- | lang/python23/Makefile | 10 | ||||
-rw-r--r-- | lang/python23/distinfo | 1 | ||||
-rw-r--r-- | lang/python23/files/patch-Modules-Setup.dist | 12 |
3 files changed, 9 insertions, 14 deletions
diff --git a/lang/python23/Makefile b/lang/python23/Makefile index e0ddbf78e425..386618c09faf 100644 --- a/lang/python23/Makefile +++ b/lang/python23/Makefile @@ -6,8 +6,7 @@ # PORTNAME= python -PORTVERSION= 2.3 -PORTREVISION= 1 +PORTVERSION= 2.3.1 CATEGORIES= lang python ipv6 MASTER_SITES= ${MASTER_SITE_PYTHON} MASTER_SITE_SUBDIR= ftp/python/${PORTVERSION} @@ -71,6 +70,9 @@ PLIST_SUB+= X86_ONLY="" .else PLIST_SUB+= X86_ONLY="@comment " .endif +.if ${ARCH} == amd64 +CFLAGS+= -fPIC +.endif .if ${OSVERSION} < 400000 LIB_DEPENDS+= ncurses.5:${PORTSDIR}/devel/ncurses @@ -111,6 +113,10 @@ post-patch: ${REINPLACE_CMD} -e \ 's,/usr/doc/python-docs-,${PREFIX}/share/doc/python,g' \ ${WRKSRC}/Lib/pydoc.py +.if ${ARCH} == amd64 || ${ARCH} == sparc64 + ${REINPLACE_CMD} -e \ + 's,^#\(dl .*\),\1,' ${WRKSRC}/Modules/Setup.dist +.endif pre-install: .for platform in ${PLATFORMS} diff --git a/lang/python23/distinfo b/lang/python23/distinfo index 962f6b52b806..17d0a7cc7c66 100644 --- a/lang/python23/distinfo +++ b/lang/python23/distinfo @@ -11,4 +11,5 @@ MD5 (python/Python-2.2.1.tgz) = e7012d611602b62e36073c2fd02396a3 MD5 (python/Python-2.2.2.tgz) = 1c1067396e5aa0299978486eb5bd1a5c MD5 (python/Python-2.2.3.tgz) = 169f89f318e252dac0c54dd1b165d229 MD5 (python/Python-2.3.tgz) = 595620a4769073a812e353597585c4e8 +MD5 (python/Python-2.3.1.tgz) = a3dcbe1c7f173c8e3c7cce28495016ae MD5 (python/Python-2.4a0-20030801.tgz) = 7bb219e81cd565ed1c360108d9e8ba16 diff --git a/lang/python23/files/patch-Modules-Setup.dist b/lang/python23/files/patch-Modules-Setup.dist deleted file mode 100644 index 74b1ef29f224..000000000000 --- a/lang/python23/files/patch-Modules-Setup.dist +++ /dev/null @@ -1,12 +0,0 @@ ---- Modules/Setup.dist Thu Aug 8 15:52:42 2002 -+++ Modules/Setup.dist.new Thu Nov 21 10:40:05 2002 -@@ -356,8 +356,7 @@ - # it is a highly experimental and dangerous device for calling - # *arbitrary* C functions in *arbitrary* shared libraries: - --#dl dlmodule.c -- -+dl dlmodule.c - - # Modules that provide persistent dictionary-like semantics. You will - # probably want to arrange for at least one of them to be available on |