1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

- Update to Python-2.3

- Correct pydoc search path to lang/python-doc-html port's [1]

PR:		43036 [1]
Submitted by:	Emil Sit <sit@amsterdam.lcs.mit.edu> [1]
This commit is contained in:
Hye-Shik Chang 2003-07-31 19:34:54 +00:00
parent e56fbbbb5c
commit d6fb067853
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=86069
16 changed files with 2678 additions and 1394 deletions

View File

@ -108,47 +108,43 @@ _PYTHON_VERSION!= ${PYTHON_CMD} -c 'import sys; print sys.version[:3]'
_PYTHON_VERSION= 2.1
.else
_PYTHON_VERSION!= (${LOCALBASE}/bin/python -c 'import sys; print sys.version[:3]') 2> /dev/null \
|| echo 2.2
|| echo 2.3
.endif
PYTHON_VERSION?= python${_PYTHON_VERSION}
_PYTHON_PORTVERSION= 2.2.3
_PYTHON_PORTVERSION= 2.3
PYTHON_CMD?= ${PYTHONBASE}/bin/${PYTHON_VERSION}
PYTHONBASE!= (${PYTHON_CMD} -c 'import sys; print sys.prefix') \
2> /dev/null || echo ${LOCALBASE}
PYTHON_PORTVERSION!= (${PYTHON_CMD} -c 'import string, sys; \
print string.split(sys.version)[0]') 2> /dev/null \
|| echo ${_PYTHON_PORTVERSION}
PYTHONBASE!= (${PYTHON_CMD} -c 'import sys; print sys.prefix') \
2> /dev/null || echo ${LOCALBASE}
# Python-2.4
.if ${PYTHON_VERSION} == "python2.4"
PYTHON_DISTFILE= Python-2.4a0-20030801.tgz
PYTHON_PORTSDIR= ${PORTSDIR}/lang/python-devel
PYTHON_REL= 240
PYTHON_SUFFIX= 24
PYTHON_WRKSRC= ${WRKDIR}/Python-2.4a0-20030801
# Python-2.3
.if ${PYTHON_VERSION} == "python2.3"
PYDISTUTILS= ${PYTHON_LIBDIR}/distutils/core.py:${PYTHON_PORTSDIR}
PYNUMERIC= ${PYTHON_SITELIBDIR}/Numeric/Numeric.py:${PORTSDIR}/math/py-numeric
PYXML= ${PYTHON_SITELIBDIR}/_xmlplus/__init__.py:${PORTSDIR}/textproc/py-xml
PYTHON_DISTFILE= Python-2.3c1.tgz
PYTHON_PORTSDIR= ${PORTSDIR}/lang/python-devel
.elif ${PYTHON_VERSION} == "python2.3"
PYTHON_DISTFILE= Python-${_PYTHON_PORTVERSION}.tgz
PYTHON_PORTSDIR= ${PORTSDIR}/lang/python
PYTHON_REL= 230
PYTHON_SUFFIX= 23
PYTHON_WRKSRC= ${WRKDIR}/Python-2.3c1
PYTHON_WRKSRC= ${WRKDIR}/Python-${_PYTHON_PORTVERSION}
# Python-2.2
.elif ${PYTHON_VERSION} == "python2.2"
PYDISTUTILS= ${PYTHON_LIBDIR}/distutils/core.py:${PYTHON_PORTSDIR}
PYNUMERIC= ${PYTHON_SITELIBDIR}/Numeric/Numeric.py:${PORTSDIR}/math/py-numeric
PYXML= ${PYTHON_SITELIBDIR}/_xmlplus/__init__.py:${PORTSDIR}/textproc/py-xml
PYTHON_DISTFILE= Python-${_PYTHON_PORTVERSION}.tgz
PYTHON_PORTSDIR= ${PORTSDIR}/lang/python
PYTHON_DISTFILE= Python-2.2.3.tgz
PYTHON_PORTSDIR= ${PORTSDIR}/lang/python22
PYTHON_REL= 223
PYTHON_SUFFIX= 22
PYTHON_WRKSRC= ${WRKDIR}/Python-${_PYTHON_PORTVERSION}
PYTHON_WRKSRC= ${WRKDIR}/Python-2.2.3
# Python-2.1
.elif ${PYTHON_VERSION} == "python2.1"
PYDISTUTILS= ${PYTHON_LIBDIR}/distutils/core.py:${PYTHON_PORTSDIR}
PYNUMERIC= ${PYTHON_SITELIBDIR}/Numeric/Numeric.py:${PORTSDIR}/math/py-numeric
PYXML= ${PYTHON_SITELIBDIR}/_xmlplus/__init__.py:${PORTSDIR}/textproc/py-xml
PYTHON_DISTFILE= Python-2.1.3.tgz
PYTHON_PORTSDIR= ${PORTSDIR}/lang/python21
PYTHON_REL= 213
@ -157,10 +153,6 @@ PYTHON_WRKSRC= ${WRKDIR}/Python-2.1.3
# Python-2.0
.elif ${PYTHON_VERSION} == "python2.0"
PYDISTUTILS= ${PYTHON_LIBDIR}/distutils/core.py:${PYTHON_PORTSDIR}
PYNUMERIC= ${PYTHON_SITELIBDIR}/Numeric/Numeric.py:${PORTSDIR}/math/py-numeric
PYXML= ${PYTHON_SITELIBDIR}/_xmlplus/__init__.py:${PORTSDIR}/textproc/py-xml
PYTHON_DISTFILE= Python-2.0.1.tgz
PYTHON_PORTSDIR= ${PORTSDIR}/lang/python20
PYTHON_REL= 201
@ -173,10 +165,6 @@ PYTHON_WRKSRC= ${WRKDIR}/Python-2.0.1
# latest version in ${PORTSDIR}/lang/python. The definitions here
# are for those who still have 1.6 as their default version.
.elif ${PYTHON_VERSION} == "python1.6"
PYDISTUTILS= ${PYTHON_LIBDIR}/site-packages/distutils/core.py:${PORTSDIR}/misc/py-distutils
PYNUMERIC= ${PYTHON_SITELIBDIR}/Numeric/Numeric.py:${PORTSDIR}/math/py-numeric17
PYXML= ${PYTHON_SITELIBDIR}/xml/__init__.py:${PORTSDIR}/textproc/py-xml
PYTHON_DISTFILE= Python-1.6.tar.gz
PYTHON_PORTSDIR= # empty
PYTHON_REL= 160
@ -185,10 +173,6 @@ PYTHON_WRKSRC= ${WRKDIR}/Python-1.6
# Python-1.5
.elif ${PYTHON_VERSION} == "python1.5"
PYDISTUTILS= ${PYTHON_LIBDIR}/site-packages/distutils/core.py:${PORTSDIR}/misc/py-distutils
PYNUMERIC= ${PYTHON_SITELIBDIR}/Numeric/Numeric.py:${PORTSDIR}/math/py-numeric17
PYXML= ${PYTHON_SITELIBDIR}/xml/__init__.py:${PORTSDIR}/textproc/py-xml
PYTHON_DISTFILE= py152.tgz
PYTHON_PORTSDIR= ${PORTSDIR}/lang/python15
PYTHON_REL= 152
@ -197,10 +181,6 @@ PYTHON_WRKSRC= ${WRKDIR}/Python-1.5.2
# Python versions in development
.elif defined(FORCE_PYTHON_VERSION)
PYDISTUTILS= ${PYTHON_LIBDIR}/distutils/core.py:${PYTHON_PORTSDIR}
PYNUMERIC= ${PYTHON_SITELIBDIR}/Numeric/Numeric.py:${PORTSDIR}/math/py-numeric
PYXML= ${PYTHON_SITELIBDIR}/_xmlplus/__init__.py:${PORTSDIR}/textproc/py-xml
PYTHON_DISTFILE= # empty
PYTHON_PORTSDIR= # empty
PYTHON_NO_DEPENDS= YES
@ -218,8 +198,9 @@ PYTHON_WRKSRC= ${WRKDIR}/Python-${_PYTHON_PORTVERSION}
@${ECHO} " python1.6"
@${ECHO} " python2.0"
@${ECHO} " python2.1"
@${ECHO} " python2.2 (default)"
@${ECHO} " python2.3"
@${ECHO} " python2.2"
@${ECHO} " python2.3 (default)"
@${ECHO} " python2.4"
@${FALSE}
.endif
@ -247,6 +228,16 @@ ZOPEBASEDIR= ${PREFIX}/${SZOPEBASEDIR}
ZOPEPRODUCTDIR= lib/python/Products
.endif
.if defined(PYTHON_REL) && ${PYTHON_REL} < 200
PYDISTUTILS= ${PYTHON_LIBDIR}/site-packages/distutils/core.py:${PORTSDIR}/misc/py-distutils
PYNUMERIC= ${PYTHON_SITELIBDIR}/Numeric/Numeric.py:${PORTSDIR}/math/py-numeric17
PYXML= ${PYTHON_SITELIBDIR}/xml/__init__.py:${PORTSDIR}/textproc/py-xml
.else
PYDISTUTILS= ${PYTHON_LIBDIR}/distutils/core.py:${PYTHON_PORTSDIR}
PYNUMERIC= ${PYTHON_SITELIBDIR}/Numeric/Numeric.py:${PORTSDIR}/math/py-numeric
PYXML= ${PYTHON_SITELIBDIR}/_xmlplus/__init__.py:${PORTSDIR}/textproc/py-xml
.endif
# dependencies
PYTHON_NO_DEPENDS?= NO

