aboutsummaryrefslogtreecommitdiffstats
path: root/lang/python24
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2009-11-26 22:04:19 +0800
committermiwi <miwi@FreeBSD.org>2009-11-26 22:04:19 +0800
commit04def9ad4001eb8563e439b2d1f2d125bd8b4f01 (patch)
tree718998b83246c3ac3359267270aa894794928458 /lang/python24
parent9f2aee107fa85e4a06a762fbd6311e418fb876e0 (diff)
downloadfreebsd-ports-gnome-04def9ad4001eb8563e439b2d1f2d125bd8b4f01.tar.gz
freebsd-ports-gnome-04def9ad4001eb8563e439b2d1f2d125bd8b4f01.tar.zst
freebsd-ports-gnome-04def9ad4001eb8563e439b2d1f2d125bd8b4f01.zip
- Add support for FreeBSD 9
Diffstat (limited to 'lang/python24')
-rw-r--r--lang/python24/Makefile6
-rw-r--r--lang/python24/files/patch-freebsd72
-rw-r--r--lang/python24/pkg-plist3
3 files changed, 8 insertions, 3 deletions
diff --git a/lang/python24/Makefile b/lang/python24/Makefile
index 1da9303fb550..5e106c45a188 100644
--- a/lang/python24/Makefile
+++ b/lang/python24/Makefile
@@ -7,7 +7,7 @@
PORTNAME= python24
PORTVERSION= 2.4.5
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= lang python ipv6
MASTER_SITES= ${PYTHON_MASTER_SITES}
MASTER_SITE_SUBDIR= ${PYTHON_MASTER_SITE_SUBDIR}
@@ -31,7 +31,7 @@ PYTHON_VERSION= python2.4
PYTHON_NO_DEPENDS= yes
PLATFORMS= plat-freebsd4 plat-freebsd5 plat-freebsd6 plat-freebsd7 \
- plat-freebsd8
+ plat-freebsd8 plat-freebsd9
SHARED_WRKSRC= ${WRKSRC}/build.shared
PLIST= ${WRKDIR}/pkg-plist
PLIST_SUB= PYVER=${PYTHON_VERSION:S/python//}
@@ -161,6 +161,8 @@ post-build:
${LN} -f python ${PYTHON_VERSION:S/thon/thon-shared/}
pre-su-install:
+ ${CP} -r ${PATCH_WRKSRC}/Lib/plat-freebsd8 \
+ ${PATCH_WRKSRC}/Lib/plat-freebsd9
.for platform in ${PLATFORMS}
${MKDIR} ${PYTHONPREFIX_LIBDIR}/${platform}
.for file in IN.py regen
diff --git a/lang/python24/files/patch-freebsd7 b/lang/python24/files/patch-freebsd7
index 0de6c979a00e..a3e7569529f7 100644
--- a/lang/python24/files/patch-freebsd7
+++ b/lang/python24/files/patch-freebsd7
@@ -11,7 +11,7 @@ diff -u -r1.218 setup.py
- if platform in ('linux2', 'freebsd4', 'freebsd5', 'freebsd6'):
+ if platform in ('linux2', 'freebsd4', 'freebsd5', 'freebsd6',
-+ 'freebsd7', 'freebsd8'):
++ 'freebsd7', 'freebsd8', 'freebsd9'):
exts.append( Extension('ossaudiodev', ['ossaudiodev.c']) )
if platform == 'sunos5':
diff --git a/lang/python24/pkg-plist b/lang/python24/pkg-plist
index 78ac1067a6e9..8b1222328f1e 100644
--- a/lang/python24/pkg-plist
+++ b/lang/python24/pkg-plist
@@ -671,6 +671,8 @@ lib/lib%%PYTHON_VERSION%%.so.1
%%PYTHON_LIBDIR%%/plat-freebsd7/regen
%%PYTHON_LIBDIR%%/plat-freebsd8/IN.py
%%PYTHON_LIBDIR%%/plat-freebsd8/regen
+%%PYTHON_LIBDIR%%/plat-freebsd9/IN.py
+%%PYTHON_LIBDIR%%/plat-freebsd9/regen
%%PYTHON_LIBDIR%%/platform.py
%%PYTHON_LIBDIR%%/popen2.py
%%PYTHON_LIBDIR%%/poplib.py
@@ -1686,6 +1688,7 @@ lib/lib%%PYTHON_VERSION%%.so.1
@dirrm %%PYTHON_LIBDIR%%/test/decimaltestdata
@dirrm %%PYTHON_LIBDIR%%/test
@dirrm %%PYTHON_LIBDIR%%/site-packages
+@dirrm %%PYTHON_LIBDIR%%/plat-freebsd9
@dirrm %%PYTHON_LIBDIR%%/plat-freebsd8
@dirrm %%PYTHON_LIBDIR%%/plat-freebsd7
@dirrm %%PYTHON_LIBDIR%%/plat-freebsd6