# -*- 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-import_relative
version             0.2.3
platforms           darwin
supported_archs     noarch
license             GPL-3+
maintainers         nomaintainer

description         A different kind of relative import
long_description    When you have a large package that contains nested \
                    submodules this allows the nested submodules to \
                    refer to one another without having to pull in or \
                    know much about or explicitly import the entire \
                    top-level tree. In contrast to Python's relative \
                    imports, we don't care if a file is invoked as \
                    a main program or as part of a module in the \
                    collection.
homepage            https://code.google.com/p/pyimport-relative

master_sites        pypi:i/import_relative
distname            import_relative-${version}
checksums           rmd160  ab53ebfdbbdf7f5c6f06849f0f7913a1e169a5cd \
                    sha256  3ed62f11ec8fc525686135d55a117e317b62ee8a612b4415436b6fb03d9724ea

python.versions     27 34 35 36

if {${subport} ne ${name}} {
    depends_build-append    port:py${python.version}-setuptools
    livecheck.type          none
} else {
    livecheck.type          regex
    livecheck.url           [lindex ${master_sites} 0]
    livecheck.regex         {import_relative-(\d(?:\.\d+)+)}
}