View File

@ -6,8 +6,7 @@
#
PORTNAME= python
PORTVERSION= 2.2.3
PORTREVISION= 2
PORTVERSION= 2.3
CATEGORIES= lang python ipv6
MASTER_SITES= ${MASTER_SITE_PYTHON}
MASTER_SITE_SUBDIR= ftp/python/${PORTVERSION}
@ -25,8 +24,9 @@ INSTALL_TARGET= install
MAN1= python.1
USE_PYTHON= yes
PYTHON_VERSION= python2.2
PYTHON_VERSION= python2.3
PYTHON_NO_DEPENDS= yes
USE_REINPLACE= yes
#
# If you don't want to use Python's thread module, you need to set
@ -39,7 +39,7 @@ CFLAGS+= ${PTHREAD_CFLAGS}
CFLAGS+= -DTHREAD_STACK_SIZE=0x20000
.else
CFLAGS+= -DTHREAD_STACK_SIZE=0x100000
.endif
.endif # !defined(WANT_HUGE_STACK_SIZE)
CONFIGURE_ENV+= LDFLAGS="${PTHREAD_LIBS} ${LDFLAGS}"
.else
CONFIGURE_ARGS+= --without-threads
@ -48,10 +48,29 @@ CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}"
.endif # defined(LDFLAGS)
.endif # !defined(WITHOUT_THREADS)
.if !defined(WITH_UCS2)
CONFIGURE_ARGS+= --enable-unicode=ucs4
.endif
.if !defined(BUILD_STATIC)
CONFIGURE_ARGS+= --enable-shared
INSTALLS_SHLIB= yes
PLIST_SUB+= SHARED_ONLY=""
.else
PLIST_SUB+= SHARED_ONLY="@comment "
.endif
DEMODIR= ${PREFIX}/share/examples/${PYTHON_VERSION}
TOOLSDIR= ${PREFIX}/share/${PYTHON_VERSION}
.include <bsd.port.pre.mk>
.if ${ARCH} == i386
PLIST_SUB+= X86_ONLY=""
.else
PLIST_SUB+= X86_ONLY="@comment "
.endif
.if ${OSVERSION} < 400000
LIB_DEPENDS+= ncurses.5:${PORTSDIR}/devel/ncurses
CFLAGS+= -I${LOCALBASE}/include/ncurses -I${LOCALBASE}/include
@ -81,6 +100,17 @@ PLATFORMS=plat-freebsd2 plat-freebsd4 plat-freebsd5
PLATFORMS=plat-freebsd3 plat-freebsd4 plat-freebsd5
.endif
post-extract:
${SED} -e '1s,^.*$$,#!${PREFIX}/bin/${PYTHON_VERSION},' \
${WRKSRC}/Tools/scripts/pydoc > ${WRKDIR}/pydoc2.3
${SED} -e '1s,^.*$$,#!${PREFIX}/bin/${PYTHON_VERSION},' \
${WRKSRC}/Tools/scripts/idle > ${WRKDIR}/idle2.3
post-patch:
${REINPLACE_CMD} -e \
's,/usr/doc/python-docs-,${PREFIX}/share/doc/python,g' \
${WRKSRC}/Lib/pydoc.py
pre-install:
.for platform in ${PLATFORMS}
${MKDIR} ${PYTHONPREFIX_LIBDIR}/${platform}
@ -90,27 +120,19 @@ pre-install:
.endfor
.endfor
post-extract:
${SED} -e '1s,^.*$$,#!${PREFIX}/bin/${PYTHON_VERSION},' \
${WRKSRC}/Tools/scripts/pydoc > ${WRKDIR}/pydoc2.2
post-install:
${INSTALL_SCRIPT} ${WRKDIR}/pydoc2.2 ${PREFIX}/bin/
${INSTALL_DATA} ${WRKSRC}/Misc/python-mode.el \
${PREFIX}/share/emacs/site-lisp
@${MKDIR} ${PYTHONPREFIX_SITELIBDIR}
${INSTALL_SCRIPT} ${WRKDIR}/pydoc2.3 ${WRKDIR}/idle2.3 \
${PREFIX}/bin
.if !defined(NOPORTDOCS)
@${MKDIR} ${TOOLSDIR}
@cd ${WRKSRC}; tar -c --exclude='*CVS*' -f - Tools | \
(cd ${PYTHONPREFIX_LIBDIR}; tar xf -)
(cd ${TOOLSDIR}; tar xf -)
@${MKDIR} ${DEMODIR}
@cd ${WRKSRC}/Demo; tar -c --exclude='*CVS*' -f - * | \
(cd ${DEMODIR}; tar xf -)
.endif
.if ${ARCH} == i386
PLIST_SUB+= X86_ONLY=""
.else
PLIST_SUB+= X86_ONLY="@comment "
.endif
.include <bsd.port.post.mk>

