[146433] trunk/dports/python/py-graph-tool/Portfile

mmoll at macports.org mmoll at macports.org
Mon Mar 7 07:15:38 PST 2016


Revision: 146433
          https://trac.macports.org/changeset/146433
Author:   mmoll at macports.org
Date:     2016-03-07 07:15:38 -0800 (Mon, 07 Mar 2016)
Log Message:
-----------
py-graph-tool: work around issue with py27 configuration. closes #50831

Modified Paths:
--------------
    trunk/dports/python/py-graph-tool/Portfile

Modified: trunk/dports/python/py-graph-tool/Portfile
===================================================================
--- trunk/dports/python/py-graph-tool/Portfile	2016-03-07 15:02:58 UTC (rev 146432)
+++ trunk/dports/python/py-graph-tool/Portfile	2016-03-07 15:15:38 UTC (rev 146433)
@@ -71,6 +71,13 @@
                          PYTHON_CPPFLAGS=-I${python.include} \
                          PYTHON_LDFLAGS="-L${python.libdir}/.. -lpython${python.branch}" \
                          PYTHON_EXTRA_LDFLAGS="-L${python.libdir}/.. -lpython${python.branch}"
+    # With python2.7 PYTHON_EXTRA_LIBS is determined to be
+    # '-u _PyMac_Error Python.framework/Versions/2.7/Python'. Not clear whether
+    # python2.7 or py-graph-tool's configure script is to blame, but we can easily
+    # work around this:
+    if {${python.version} eq "27"} {
+        configure.env-append PYTHON_EXTRA_LIBS="-u _PyMac_Error"
+    }
     configure.cppflags-append -I${prefix}/include -I${python.include}/..
     configure.ldflags-append -L${prefix}/lib
     configure.args-append --with-boost=${prefix} --exec-prefix=${python.prefix}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160307/d8e340da/attachment.html>


More information about the macports-changes mailing list