diff options
author | jeh <jeh@FreeBSD.org> | 2001-05-11 20:38:46 +0800 |
---|---|---|
committer | jeh <jeh@FreeBSD.org> | 2001-05-11 20:38:46 +0800 |
commit | 8d10aa85dfbbec25d8b09414f0845958c76cf493 (patch) | |
tree | 479f25e3e5c83c264c820dcfd9291ce06ea4ad24 /www/mod_python | |
parent | ccb2b652c2d7e0f2a01de90abafc812a1763f520 (diff) | |
download | freebsd-ports-gnome-8d10aa85dfbbec25d8b09414f0845958c76cf493.tar.gz freebsd-ports-gnome-8d10aa85dfbbec25d8b09414f0845958c76cf493.tar.zst freebsd-ports-gnome-8d10aa85dfbbec25d8b09414f0845958c76cf493.zip |
updates 2.7.2_2
. Python 2.1 support
. EAPI option added. (for www/apache13-modssl)
. MASTER_SITES order changed (www.modpython.org site is always slow)
PR: 27214
Submitted by: Chang, Hye-Shik <perky@python.or.kr> MAINTAINER
Diffstat (limited to 'www/mod_python')
-rw-r--r-- | www/mod_python/Makefile | 47 | ||||
-rw-r--r-- | www/mod_python/distinfo | 2 | ||||
-rw-r--r-- | www/mod_python/files/optpatch-WANT_EAPI | 11 | ||||
-rw-r--r-- | www/mod_python/files/optpatch-WITHOUT_OPENPTY (renamed from www/mod_python/files/optpatch-Python::configure) | 14 | ||||
-rw-r--r-- | www/mod_python/files/patch-Python::setup.py | 11 |
5 files changed, 43 insertions, 42 deletions
diff --git a/www/mod_python/Makefile b/www/mod_python/Makefile index 1b3d91336e2e..4d5f3280ebe7 100644 --- a/www/mod_python/Makefile +++ b/www/mod_python/Makefile @@ -7,10 +7,10 @@ PORTNAME= mod_python PORTVERSION= 2.7.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= www python -MASTER_SITES= http://www.modpython.org/dist/ \ - http://www.python.org/ftp/python/2.0/ \ +MASTER_SITES= http://www.python.org/ftp/python/${PYTHON_VERSION:S/python//g}/ \ + http://www.modpython.org/dist/ \ http://www3.kr.freebsd.org/~perky/distfiles/ DISTFILES= mod_python-${PORTVERSION}.tgz ${PYTHON_DISTFILE} DIST_SUBDIR= python @@ -21,7 +21,6 @@ BUILD_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13 RUN_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13 USE_PYTHON= yes -INSTALLS_SHLIB= yes .include <bsd.port.pre.mk> @@ -29,53 +28,35 @@ PYTHON_WRKSRC= ${WRKSRC}/../Python-${PYTHON_VERSION:S/python//g} APXS= ${PREFIX}/sbin/apxs GNU_CONFIGURE= yes -CONFIGURE_ARGS+= --with-apxs=${LOCALBASE}/sbin/apxs \ - --with-python=${PYTHON_WRKSRC} -CONFIGURE_ENV= PYTHON_BIN=${LOCALBASE}/bin/python +CONFIGURE_ARGS+=--with-apxs=${APXS} --with-python=${PYTHON_WRKSRC} +CONFIGURE_ENV= PYTHON_BIN=${PYTHON_CMD} PLIST_SUB+= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S/^${LOCALBASE}\///g} .if defined(WITH_OPENPTY) OPTIONAL_LIBS+= -lutil .endif -.if defined(WITH_GNUREADLINE) -OPTIONAL_LIBS+= -lreadline -.endif - PYTHON_CONFIGURE_ARGS+= --without-threads -PYTHON_SETUP_FILE?= ${PORTSDIR}/lang/python/files/Setup -STRIP_BIN?= /usr/bin/strip +STRIP_CMD?= strip pre-fetch: @${ECHO} "" @${ECHO} "You may use the following build option:" @${ECHO} "" - @${ECHO} " PYTHON_SETUP_FILE=path specify python modules setup file" + @${ECHO} " WANT_EAPI=yes build as apache EAPI module (for apache13-modssl)" @${ECHO} " WITH_OPENPTY=yes enables openpty function in posixmodule" - @${ECHO} " WITH_GNUREADLINE=yes enables gnu readline library" - @${ECHO} " DONT_STRIP=yes don't strip shared object" @${ECHO} "" pre-patch: -.if !defined(${WITH_OPENPTY}) - ${PATCH} -s <files/optpatch-Python::configure +.if !defined(WITH_OPENPTY) + ${PATCH} -s < ${PATCHDIR}/optpatch-WITHOUT_OPENPTY +.endif +.if defined(WANT_EAPI) + ${PATCH} -s < ${PATCHDIR}/optpatch-WANT_EAPI .endif pre-configure: cd ${PYTHON_WRKSRC} && ./configure ${PYTHON_CONFIGURE_ARGS} -.if !exists(${PYTHON_SETUP_FILE}) - @${ECHO} "" - @${ECHO} "### COULD NOT FIND PYTHON SETUP FILE" - @${ECHO} "### SPECIFY FILE PATH OR INSTALL PORT 'lang/python'" - @${ECHO} "" -.endif - -.if !defined(WITH_GNUREADLINE) - ${SED} 's/^readline/#without_readline/g' ${PYTHON_SETUP_FILE} \ - > ${PYTHON_WRKSRC}/Modules/Setup -.else - ${CP} ${PYTHON_SETUP_FILE} ${PYTHON_WRKSRC}/Modules/Setup -.endif post-configure: .if defined(OPTIONAL_LIBS) @@ -88,8 +69,8 @@ pre-build: cd ${PYTHON_WRKSRC} && ${MAKE} post-build: -.if !defined(DONT_STRIP) && exists(${STRIP_BIN}) - ${STRIP_BIN} ${WRKSRC}/src/mod_python.so +.if !defined(DONT_STRIP) && exists(${STRIP_CMD}) + ${STRIP_CMD} ${WRKSRC}/src/mod_python.so .endif post-install: diff --git a/www/mod_python/distinfo b/www/mod_python/distinfo index 348b8ef11399..4371a924b7aa 100644 --- a/www/mod_python/distinfo +++ b/www/mod_python/distinfo @@ -1,2 +1,2 @@ MD5 (python/mod_python-2.7.2.tgz) = 5b73af91c891c63f4be450d7a7dc0bb2 -MD5 (python/BeOpen-Python-2.0.tar.gz) = 8c4a64891d3dc6422df2514c603f0c98 +MD5 (python/Python-2.1.tgz) = 2ba2baeccd6100a4be80e6368a975054 diff --git a/www/mod_python/files/optpatch-WANT_EAPI b/www/mod_python/files/optpatch-WANT_EAPI new file mode 100644 index 000000000000..3f43890483e3 --- /dev/null +++ b/www/mod_python/files/optpatch-WANT_EAPI @@ -0,0 +1,11 @@ +--- work/mod_python-2.7.2/src/Makefile.in.orig Sun Mar 25 16:05:21 2001 ++++ work/mod_python-2.7.2/src/Makefile.in Sun Mar 25 16:05:30 2001 +@@ -52,7 +52,7 @@ + INCLUDES=@INCLUDES@ + LIBS=@LIBS@ + LDFLAGS=@LDFLAGS@ +-OPT= ++OPT=-DEAPI + CFLAGS=$(OPT) $(INCLUDES) + srcdir=. + diff --git a/www/mod_python/files/optpatch-Python::configure b/www/mod_python/files/optpatch-WITHOUT_OPENPTY index c9bd849e39b2..4d64a8659f80 100644 --- a/www/mod_python/files/optpatch-Python::configure +++ b/www/mod_python/files/optpatch-WITHOUT_OPENPTY @@ -1,19 +1,17 @@ ---- work/Python-2.0/configure.orig Fri Mar 16 07:32:48 2001 -+++ work/Python-2.0/configure Fri Mar 16 07:35:20 2001 -@@ -3975,7 +3975,7 @@ - fi +--- work/Python-2.1/configure.orig Wed May 9 06:04:43 2001 ++++ work/Python-2.1/configure Wed May 9 06:05:14 2001 +@@ -4293,6 +4293,7 @@ done -- + +if false; then # check for openpty and forkpty for ac_func in openpty -@@ -4173,7 +4173,7 @@ - +@@ -4491,6 +4492,7 @@ fi done -- + +fi # check for long file support functions diff --git a/www/mod_python/files/patch-Python::setup.py b/www/mod_python/files/patch-Python::setup.py new file mode 100644 index 000000000000..cbd821bb97b9 --- /dev/null +++ b/www/mod_python/files/patch-Python::setup.py @@ -0,0 +1,11 @@ +--- ../Python-2.1/setup.py.orig Fri Mar 2 07:24:14 2001 ++++ ../Python-2.1/setup.py Mon Mar 5 15:26:17 2001 +@@ -14,7 +14,7 @@ + from distutils.command.build_ext import build_ext + + # This global variable is used to hold the list of modules to be disabled. +-disabled_module_list = [] ++disabled_module_list = ["_tkinter", "gdbm", "pyexpat"] + + def find_file(filename, std_dirs, paths): + """Searches for the directory where a given file is located, |