View File

@ -1 +1,13 @@
MD5 (python/py152.tgz) = e9d677ae6d5a3efc6937627ed8a3e752
MD5 (python/Python-1.6.tar.gz) = 9d72ef93d7698769d9d3be7c17d5ad92
MD5 (python/BeOpen-Python-2.0.tar.gz) = 8c4a64891d3dc6422df2514c603f0c98
MD5 (python/Python-2.0.1.tgz) = 8aa10dcf062723001b852d96e905af79
MD5 (python/Python-2.1.tgz) = 2ba2baeccd6100a4be80e6368a975054
MD5 (python/Python-2.1.1.tgz) = eb34371c49b271abc74b42572883e1b4
MD5 (python/Python-2.1.2.tgz) = 4af22bded23a55f907365ed7610de8c9
MD5 (python/Python-2.1.3.tgz) = a8b04cdc822a6fc833ed9b99c7fba589
MD5 (python/Python-2.2.tgz) = 87febf0780c8e18454022d34b2ca70a0
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

View File

@ -0,0 +1,15 @@
--- configure.orig Sun Jul 13 18:46:13 2003
+++ configure Sat Jul 19 15:21:09 2003
@@ -3288,6 +3288,12 @@
RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH
INSTSONAME="$LDLIBRARY".$SOVERSION
;;
+ FreeBSD*)
+ LDLIBRARY='libpython$(VERSION).so'
+ BLDLIBRARY='-L. -lpython$(VERSION)'
+ RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH
+ INSTSONAME="$LDLIBRARY"
+ ;;
hp*|HP*)
LDLIBRARY='libpython$(VERSION).sl'
BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'

