Ticket #19094: mod_wsgi.diff

File mod_wsgi.diff, 4.3 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")'`
     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"))'`
    66 
    77-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}"
     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"))'`
    1515-else
    16 -    LDFLAGS1="-framework ${PYTHONFRAMEWORK}"
     16-    LDFLAGS1="-F${PYTHONFRAMEWORKPREFIX} -framework ${PYTHONFRAMEWORK}"
    1717-
    1818-    VERSION="${PYTHON_VERSION}"
    1919-    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}\", ''))"`
    2324-
    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"))'`
    2828-fi
    2929 
    30  
    31  
     30 CFLAGS=""
     31 if test -x /usr/bin/lipo; then
  • Portfile

     
    33PortSystem 1.0
    44
    55name            mod_wsgi
    6 version         1.1
    7 revision        1
     6version         2.4
    87categories      www python
    98platforms       darwin
    109maintainers     taywa.ch:ys
     
    1716
    1817homepage        http://www.modwsgi.org/
    1918master_sites    http://modwsgi.googlecode.com/files/
    20 checksums       md5 40b56807c8b685133fede6b59c32600f \
    21                 sha1 a82e79d5d429dba64ef1e0d65b502577f0434649
     19checksums       md5     a2b964cc51d6ff86c38c74db5748eab5 \
     20                sha1    0d108fbe3cd9b23bfd529278f2a2747dd64977fe \
     21                rmd160  f0d91efe0c6b2a91031241030285ad486717c2e7
    2222               
    23 depends_lib     port:apache2 port:python24
     23depends_lib     port:apache2
    2424
    2525patchfiles      patch-configure.diff
    2626
    27 configure.args \
    28                 --with-apxs=${prefix}/apache2/bin/apxs \
    29                 --with-python=${prefix}/bin/python2.4
     27configure.args  --with-apxs=${prefix}/apache2/bin/apxs
    3028
    3129destroot.violate_mtree yes
    3230pre-destroot {
     
    4139    ui_msg "#  ${prefix}/apache2/conf/httpd.conf"
    4240    ui_msg "########################################################"
    4341}
     42
     43variant 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
     48variant 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
     53variant 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
     58if {![variant_isset python24] && ![variant_isset python25] && ![variant_isset python26]} {
     59   default_variants     +python26
     60}
     61