# -*- 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
# $Id: Portfile 106940 2013-06-12 11:38:04Z jmr@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-altgraph
version             0.10.2
categories-append   devel
license             MIT
maintainers         jmr openmaintainer
description         Python graph (network) package
long_description \
    altgraph is a fork of graphlib: a graph (network) package for \
    constructing graphs, BFS and DFS traversals, topological sort, \
    shortest paths, etc. with graphviz output. \
    altgraph includes some additional usage of Python 2.3+ features and \
    enhancements related to modulegraph and macholib.

platforms           darwin
supported_archs     noarch

homepage            http://undefined.org/python/#altgraph
master_sites        https://pypi.python.org/packages/source/a/altgraph/
distname            altgraph-${version}

checksums           md5 059ae244d667cc673e16826c2b96046f \
                    rmd160 c8293a35cc4d08d17481d55baac43c055028af89 \
                    sha256 628ad4e48be307970476ed0a9ab5efaf52e188bff115ab97d9e3d27fbe95fb60

python.versions     24 25 26 27 31 32 33

if {$subport != $name} {
    depends_build   port:py${python.version}-setuptools
    livecheck.type  none
    if {${python.version} <= 25} {
        version     0.9
        checksums   md5 367015bf871815b632975a26d1750133 \
                    sha1 94a434c1af98c8637969d3942d4f04bb633c382c \
                    rmd160 48263978c5634d970a58a7372a81bed55ecaefd9
        distname    altgraph-${version}
    }
} else {
    livecheck.type  regex
    livecheck.url   https://pypi.python.org/pypi/altgraph/
    livecheck.regex altgraph (0\.\[0-9.\]+)
}
