# -*- coding: utf-8; mode: tcl; tab-width: 4; c-basic-offset: 4 -*- # $Id$ PortSystem 1.0 PortGroup python 1.0 set realname graph-tool name py-${realname} version 2.2.17 categories python science platforms darwin license GPL-3 maintainers skewed.de:tiago mmoll description Efficient python graph module long_description graph-tool is an efficient python module for manipulation \ and statistical analysis of graphs. The internal data \ structures and most algorithms are implemented in C++ with \ the Boost Graph Library. homepage http://graph-tool.skewed.de master_sites http://downloads.skewed.de/graph-tool/ use_bzip2 yes checksums md5 1995241c551304a6298a182df5cfeb7e \ sha1 6e6197a2f8598ce9f0fb90aa95a866617c44b125 \ rmd160 f87f6e4e7d9a9083ac21b90ba4bf866fcbab1ba6 distname ${realname}-${version} python.versions 25 26 27 31 32 python.default_version 27 # graph-tool relies on Boost.Python, so make sure it is installed. pre-fetch { if {![file exists ${prefix}/lib/libboost_python-mt.dylib]} { return -code error "Please reinstall boost with one of the python variants enabled." } } if {$subport != $name} { universal_variant no depends_lib-append port:boost \ port:cairomm \ port:cgal \ port:expat \ path:bin/dot:graphviz \ port:py${python.version}-numpy \ port:py${python.version}-scipy \ port:py${python.version}-gobject3 use_configure yes configure.env-append PYTHON=${python.bin} \ PYTHON_VERSION=${python.branch} \ PYTHON_CPPFLAGS=-I${python.include} \ PYTHON_LDFLAGS="-L${python.libdir}/.. -lpython${python.branch}" configure.cflags-append -I${prefix}/include configure.cxxflags-append -I${prefix}/include configure.ldflags-append -L${prefix}/lib configure.args-append --with-boost=${prefix} 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 \ ${destroot}${prefix}/share/doc/py${python.version}-graph-tool } } if {$name == $subport} { livecheck.type regex livecheck.url $homepage livecheck.regex Version (\[0-9.\]+) of graph-tool } else { livecheck.type none }