# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 PortSystem 1.0 PortGroup python 1.0 name py-igraph python.rootname igraph python.pep517 yes version 0.11.6 revision 0 categories-append math science platforms darwin license GPL-2+ python.versions 38 39 310 311 312 maintainers {snc @nerdling} {gmail.com:szhorvat @szhorvat} openmaintainer description Python interface to the igraph library. long_description Python interface to the igraph library for network analysis \ and graph theory. Also install py-cairocffi to enable \ visualization functionality. homepage https://igraph.org/python/ checksums rmd160 355621cc93c148be10926ad0404f7fdc152ae482 \ sha256 837f233256c3319f2a35a6a80d94eafe47b43791ef4c6f9e9871061341ac8e28 \ size 4559252 variant external_igraph description {Use external igraph library} { } default_variants +external_igraph if {${name} ne ${subport}} { compiler.c_standard 1999 compiler.cxx_standard 2011 depends_lib-append port:py${python.version}-texttable if {[variant_isset external_igraph]} { # Build with external igraph library depends_lib-append port:igraph depends_build-append path:bin/pkg-config:pkgconfig build.args-append -C--global-option=--use-pkg-config } else { # Build with vendored igraph library depends_lib-append port:arpack \ port:glpk \ port:gmp \ port:libxml2 depends_build-append path:bin/cmake:cmake set extra_cmake_args { -DUSE_CCACHE=OFF -DBUILD_SHARED_LIBS=OFF -DIGRAPH_ENABLE_LTO=AUTO -DIGRAPH_GLPK_SUPPORT=ON -DIGRAPH_GRAPHML_SUPPORT=ON -DIGRAPH_USE_INTERNAL_ARPACK=OFF -DIGRAPH_USE_INTERNAL_BLAS=OFF -DIGRAPH_USE_INTERNAL_GLPK=OFF -DIGRAPH_USE_INTERNAL_GMP=OFF -DIGRAPH_USE_INTERNAL_LAPACK=OFF -DIGRAPH_USE_INTERNAL_PLFIT=ON -DIGRAPH_OPENMP_SUPPORT=OFF -DBLA_VENDOR=Apple } build.env-append IGRAPH_CMAKE_EXTRA_ARGS=[join $extra_cmake_args] } # python-igraph optionally makes use of these, and some tests depend on them. # If they are not installed, the corresponding tests will simply be skipped. depends_test-append port:py${python.version}-matplotlib \ port:py${python.version}-networkx \ port:py${python.version}-numpy \ port:py${python.version}-pandas \ port:py${python.version}-scipy test.run yes }