Ticket #18879: mod_wsgi.diff

File mod_wsgi.diff, 2.0 KB (added by blb@…, 16 years ago)

diff to mod_wsgi

  • files/patch-configure.diff

     
     1--- configure.orig      2007-07-31 06:13:08.000000000 -0600
     2+++ configure   2009-03-19 00:14:33.000000000 -0600
     3@@ -1357,7 +1357,6 @@
     4 PYTHONFRAMEWORK=`${PYTHON} -c 'from distutils import sysconfig; \
     5     print sysconfig.get_config_var("PYTHONFRAMEWORK")'`
     6 
     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@@ -1367,20 +1366,6 @@
     12         print sysconfig.get_config_var("LIBS")'`
     13 
     14     LDLIBS="${LDLIBS1} ${LDLIBS2}"
     15-else
     16-    LDFLAGS1="-framework ${PYTHONFRAMEWORK}"
     17-
     18-    VERSION="${PYTHON_VERSION}"
     19-    STRING="${PYTHONFRAMEWORKDIR}/Versions/${VERSION}/${PYTHONFRAMEWORK}"
     20-    LDFLAGS2=`${PYTHON} -c "from distutils import sysconfig; \
     21-        print sysconfig.get_config_var(\"LINKFORSHARED\").replace( \
     22-        \"${STRING}\", '')"`
     23-
     24-    LDFLAGS="${LDFLAGS1} ${LDFLAGS2}"
     25-
     26-    LDLIBS=`${PYTHON} -c 'from distutils import sysconfig; \
     27-        print sysconfig.get_config_var("LIBS")'`
     28-fi
     29 
     30 
     31 
  • Portfile

     
    44
    55name            mod_wsgi
    66version         1.1
     7revision        1
    78categories      www python
    89platforms       darwin
    910maintainers     taywa.ch:ys
     
    2122               
    2223depends_lib     port:apache2 port:python24
    2324
    24 configure.cppflags-append \
    25                 "-I${prefix}/include/python2.4"
    26 configure.ldflags-append \
    27                 "-Wl,-F${prefix}/Library/Frameworks"
     25patchfiles      patch-configure.diff
     26
    2827configure.args \
    2928                --with-apxs=${prefix}/apache2/bin/apxs \
    3029                --with-python=${prefix}/bin/python2.4