# -*- coding: utf-8; mode: tcl; tab-width: 4; c-basic-offset: 4 -*-
PortGroup active_variants 1.1
PortGroup compiler_blacklist_versions 1.0
categories python science
maintainers skewed.de:tiago {mmoll @mamoll}
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 \
homepage http://graph-tool.skewed.de
master_sites http://downloads.skewed.de/graph-tool/
checksums md5 8bac54cda8d3c21feffd5cf4deba8a6c \
sha1 b716519cc0944f5d8e36948f67df5b33468153d2 \
rmd160 254deebf91608dc980ba722a9989be097e66f202 \
sha256 df6273dc5ef327a0eaf1ef1c46751fce4c0b7573880944e544287b85a068f770
distname ${realname}-${version}
python.versions 27 34 35 36
python.default_version 27
if {${os.major} <= 12 && ${os.platform} eq "darwin"} {
distname ${realname}-${version}
checksums md5 317b29de0d3ef715fdc9281e078cfb17 \
sha1 108be4cf6212eb6886f172ea03813187f73e4c3c \
rmd160 cd2e8506522821750d70a97b951254f0a133d218
if {${name} ne ${subport}} {
compiler.blacklist *gcc* {clang <= 700.1.81} {macports-clang-3.[0-6]}
compiler.fallback-append macports-clang-4.0
configure.cxxflags-append -std=c++14 -stdlib=libc++
variant openmp description "Enable OpenMP" {
# make sure libomp is installed at runtime, even if the compiler gets uninstalled
depends_lib-append lib:${prefix}/lib/libomp/libomp:libomp
configure.args-append --enable-openmp
variant clang38 requires openmp conflicts clang39 clang40 clang50 description "Use clang-3.8 and enable OpenMP" {
configure.compiler macports-clang-3.8
variant clang39 requires openmp conflicts clang38 clang40 clang50 description "Use clang-3.9 and enable OpenMP" {
configure.compiler macports-clang-3.9
variant clang40 requires openmp conflicts clang38 clang39 clang50 description "Use clang-4.0 and enable OpenMP" {
configure.compiler macports-clang-4.0
variant clang50 requires openmp conflicts clang38 clang39 clang40 description "Use clang-5.0 and enable OpenMP" {