mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-29 05:38:00 +00:00
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
This commit is contained in:
parent
fba7eacd8b
commit
638e72dc16
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=42515
@ -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:
|
||||
|
@ -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
|
||||
|
11
www/mod_python/files/optpatch-WANT_EAPI
Normal file
11
www/mod_python/files/optpatch-WANT_EAPI
Normal file
@ -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=.
|
||||
|
@ -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
|
11
www/mod_python/files/patch-Python::setup.py
Normal file
11
www/mod_python/files/patch-Python::setup.py
Normal file
@ -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,
|
@ -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:
|
||||
|
@ -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
|
||||
|
11
www/mod_python3/files/optpatch-WANT_EAPI
Normal file
11
www/mod_python3/files/optpatch-WANT_EAPI
Normal file
@ -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=.
|
||||
|
@ -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
|
11
www/mod_python3/files/patch-Python::setup.py
Normal file
11
www/mod_python3/files/patch-Python::setup.py
Normal file
@ -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,
|
Loading…
Reference in New Issue
Block a user