- Add support for FreeBSD 9
This commit is contained in:
parent
f00d54a3df
commit
5879a953cb
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=244768
@ -6,6 +6,7 @@
|
||||
|
||||
PORTNAME= python31
|
||||
PORTVERSION= 3.1.1
|
||||
PORTREVISON= 1
|
||||
CATEGORIES= lang python ipv6
|
||||
MASTER_SITES= ${PYTHON_MASTER_SITES}
|
||||
MASTER_SITE_SUBDIR= ${PYTHON_MASTER_SITE_SUBDIR}
|
||||
@ -39,7 +40,7 @@ EXAMPLESDIR= ${PREFIX}/share/examples/${PYTHON_VERSION}
|
||||
DATADIR= ${PREFIX}/share/${PYTHON_VERSION}
|
||||
|
||||
PLATFORMS= plat-freebsd4 plat-freebsd5 plat-freebsd6 \
|
||||
plat-freebsd7 plat-freebsd8
|
||||
plat-freebsd7 plat-freebsd8 plat-freebsd9
|
||||
|
||||
BIN_SCRIPTS= 2to3 idle3 pydoc3
|
||||
BIN_FILES= python python-shared python-config python-shared-config \
|
||||
@ -111,6 +112,8 @@ CONFIGURE_ARGS+= --with-fpectl
|
||||
.endif
|
||||
|
||||
pre-patch:
|
||||
${CP} -r ${PATCH_WRKSRC}/Lib/plat-freebsd8 \
|
||||
${PATCH_WRKSRC}/Lib/plat-freebsd9
|
||||
${MKDIR} ${WRKSRC} ${SHARED_WRKSRC}/Modules
|
||||
.for script in ${BIN_SCRIPTS}
|
||||
${SED} -e '1s,^.*$$,#!${PREFIX}/bin/${PYTHON_VERSION},' \
|
||||
|
@ -1,5 +1,5 @@
|
||||
--- setup.py.orig 2009-06-28 20:59:53.170127518 +0800
|
||||
+++ setup.py 2009-06-29 01:19:05.592053355 +0800
|
||||
--- setup.py.orig 2009-08-12 20:39:44.000000000 +0200
|
||||
+++ setup.py 2009-11-26 12:58:45.000000000 +0100
|
||||
@@ -16,7 +16,7 @@
|
||||
from distutils.command.install_lib import install_lib
|
||||
|
||||
@ -61,7 +61,25 @@
|
||||
libraries = [panel_library] + curses_libs) )
|
||||
else:
|
||||
missing.append('_curses_panel')
|
||||
@@ -1666,8 +1670,7 @@
|
||||
@@ -1161,7 +1165,7 @@
|
||||
macros = dict()
|
||||
libraries = []
|
||||
|
||||
- elif platform in ('freebsd4', 'freebsd5', 'freebsd6', 'freebsd7', 'freebsd8'):
|
||||
+ elif platform in ('freebsd4', 'freebsd5', 'freebsd6', 'freebsd7', 'freebsd8', 'freebsd9'):
|
||||
# FreeBSD's P1003.1b semaphore support is very experimental
|
||||
# and has many known problems. (as of June 2008)
|
||||
macros = dict()
|
||||
@@ -1204,7 +1208,7 @@
|
||||
|
||||
# Platform-specific libraries
|
||||
if platform in ('linux2', 'freebsd4', 'freebsd5', 'freebsd6',
|
||||
- 'freebsd7', 'freebsd8'):
|
||||
+ 'freebsd7', 'freebsd8', 'freebsd9'):
|
||||
exts.append( Extension('ossaudiodev', ['ossaudiodev.c']) )
|
||||
else:
|
||||
missing.append('ossaudiodev')
|
||||
@@ -1665,8 +1669,7 @@
|
||||
# called unless there's at least one extension module defined.
|
||||
ext_modules=[Extension('_struct', ['_struct.c'])],
|
||||
|
||||
|
@ -890,6 +890,8 @@ libdata/pkgconfig/python-3.1.pc
|
||||
%%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%%/plistlib.py
|
||||
%%PYTHON_LIBDIR%%/poplib.py
|
||||
@ -2157,6 +2159,7 @@ libdata/pkgconfig/python-3.1.pc
|
||||
@dirrm %%PYTHON_LIBDIR%%/sqlite3
|
||||
@dirrm %%PYTHON_LIBDIR%%/site-packages
|
||||
@dirrm %%PYTHON_LIBDIR%%/pydoc_data
|
||||
@dirrm %%PYTHON_LIBDIR%%/plat-freebsd9
|
||||
@dirrm %%PYTHON_LIBDIR%%/plat-freebsd8
|
||||
@dirrm %%PYTHON_LIBDIR%%/plat-freebsd7
|
||||
@dirrm %%PYTHON_LIBDIR%%/plat-freebsd6
|
||||
|
@ -6,6 +6,7 @@
|
||||
|
||||
PORTNAME= python31
|
||||
PORTVERSION= 3.1.1
|
||||
PORTREVISON= 1
|
||||
CATEGORIES= lang python ipv6
|
||||
MASTER_SITES= ${PYTHON_MASTER_SITES}
|
||||
MASTER_SITE_SUBDIR= ${PYTHON_MASTER_SITE_SUBDIR}
|
||||
@ -39,7 +40,7 @@ EXAMPLESDIR= ${PREFIX}/share/examples/${PYTHON_VERSION}
|
||||
DATADIR= ${PREFIX}/share/${PYTHON_VERSION}
|
||||
|
||||
PLATFORMS= plat-freebsd4 plat-freebsd5 plat-freebsd6 \
|
||||
plat-freebsd7 plat-freebsd8
|
||||
plat-freebsd7 plat-freebsd8 plat-freebsd9
|
||||
|
||||
BIN_SCRIPTS= 2to3 idle3 pydoc3
|
||||
BIN_FILES= python python-shared python-config python-shared-config \
|
||||
@ -111,6 +112,8 @@ CONFIGURE_ARGS+= --with-fpectl
|
||||
.endif
|
||||
|
||||
pre-patch:
|
||||
${CP} -r ${PATCH_WRKSRC}/Lib/plat-freebsd8 \
|
||||
${PATCH_WRKSRC}/Lib/plat-freebsd9
|
||||
${MKDIR} ${WRKSRC} ${SHARED_WRKSRC}/Modules
|
||||
.for script in ${BIN_SCRIPTS}
|
||||
${SED} -e '1s,^.*$$,#!${PREFIX}/bin/${PYTHON_VERSION},' \
|
||||
|
@ -1,5 +1,5 @@
|
||||
--- setup.py.orig 2009-06-28 20:59:53.170127518 +0800
|
||||
+++ setup.py 2009-06-29 01:19:05.592053355 +0800
|
||||
--- setup.py.orig 2009-08-12 20:39:44.000000000 +0200
|
||||
+++ setup.py 2009-11-26 12:58:45.000000000 +0100
|
||||
@@ -16,7 +16,7 @@
|
||||
from distutils.command.install_lib import install_lib
|
||||
|
||||
@ -61,7 +61,25 @@
|
||||
libraries = [panel_library] + curses_libs) )
|
||||
else:
|
||||
missing.append('_curses_panel')
|
||||
@@ -1666,8 +1670,7 @@
|
||||
@@ -1161,7 +1165,7 @@
|
||||
macros = dict()
|
||||
libraries = []
|
||||
|
||||
- elif platform in ('freebsd4', 'freebsd5', 'freebsd6', 'freebsd7', 'freebsd8'):
|
||||
+ elif platform in ('freebsd4', 'freebsd5', 'freebsd6', 'freebsd7', 'freebsd8', 'freebsd9'):
|
||||
# FreeBSD's P1003.1b semaphore support is very experimental
|
||||
# and has many known problems. (as of June 2008)
|
||||
macros = dict()
|
||||
@@ -1204,7 +1208,7 @@
|
||||
|
||||
# Platform-specific libraries
|
||||
if platform in ('linux2', 'freebsd4', 'freebsd5', 'freebsd6',
|
||||
- 'freebsd7', 'freebsd8'):
|
||||
+ 'freebsd7', 'freebsd8', 'freebsd9'):
|
||||
exts.append( Extension('ossaudiodev', ['ossaudiodev.c']) )
|
||||
else:
|
||||
missing.append('ossaudiodev')
|
||||
@@ -1665,8 +1669,7 @@
|
||||
# called unless there's at least one extension module defined.
|
||||
ext_modules=[Extension('_struct', ['_struct.c'])],
|
||||
|
||||
|
@ -890,6 +890,8 @@ libdata/pkgconfig/python-3.1.pc
|
||||
%%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%%/plistlib.py
|
||||
%%PYTHON_LIBDIR%%/poplib.py
|
||||
@ -2157,6 +2159,7 @@ libdata/pkgconfig/python-3.1.pc
|
||||
@dirrm %%PYTHON_LIBDIR%%/sqlite3
|
||||
@dirrm %%PYTHON_LIBDIR%%/site-packages
|
||||
@dirrm %%PYTHON_LIBDIR%%/pydoc_data
|
||||
@dirrm %%PYTHON_LIBDIR%%/plat-freebsd9
|
||||
@dirrm %%PYTHON_LIBDIR%%/plat-freebsd8
|
||||
@dirrm %%PYTHON_LIBDIR%%/plat-freebsd7
|
||||
@dirrm %%PYTHON_LIBDIR%%/plat-freebsd6
|
||||
|
Loading…
Reference in New Issue
Block a user