Revision: 115387 https://trac.macports.org/changeset/115387 Author: jeremyhu@macports.org Date: 2013-12-31 22:01:56 -0800 (Tue, 31 Dec 2013) Log Message: ----------- py-pysvn: Link against the correct C++ runtime Modified Paths: -------------- trunk/dports/python/py-pysvn/Portfile Modified: trunk/dports/python/py-pysvn/Portfile =================================================================== --- trunk/dports/python/py-pysvn/Portfile 2014-01-01 05:58:54 UTC (rev 115386) +++ trunk/dports/python/py-pysvn/Portfile 2014-01-01 06:01:56 UTC (rev 115387) @@ -5,7 +5,7 @@ name py-pysvn version 1.7.6 -revision 2 +revision 3 categories-append devel maintainers blair gmail.com:yunzheng.hu openmaintainer platforms darwin @@ -26,6 +26,12 @@ python.versions 25 26 27 +# TODO: Simplify once MacPorts 2.3 is released +set cxx_stdlibflags {} +if {[info exists configure.cxx_stdlib] && ${configure.cxx_stdlib} ne {} && [string match *clang* ${configure.cxx}]} { + set cxx_stdlibflags -stdlib=${configure.cxx_stdlib} +} + if {${name} ne ${subport}} { depends_lib-append port:subversion @@ -40,7 +46,7 @@ system "cd ${worksrcpath} && ${python.bin} setup.py backport" reinplace "s|'gcc|'${configure.cc}|g" \ ${worksrcpath}/setup_configure.py - reinplace "s|'g\+\+|'${configure.cxx}|g" \ + reinplace "s|'g\+\+|'${configure.cxx} ${cxx_stdlibflags}|g" \ ${worksrcpath}/setup_configure.py }
participants (1)
-
jeremyhu@macports.org