View File

@ -1,11 +1,11 @@
--- setup.py.orig Fri Mar 2 07:24:14 2001
+++ setup.py Mon Mar 5 15:26:17 2001
@@ -14,7 +14,7 @@
from distutils.command.build_ext import build_ext
--- setup.py.orig Thu Jul 10 21:48:39 2003
+++ setup.py Sat Jul 19 16:27:04 2003
@@ -15,7 +15,7 @@
from distutils.command.install_lib import install_lib
# This global variable is used to hold the list of modules to be disabled.
-disabled_module_list = []
+disabled_module_list = ["_tkinter", "gdbm", "mpz", "pyexpat"]
+disabled_module_list = ["_bsddb", "_tkinter", "gdbm", "mpz", "pyexpat"]
def find_file(filename, std_dirs, paths):
"""Searches for the directory where a given file is located,
def add_dir_to_list(dirlist, dir):
"""Add the directory 'dir' to the list 'dirlist' (at the front) if

File diff suppressed because it is too large Load Diff

View File

@ -6,8 +6,7 @@
#
PORTNAME= python
PORTVERSION= 2.2.3
PORTREVISION= 2
PORTVERSION= 2.3
CATEGORIES= lang python ipv6
MASTER_SITES= ${MASTER_SITE_PYTHON}
MASTER_SITE_SUBDIR= ftp/python/${PORTVERSION}
@ -25,8 +24,9 @@ INSTALL_TARGET= install
MAN1= python.1
USE_PYTHON= yes
PYTHON_VERSION= python2.2
PYTHON_VERSION= python2.3
PYTHON_NO_DEPENDS= yes
USE_REINPLACE= yes
#
# If you don't want to use Python's thread module, you need to set
@ -39,7 +39,7 @@ CFLAGS+= ${PTHREAD_CFLAGS}
CFLAGS+= -DTHREAD_STACK_SIZE=0x20000
.else
CFLAGS+= -DTHREAD_STACK_SIZE=0x100000
.endif
.endif # !defined(WANT_HUGE_STACK_SIZE)
CONFIGURE_ENV+= LDFLAGS="${PTHREAD_LIBS} ${LDFLAGS}"
.else
CONFIGURE_ARGS+= --without-threads
@ -48,10 +48,29 @@ CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}"
.endif # defined(LDFLAGS)
.endif # !defined(WITHOUT_THREADS)
.if !defined(WITH_UCS2)
CONFIGURE_ARGS+= --enable-unicode=ucs4
.endif
.if !defined(BUILD_STATIC)
CONFIGURE_ARGS+= --enable-shared
INSTALLS_SHLIB= yes
PLIST_SUB+= SHARED_ONLY=""
.else
PLIST_SUB+= SHARED_ONLY="@comment "
.endif
DEMODIR= ${PREFIX}/share/examples/${PYTHON_VERSION}
TOOLSDIR= ${PREFIX}/share/${PYTHON_VERSION}
.include <bsd.port.pre.mk>
.if ${ARCH} == i386
PLIST_SUB+= X86_ONLY=""
.else
PLIST_SUB+= X86_ONLY="@comment "
.endif
.if ${OSVERSION} < 400000
LIB_DEPENDS+= ncurses.5:${PORTSDIR}/devel/ncurses
CFLAGS+= -I${LOCALBASE}/include/ncurses -I${LOCALBASE}/include
@ -81,6 +100,17 @@ PLATFORMS=plat-freebsd2 plat-freebsd4 plat-freebsd5
PLATFORMS=plat-freebsd3 plat-freebsd4 plat-freebsd5
.endif
post-extract:
${SED} -e '1s,^.*$$,#!${PREFIX}/bin/${PYTHON_VERSION},' \
${WRKSRC}/Tools/scripts/pydoc > ${WRKDIR}/pydoc2.3
${SED} -e '1s,^.*$$,#!${PREFIX}/bin/${PYTHON_VERSION},' \
${WRKSRC}/Tools/scripts/idle > ${WRKDIR}/idle2.3
post-patch:
${REINPLACE_CMD} -e \
's,/usr/doc/python-docs-,${PREFIX}/share/doc/python,g' \
${WRKSRC}/Lib/pydoc.py
pre-install:
.for platform in ${PLATFORMS}
${MKDIR} ${PYTHONPREFIX_LIBDIR}/${platform}
@ -90,27 +120,19 @@ pre-install:
.endfor
.endfor
post-extract:
${SED} -e '1s,^.*$$,#!${PREFIX}/bin/${PYTHON_VERSION},' \
${WRKSRC}/Tools/scripts/pydoc > ${WRKDIR}/pydoc2.2
post-install:
${INSTALL_SCRIPT} ${WRKDIR}/pydoc2.2 ${PREFIX}/bin/
${INSTALL_DATA} ${WRKSRC}/Misc/python-mode.el \
${PREFIX}/share/emacs/site-lisp
@${MKDIR} ${PYTHONPREFIX_SITELIBDIR}
${INSTALL_SCRIPT} ${WRKDIR}/pydoc2.3 ${WRKDIR}/idle2.3 \
${PREFIX}/bin
.if !defined(NOPORTDOCS)
@${MKDIR} ${TOOLSDIR}
@cd ${WRKSRC}; tar -c --exclude='*CVS*' -f - Tools | \
(cd ${PYTHONPREFIX_LIBDIR}; tar xf -)
(cd ${TOOLSDIR}; tar xf -)
@${MKDIR} ${DEMODIR}
@cd ${WRKSRC}/Demo; tar -c --exclude='*CVS*' -f - * | \
(cd ${DEMODIR}; tar xf -)
.endif
.if ${ARCH} == i386
PLIST_SUB+= X86_ONLY=""
.else
PLIST_SUB+= X86_ONLY="@comment "
.endif
.include <bsd.port.post.mk>

