[147493] trunk/dports/www/nghttp2/Portfile
cal at macports.org
cal at macports.org
Tue Apr 5 13:30:36 PDT 2016
Revision: 147493
https://trac.macports.org/changeset/147493
Author: cal at macports.org
Date: 2016-04-05 13:30:36 -0700 (Tue, 05 Apr 2016)
Log Message:
-----------
nghttp2: Add python35 variant, #51060
Patch from maintainer, closes #51060.
Modified Paths:
--------------
trunk/dports/www/nghttp2/Portfile
Modified: trunk/dports/www/nghttp2/Portfile
===================================================================
--- trunk/dports/www/nghttp2/Portfile 2016-04-05 20:00:23 UTC (rev 147492)
+++ trunk/dports/www/nghttp2/Portfile 2016-04-05 20:30:36 UTC (rev 147493)
@@ -6,8 +6,6 @@
PortGroup github 1.0
github.setup tatsuhiro-t nghttp2 1.9.2 v
-set PythonVersion 2.7
-set PythonBranch [join [lrange [split ${PythonVersion} .] 0 1] ""]
categories www
platforms darwin
maintainers gmail.com:mschamschula openmaintainer
@@ -24,6 +22,16 @@
checksums rmd160 ef40a5c6782294116863e22890c0a74a54715fdb \
sha256 3d600ef8bfd151769559bc23806877b8b4eaf3d66776e6c1427b9c04cce8e853
+if {![variant_isset python35]} { default_variants +python27 }
+
+if {![variant_isset python27] && ![variant_isset python35]} {
+ error "You must select one of the python variants."
+}
+
+if {[variant_isset python27]} { set PythonVersion 2.7 }
+if {[variant_isset python35]} { set PythonVersion 3.5 }
+set PythonBranch [join [lrange [split ${PythonVersion} .] 0 1] ""]
+
depends_build port:pkgconfig
depends_lib port:jansson \
@@ -46,11 +54,16 @@
LIBEVENT_OPENSSL_LIBS="-L${prefix}/lib -levent -levent_openssl" \
OPENSSL_CFLAGS=-I${prefix}/include/openssl \
OPENSSL_LIBS="-L${prefix}/lib -lcrypto -lssl" \
- PYTHON=${prefix}/bin/python${PythonVersion} \
- PYTHON_EXTRA_LDFLAGS="-u _PyMac_Error ${frameworks_dir}/Python.framework/Versions/${PythonVersion}/Python"
+ PYTHON=${prefix}/bin/python${PythonVersion}
destroot.env PYTHONPATH=${destroot}${prefix}/lib/python${PythonVersion}/site-packages/
pre-destroot {
xinstall -d ${destroot}${prefix}/lib/python${PythonVersion}/site-packages/
}
+
+variant python27 conflicts python35 description {Build using Python 2.7} {
+ configure.env-append PYTHON_EXTRA_LDFLAGS="-u _PyMac_Error ${frameworks_dir}/Python.framework/Versions/${PythonVersion}/Python"
+}
+
+variant python35 conflicts python27 description {Build using Python 3.5} {}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160405/a0401a7a/attachment.html>
More information about the macports-changes
mailing list