PortSystem      1.0
PortGroup       python 1.0

name            py-pygooglechart
version         0.4.0
license         GPL-3+
maintainers     nomaintainer
platforms       darwin
supported_archs noarch

description     pygooglechart is a complete Python wrapper for the Google Chart API

long_description \
    ${description}

categories-append \
    devel

homepage        https://github.com/gak/pygooglechart
master_sites    http://slowchop.com/pygooglechart/download/ \
                pypi:p/pygooglechart
distname        pygooglechart-${version}

checksums       md5    247b69617aa4676ccd3b48fdbbcf2abf \
                sha1   edb63a9f802183ab338210728e0f49ceff2c069d \
                rmd160 e04f2eb5e11d64b7e8c9befa81074b5ec060b91a

python.versions 26 27

if {$subport ne $name} {
    depends_build   port:py${python.version}-setuptools

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 644 -W ${worksrcpath} COPYING ${destroot}${docdir}
    }
    livecheck.type    none
} else {
    livecheck.type    regex
    livecheck.url     ${homepage}
    livecheck.regex   {pygooglechart-(\d+(?:\.\d+)*)}
}