Revision: 103348 https://trac.macports.org/changeset/103348 Author: mmoll@macports.org Date: 2013-02-22 06:53:26 -0800 (Fri, 22 Feb 2013) Log Message: ----------- py-graph-tool: update to 2.2.22 Modified Paths: -------------- trunk/dports/python/py-graph-tool/Portfile Modified: trunk/dports/python/py-graph-tool/Portfile =================================================================== --- trunk/dports/python/py-graph-tool/Portfile 2013-02-22 14:43:22 UTC (rev 103347) +++ trunk/dports/python/py-graph-tool/Portfile 2013-02-22 14:53:26 UTC (rev 103348) @@ -7,8 +7,7 @@ set realname graph-tool name py-${realname} -version 2.2.18 -revision 3 +version 2.2.22 categories python science platforms darwin license GPL-3 @@ -21,11 +20,11 @@ homepage http://graph-tool.skewed.de master_sites http://downloads.skewed.de/graph-tool/ use_bzip2 yes -checksums md5 c79d81749824a1b015fd026ebd7fa53c \ - sha1 c980d71250b297e04790bf51dc390dd1ea49af9d \ - rmd160 49341afe929612ac12b1a3ce34d8040d6ad960ae +checksums md5 8cf5f2d4b3b57a07a9b6dd6182d18c39 \ + sha1 20ba5e4a6c63997db66abb1f18dc2d64af1deca9 \ + rmd160 dbdff60e64d821f45dde175274bf513d3d86e420 distname ${realname}-${version} -python.versions 26 27 +python.versions 26 27 31 32 python.default_version 27 if {$subport != $name} { @@ -49,20 +48,28 @@ PYTHON_VERSION=${python.branch} \ PYTHON_CPPFLAGS=-I${python.include} \ PYTHON_LDFLAGS="-L${python.libdir}/.. -lpython${python.branch}" - configure.cflags-append -I${prefix}/include -I${python.include}/.. - configure.cxxflags-append -I${prefix}/include -I${python.include}/.. + configure.cppflags-append -I${prefix}/include -I${python.include}/.. configure.ldflags-append -L${prefix}/lib - configure.args-append --with-boost=${prefix} + configure.args-append --with-boost=${prefix} --exec-prefix=${python.prefix} + # Clang uses the old libstc++ from gcc 4.2 by default. 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 + # the old tr1 headers. Remove this if/when clang switches to libc++ at + # some point. + if {[string match *clang* ${configure.compiler}]} { + configure.args-append --disable-sparsehash + } + else { + depends_lib-append port:sparsehash + configure.cppflags-append -I${prefix}/include/sparsehash + } build.cmd make build.target all destroot.cmd make destroot.destdir DESTDIR=${destroot} post-destroot { - xinstall -d ${destroot}${python.pkgd} - file rename ${destroot}${prefix}/lib/python${python.branch}/site-packages/graph_tool \ - ${destroot}${python.pkgd} - file rename ${destroot}${prefix}/doc/graph-tool \ + file rename ${destroot}${prefix}/share/doc/graph-tool \ ${destroot}${prefix}/share/doc/py${python.version}-graph-tool } }
participants (1)
-
mmoll@macports.org