# -*- 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-pygeocoder
version             1.2.5
revision            0
platforms           darwin
license             BSD
maintainers         nomaintainer

description         A lightweight Python wrapper for Google Geocoding API V3
long_description    ${description}

homepage            https://bitbucket.org/xster/pygeocoder
master_sites        pypi:p/pygeocoder/
distname            pygeocoder-${version}

checksums           rmd160  dc552f53a522918513ca3e01927d8aa8f8115a14 \
                    sha256  c1b8353ec8877cedd070d58cb597c4a94b70df00dc0c482d43aa9a21c90bbba0 \
                    size    8105

python.versions     27

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

    depends_lib-append \
                    port:py${python.version}-requests

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} LICENSE.txt AUTHORS.txt \
            README.txt ${destroot}${docdir}
    }

    livecheck.type  none
}