# -*- 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 117990 2014-03-18 15:07:09Z mmoll@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-altgraph
version             0.11
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 0e0ca4049e4f9e1826ec3032314c6d2f \
                    rmd160 1c540217fed214503bbb6410072064360b7db844 \
                    sha256 4d2330119a18c18a8c99450f71d5109d662d40727ff3706b868735d5cf3426c7

python.versions     24 25 26 27 31 32 33 34

if {${name} ne ${subport}} {
    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.\]+)
}
