Ticket #19094: mod_wsgi.diff
File mod_wsgi.diff, 4.3 KB (added by blb@…, 16 years ago) |
---|
-
files/patch-configure.diff
1 --- configure.orig 200 7-07-31 06:13:08.000000000 -06002 +++ configure 2009-0 3-19 00:14:33.000000000 -06003 @@ -1 357,7 +1357,6 @@4 PYTHONFRAMEWORK=`${PYTHON} -c 'from distutils import sysconfig; \5 print sysconfig.get_config_var("PYTHONFRAMEWORK")'`1 --- configure.orig 2009-04-04 17:10:56.000000000 -0600 2 +++ configure 2009-04-16 17:56:18.000000000 -0600 3 @@ -1792,7 +1792,6 @@ 4 from distutils import sysconfig; \ 5 stdout.write(sysconfig.get_config_var("PYTHONFRAMEWORK"))'` 6 6 7 7 -if test "${PYTHONFRAMEWORKDIR}" = "no-framework"; then 8 LDFLAGS =`${PYTHON} -c 'import distutils.sysconfig; \9 print "-L" + distutils.sysconfig.get_python_lib(plat_specific=1,\10 standard_lib=1) +"/config"'`11 @@ -1 367,20 +1366,6 @@12 print sysconfig.get_config_var("LIBS")'`13 14 LDLIBS="${LDLIBS1} ${LDLIBS2}"8 LDFLAGS1="-L${PYTHONLIBDIR}" 9 LDFLAGS2=`${PYTHON} -c 'from sys import stdout; \ 10 import distutils.sysconfig; \ 11 @@ -1807,20 +1806,6 @@ 12 LDLIBS3=`${PYTHON} -c 'from sys import stdout; \ 13 from distutils import sysconfig; \ 14 stdout.write(sysconfig.get_config_var("SYSLIBS"))'` 15 15 -else 16 - LDFLAGS1="- framework ${PYTHONFRAMEWORK}"16 - LDFLAGS1="-F${PYTHONFRAMEWORKPREFIX} -framework ${PYTHONFRAMEWORK}" 17 17 - 18 18 - VERSION="${PYTHON_VERSION}" 19 19 - STRING="${PYTHONFRAMEWORKDIR}/Versions/${VERSION}/${PYTHONFRAMEWORK}" 20 - LDFLAGS2=`${PYTHON} -c "from distutils import sysconfig; \ 21 - print sysconfig.get_config_var(\"LINKFORSHARED\").replace( \ 22 - \"${STRING}\", '')"` 20 - LDFLAGS2=`${PYTHON} -c "from sys import stdout; \ 21 - from distutils import sysconfig; \ 22 - stdout.write(sysconfig.get_config_var(\"LINKFORSHARED\").replace( \ 23 - \"${STRING}\", ''))"` 23 24 - 24 - LDFLAGS="${LDFLAGS1} ${LDFLAGS2}" 25 - 26 - LDLIBS=`${PYTHON} -c 'from distutils import sysconfig; \ 27 - print sysconfig.get_config_var("LIBS")'` 25 - LDLIBS1=`${PYTHON} -c 'from sys import stdout; \ 26 - from distutils import sysconfig; \ 27 - stdout.write(sysconfig.get_config_var("LIBS"))'` 28 28 -fi 29 29 30 31 30 CFLAGS="" 31 if test -x /usr/bin/lipo; then -
Portfile
3 3 PortSystem 1.0 4 4 5 5 name mod_wsgi 6 version 1.1 7 revision 1 6 version 2.4 8 7 categories www python 9 8 platforms darwin 10 9 maintainers taywa.ch:ys … … 17 16 18 17 homepage http://www.modwsgi.org/ 19 18 master_sites http://modwsgi.googlecode.com/files/ 20 checksums md5 40b56807c8b685133fede6b59c32600f \ 21 sha1 a82e79d5d429dba64ef1e0d65b502577f0434649 19 checksums md5 a2b964cc51d6ff86c38c74db5748eab5 \ 20 sha1 0d108fbe3cd9b23bfd529278f2a2747dd64977fe \ 21 rmd160 f0d91efe0c6b2a91031241030285ad486717c2e7 22 22 23 depends_lib port:apache2 port:python2423 depends_lib port:apache2 24 24 25 25 patchfiles patch-configure.diff 26 26 27 configure.args \ 28 --with-apxs=${prefix}/apache2/bin/apxs \ 29 --with-python=${prefix}/bin/python2.4 27 configure.args --with-apxs=${prefix}/apache2/bin/apxs 30 28 31 29 destroot.violate_mtree yes 32 30 pre-destroot { … … 41 39 ui_msg "# ${prefix}/apache2/conf/httpd.conf" 42 40 ui_msg "########################################################" 43 41 } 42 43 variant python24 conflicts python25 python26 description {Use with Python 2.4} { 44 depends_lib-append port:python24 45 configure.args-append --with-python=${prefix}/bin/python2.4 46 } 47 48 variant python25 conflicts python24 python26 description {Use with Python 2.5} { 49 depends_lib-append port:python25 50 configure.args-append --with-python=${prefix}/bin/python2.5 51 } 52 53 variant python26 conflicts python24 python25 description {Use with Python 2.6} { 54 depends_lib-append port:python26 55 configure.args-append --with-python=${prefix}/bin/python2.6 56 } 57 58 if {![variant_isset python24] && ![variant_isset python25] && ![variant_isset python26]} { 59 default_variants +python26 60 } 61