View File

@ -1 +1,13 @@
MD5 (python/py152.tgz) = e9d677ae6d5a3efc6937627ed8a3e752
MD5 (python/Python-1.6.tar.gz) = 9d72ef93d7698769d9d3be7c17d5ad92
MD5 (python/BeOpen-Python-2.0.tar.gz) = 8c4a64891d3dc6422df2514c603f0c98
MD5 (python/Python-2.0.1.tgz) = 8aa10dcf062723001b852d96e905af79
MD5 (python/Python-2.1.tgz) = 2ba2baeccd6100a4be80e6368a975054
MD5 (python/Python-2.1.1.tgz) = eb34371c49b271abc74b42572883e1b4
MD5 (python/Python-2.1.2.tgz) = 4af22bded23a55f907365ed7610de8c9
MD5 (python/Python-2.1.3.tgz) = a8b04cdc822a6fc833ed9b99c7fba589
MD5 (python/Python-2.2.tgz) = 87febf0780c8e18454022d34b2ca70a0
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

View File

@ -0,0 +1,15 @@
--- configure.orig Sun Jul 13 18:46:13 2003
+++ configure Sat Jul 19 15:21:09 2003
@@ -3288,6 +3288,12 @@
RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH
INSTSONAME="$LDLIBRARY".$SOVERSION
;;
+ FreeBSD*)
+ LDLIBRARY='libpython$(VERSION).so'
+ BLDLIBRARY='-L. -lpython$(VERSION)'
+ RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH
+ INSTSONAME="$LDLIBRARY"
+ ;;
hp*|HP*)
LDLIBRARY='libpython$(VERSION).sl'
BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'

