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

mmoll at macports.org mmoll at macports.org
Sat Dec 12 02:27:44 PST 2015


Revision: 141658
          https://trac.macports.org/changeset/141658
Author:   mmoll at macports.org
Date:     2015-10-25 10:16:53 -0700 (Sun, 25 Oct 2015)
Log Message:
-----------
py-graph-tool: attempt to fix compilation on OS X 10.10 and older

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

Modified: trunk/dports/python/py-graph-tool/Portfile
===================================================================
--- trunk/dports/python/py-graph-tool/Portfile	2015-10-25 15:27:46 UTC (rev 141657)
+++ trunk/dports/python/py-graph-tool/Portfile	2015-10-25 17:16:53 UTC (rev 141658)
@@ -36,11 +36,15 @@
     checksums       md5     317b29de0d3ef715fdc9281e078cfb17 \
                     sha1    108be4cf6212eb6886f172ea03813187f73e4c3c \
                     rmd160  cd2e8506522821750d70a97b951254f0a133d218
+} else {
+    if {${name} ne ${subport}} {
+        compiler.blacklist *gcc* {clang < 700} macports-clang-3.[0-6]
+        configure.cxxflags-append -std=c++14 -stdlib=libc++
+    }
 }
 
+
 if {${name} ne ${subport}} {
-    compiler.blacklist gcc-3.3 {*gcc-4.[0-7]}
-    compiler.blacklist-append {clang < 500}
     universal_variant  no
     depends_build-append port:pkgconfig
     depends_lib-append port:boost \
@@ -69,10 +73,6 @@
     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}
-    if {[string match *clang* ${configure.compiler}] &&
-        ${os.major} >= 13 && ${os.platform} eq "darwin"} {
-        configure.cxxflags-append -std=c++14 -stdlib=libc++
-    }
     # Clang uses the old libstc++ from gcc 4.2 before OS X 10.9. Boost doesn't
     # include some of the tr1 headers in libstdc++ and defines its own tr1
     # classes. This causes conflicts with sparsehash which insists on using
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151212/7de2cc63/attachment.html>


More information about the macports-changes mailing list