# -*- 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 119287 2014-04-22 12:29:26Z jmr@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-modulegraph
version             0.11.1
categories-append   devel
license             MIT
maintainers         jmr openmaintainer
description         Python module dependency analysis tool
long_description \
    modulegraph determines a dependency graph between Python modules \
    primarily by bytecode analysis for import statements. \
    modulegraph uses similar methods to modulefinder from the standard \
    library, but uses a more flexible internal representation, has more \
    extensive knowledge of special cases, and is extensible.

platforms           darwin
supported_archs     noarch

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

checksums           md5 de46cce115bfd931e8c2ca34576784f7 \
                    rmd160 fc0df4712ff6902acea010d55e372a9813c6a7f5 \
                    sha256 9c2a384edc94ea3b42cbfb0fc1c931a099cb16503e9ab84b3457253ed6e330a1

python.versions     24 25 26 27 31 32 33 34

if {${name} ne ${subport}} {
    depends_lib         port:py${python.version}-altgraph \
                        port:py${python.version}-setuptools
    livecheck.type  none
    if {${python.version} <= 25} {
        version     0.9.1
        checksums   md5 4d5e8dbfc35d7a3d1123c4cc2d958125 \
                    sha1 92f4307ac1d8b4fef7acd12f72a71c63109ff246 \
                    rmd160 b8912f3e618a735f75e5f4d6ca60f78ffb557537
        distname    modulegraph-${version}
    }
} else {
    livecheck.type  regex
    livecheck.url   https://pypi.python.org/pypi/modulegraph
    livecheck.regex {modulegraph ([0-9.]+)}
}