View File

@ -1,11 +1,11 @@
--- setup.py.orig Fri Mar 2 07:24:14 2001
+++ setup.py Mon Mar 5 15:26:17 2001
@@ -14,7 +14,7 @@
from distutils.command.build_ext import build_ext
--- setup.py.orig Thu Jul 10 21:48:39 2003
+++ setup.py Sat Jul 19 16:27:04 2003
@@ -15,7 +15,7 @@
from distutils.command.install_lib import install_lib
# This global variable is used to hold the list of modules to be disabled.
-disabled_module_list = []
+disabled_module_list = ["_tkinter", "gdbm", "mpz", "pyexpat"]
+disabled_module_list = ["_bsddb", "_tkinter", "gdbm", "mpz", "pyexpat"]
def find_file(filename, std_dirs, paths):
"""Searches for the directory where a given file is located,
def add_dir_to_list(dirlist, dir):
"""Add the directory 'dir' to the list 'dirlist' (at the front) if

File diff suppressed because it is too large Load Diff

View File

@ -6,8 +6,7 @@
#
PORTNAME= python
PORTVERSION= 2.2.3
PORTREVISION= 2
PORTVERSION= 2.3
CATEGORIES= lang python ipv6
MASTER_SITES= ${MASTER_SITE_PYTHON}
MASTER_SITE_SUBDIR= ftp/python/${PORTVERSION}
@ -25,8 +24,9 @@ INSTALL_TARGET= install
MAN1= python.1
USE_PYTHON= yes
PYTHON_VERSION= python2.2
PYTHON_VERSION= python2.3
PYTHON_NO_DEPENDS= yes
USE_REINPLACE= yes
#
# If you don't want to use Python's thread module, you need to set
@ -39,7 +39,7 @@ CFLAGS+= ${PTHREAD_CFLAGS}
CFLAGS+= -DTHREAD_STACK_SIZE=0x20000
.else
CFLAGS+= -DTHREAD_STACK_SIZE=0x100000
.endif
.endif # !defined(WANT_HUGE_STACK_SIZE)
CONFIGURE_ENV+= LDFLAGS="${PTHREAD_LIBS} ${LDFLAGS}"
.else
CONFIGURE_ARGS+= --without-threads
@ -48,10 +48,29 @@ CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}"
.endif # defined(LDFLAGS)
.endif # !defined(WITHOUT_THREADS)
.if !defined(WITH_UCS2)
CONFIGURE_ARGS+= --enable-unicode=ucs4
.endif
.if !defined(BUILD_STATIC)
CONFIGURE_ARGS+= --enable-shared
INSTALLS_SHLIB= yes
PLIST_SUB+= SHARED_ONLY=""
.else
PLIST_SUB+= SHARED_ONLY="@comment "
.endif
DEMODIR= ${PREFIX}/share/examples/${PYTHON_VERSION}
TOOLSDIR= ${PREFIX}/share/${PYTHON_VERSION}
.include <bsd.port.pre.mk>
.if ${ARCH} == i386
PLIST_SUB+= X86_ONLY=""
.else
PLIST_SUB+= X86_ONLY="@comment "
.endif
.if ${OSVERSION} < 400000
LIB_DEPENDS+= ncurses.5:${PORTSDIR}/devel/ncurses
CFLAGS+= -I${LOCALBASE}/include/ncurses -I${LOCALBASE}/include
@ -81,6 +100,17 @@ PLATFORMS=plat-freebsd2 plat-freebsd4 plat-freebsd5
PLATFORMS=plat-freebsd3 plat-freebsd4 plat-freebsd5
.endif
post-extract:
${SED} -e '1s,^.*$$,#!${PREFIX}/bin/${PYTHON_VERSION},' \
${WRKSRC}/Tools/scripts/pydoc > ${WRKDIR}/pydoc2.3
${SED} -e '1s,^.*$$,#!${PREFIX}/bin/${PYTHON_VERSION},' \
${WRKSRC}/Tools/scripts/idle > ${WRKDIR}/idle2.3
post-patch:
${REINPLACE_CMD} -e \
's,/usr/doc/python-docs-,${PREFIX}/share/doc/python,g' \
${WRKSRC}/Lib/pydoc.py
pre-install:
.for platform in ${PLATFORMS}
${MKDIR} ${PYTHONPREFIX_LIBDIR}/${platform}
@ -90,27 +120,19 @@ pre-install:
.endfor
.endfor
post-extract:
${SED} -e '1s,^.*$$,#!${PREFIX}/bin/${PYTHON_VERSION},' \
${WRKSRC}/Tools/scripts/pydoc > ${WRKDIR}/pydoc2.2
post-install:
${INSTALL_SCRIPT} ${WRKDIR}/pydoc2.2 ${PREFIX}/bin/
${INSTALL_DATA} ${WRKSRC}/Misc/python-mode.el \
${PREFIX}/share/emacs/site-lisp
@${MKDIR} ${PYTHONPREFIX_SITELIBDIR}
${INSTALL_SCRIPT} ${WRKDIR}/pydoc2.3 ${WRKDIR}/idle2.3 \
${PREFIX}/bin
.if !defined(NOPORTDOCS)
@${MKDIR} ${TOOLSDIR}
@cd ${WRKSRC}; tar -c --exclude='*CVS*' -f - Tools | \
(cd ${PYTHONPREFIX_LIBDIR}; tar xf -)
(cd ${TOOLSDIR}; tar xf -)
@${MKDIR} ${DEMODIR}
@cd ${WRKSRC}/Demo; tar -c --exclude='*CVS*' -f - * | \
(cd ${DEMODIR}; tar xf -)
.endif
.if ${ARCH} == i386
PLIST_SUB+= X86_ONLY=""
.else
PLIST_SUB+= X86_ONLY="@comment "
.endif
.include <bsd.port.post.mk>

