> On Feb 25, 2016, at 12:29 AM, [email protected] wrote: > > Revision > 146030 > Author > [email protected] > Date > 2016-02-24 22:29:31 -0800 (Wed, 24 Feb 2016) > Log Message > > clhep: upgrade to version 2.3.1.1, requires C++11 (libc++, clang >= 3.5)
Unless this is a special case, you should include the cxx11 1.0 portgroup, rather than managing the compiler blacklisting yourself (though it's possible this project has compiler requirements above and beyond what the portgroup uses, in which case you can augment it). If this port has no C++ library dependencies (looks that way, since it declares no library dependencies at all), then you can force the use of libc++, which you should do by setting configure.cxx_stdlib to libc++, rather than manually appending to ldflags. > Modified Paths > > • trunk/dports/science/clhep/Portfile > Diff > > Modified: trunk/dports/science/clhep/Portfile (146029 => 146030) > > --- trunk/dports/science/clhep/Portfile 2016-02-25 04:16:15 UTC (rev > 146029) > +++ trunk/dports/science/clhep/Portfile 2016-02-25 06:29:31 UTC (rev > 146030) > > @@ -6,7 +6,7 @@ > > PortGroup compiler_blacklist_versions 1.0 > > > > name clhep > > -version 2.3.0.0 > > +version 2.3.1.1 > > categories science > > maintainers mojca openmaintainer > > license LGPL-3 > > @@ -19,12 +19,17 @@ > > master_sites > http://proj-clhep.web.cern.ch/proj-clhep/DISTRIBUTION/tarFiles/ > # http://git.cern.ch/pubweb/CLHEP.git > > > -checksums rmd160 a45f006c0d027566ec6ce3fa0c3a1bbc58c78215 \ > - sha256 > 63e77f4f34baa5eaa0adb1ca2438734f2d6f5ca112d830650dd005a6109f2397 > > +checksums rmd160 f302bdf9adcc21e0add5cdf62c2db8a4ba95b8eb \ > + sha256 > 0e2b170df99176feb0aa4f20ea3b33463193c086682749790c5b9b79388d0ff4 > > > > cmake.out_of_source yes > > worksrcdir ${version}/CLHEP > > > > +configure.cxx_stdlib libc++ > +# https://its.cern.ch/jira/browse/CLHEP-134 > > +compiler.blacklist-append *gcc* {clang < 600} macports-clang-3.3 > macports-clang-3.4 > +compiler.fallback-append macports-clang-3.7 macports-clang-3.6 > macports-clang-3.5 > + > > post-build { > > fs-traverse file ${build.dir} { > > if {[string match {*-config} ${file}]} { > > @@ -32,6 +37,7 @@ > > } > > } > > } > > +configure.ldflags-append -stdlib=libc++ > > > > livecheck.type regex > > livecheck.url http://proj-clhep.web.cern.ch/proj-clhep/DISTRIBUTION/ _______________________________________________ macports-dev mailing list [email protected] https://lists.macosforge.org/mailman/listinfo/macports-dev
