Ticket #48402: Portfile-nghttp2.diff

File Portfile-nghttp2.diff, 2.2 KB (added by Schamschula (Marius Schamschula), 9 years ago)
  • Portfile

    old new  
    55PortGroup           cxx11 1.0
    66PortGroup           github 1.0
    77
    8 github.setup        tatsuhiro-t nghttp2 1.1.1 v
     8github.setup        tatsuhiro-t nghttp2 1.1.2 v
     9set PythonVersion   2.7
    910categories          www
    1011platforms           darwin
    1112maintainers         gmail.com:mschamschula openmaintainer
     
    1920github.tarball_from releases
    2021use_xz              yes
    2122
    22 checksums           rmd160 52570dd747832bd151d34fa9c2b9e3ec232e485f \
    23                     sha256 d36ba13066f4e0594c741a6448547f0b492e31043e0149bd39d2503854d6411c
     23checksums           rmd160 863f176b35b6b1ec7f2d77eea40383650b030606 \
     24                    sha256 8bd4a1dde16bf82fbacfe26ba48f22f6758c2d38202e7a956e0d070372699237
    2425
    2526depends_build       port:pkgconfig
    2627
     
    3738configure.args      --disable-silent-rules \
    3839                    --disable-threads
    3940
    40 configure.env       PYTHON=${prefix}/bin/python2.7 CYTHON=${prefix}/bin/cython-2.7 \
     41configure.env       CYTHON=${prefix}/bin/cython-${PythonVersion} \
    4142                    JANSSON_CFLAGS=-I${prefix}/include JANSSON_LIBS="-L${prefix}/lib -ljansson" \
    4243                    LIBEVENT_OPENSSL_CFLAGS=-I${prefix}/include/event2 \
    4344                    LIBEVENT_OPENSSL_LIBS="-L${prefix}/lib -levent -levent_openssl" \
    4445                    OPENSSL_CFLAGS=-I${prefix}/include/openssl \
    4546                    OPENSSL_LIBS="-L${prefix}/lib -lcrypto -lssl" \
    46                     PYTHON_EXTRA_LDFLAGS="-u _PyMac_Error ${frameworks_dir}/Python.framework/Versions/2.7/Python"
     47                    PYTHON=${prefix}/bin/python${PythonVersion} \
     48                    PYTHON_EXTRA_LDFLAGS="-u _PyMac_Error ${frameworks_dir}/Python.framework/Versions/${PythonVersion}/Python"
     49
     50#   Patch to deal with https://github.com/tatsuhiro-t/nghttp2/issues/303
     51#   Remove once this is fixed upstream.
     52patchfiles          patch-python-Makefile.in.diff
    4753
    4854destroot.env        PYTHONPATH=${destroot}${prefix}/lib/python2.7/site-packages/
    4955
    5056pre-destroot {
    51     xinstall -d ${destroot}${prefix}/lib/python2.7/site-packages/
     57    xinstall -d ${destroot}${prefix}/lib/python${PythonVersion}/site-packages/
    5258}