View File

@ -1 +1,13 @@
MD5 (python/py152.tgz) = e9d677ae6d5a3efc6937627ed8a3e752
MD5 (python/Python-1.6.tar.gz) = 9d72ef93d7698769d9d3be7c17d5ad92
MD5 (python/BeOpen-Python-2.0.tar.gz) = 8c4a64891d3dc6422df2514c603f0c98
MD5 (python/Python-2.0.1.tgz) = 8aa10dcf062723001b852d96e905af79
MD5 (python/Python-2.1.tgz) = 2ba2baeccd6100a4be80e6368a975054
MD5 (python/Python-2.1.1.tgz) = eb34371c49b271abc74b42572883e1b4
MD5 (python/Python-2.1.2.tgz) = 4af22bded23a55f907365ed7610de8c9
MD5 (python/Python-2.1.3.tgz) = a8b04cdc822a6fc833ed9b99c7fba589
MD5 (python/Python-2.2.tgz) = 87febf0780c8e18454022d34b2ca70a0
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

View File

@ -0,0 +1,15 @@
--- configure.orig Sun Jul 13 18:46:13 2003
+++ configure Sat Jul 19 15:21:09 2003
@@ -3288,6 +3288,12 @@
RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH
INSTSONAME="$LDLIBRARY".$SOVERSION
;;
+ FreeBSD*)
+ LDLIBRARY='libpython$(VERSION).so'
+ BLDLIBRARY='-L. -lpython$(VERSION)'
+ RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH
+ INSTSONAME="$LDLIBRARY"
+ ;;
hp*|HP*)
LDLIBRARY='libpython$(VERSION).sl'
BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'

View File

@ -1,11 +1,11 @@
--- setup.py.orig Fri Mar 2 07:24:14 2001
+++ setup.py Mon Mar 5 15:26:17 2001
@@ -14,7 +14,7 @@
from distutils.command.build_ext import build_ext
--- setup.py.orig Thu Jul 10 21:48:39 2003
+++ setup.py Sat Jul 19 16:27:04 2003
@@ -15,7 +15,7 @@
from distutils.command.install_lib import install_lib
# This global variable is used to hold the list of modules to be disabled.
-disabled_module_list = []
+disabled_module_list = ["_tkinter", "gdbm", "mpz", "pyexpat"]
+disabled_module_list = ["_bsddb", "_tkinter", "gdbm", "mpz", "pyexpat"]
def find_file(filename, std_dirs, paths):
"""Searches for the directory where a given file is located,
def add_dir_to_list(dirlist, dir):
"""Add the directory 'dir' to the list 'dirlist' (at the front) if

File diff suppressed because it is too large Load Diff