summaryrefslogtreecommitdiffstats
path: root/lang/python
diff options
context:
space:
mode:
authorperky <perky@FreeBSD.org>2003-09-24 11:07:22 +0000
committerperky <perky@FreeBSD.org>2003-09-24 11:07:22 +0000
commita8b64c5851a06d0202d3388331035c94db400c9d (patch)
tree04152e1d0c058015b9c0e0d83aae8eb3e4afdb12 /lang/python
parente596e43b3806910407e670aedf77712d24cd42b2 (diff)
downloadFreeBSD-ports-a8b64c5851a06d0202d3388331035c94db400c9d.zip
FreeBSD-ports-a8b64c5851a06d0202d3388331035c94db400c9d.tar.gz
- 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/python')
-rw-r--r--lang/python/Makefile10
-rw-r--r--lang/python/distinfo1
-rw-r--r--lang/python/files/patch-Modules-Setup.dist12
3 files changed, 9 insertions, 14 deletions
diff --git a/lang/python/Makefile b/lang/python/Makefile
index e0ddbf7..386618c 100644
--- a/lang/python/Makefile
+++ b/lang/python/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/python/distinfo b/lang/python/distinfo
index 962f6b5..17d0a7c 100644
--- a/lang/python/distinfo
+++ b/lang/python/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/python/files/patch-Modules-Setup.dist b/lang/python/files/patch-Modules-Setup.dist
deleted file mode 100644
index 74b1ef2..0000000
--- a/lang/python/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
OpenPOWER on IntegriCloud