# -*- 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
PortGroup           github 1.0

github.setup        rhattersley pyepsg 0.4.0 v
name                py-epsg
revision            0

categories-append   gis
platforms           darwin
supported_archs     noarch
license             LGPL-3
maintainers         {petr @petrrr} openmaintainer

description         Easy access to the EPSG database via http://epsg.io/
long_description    ${description}

checksums           rmd160  2f3635e2350ded2a7e2687bf0721a49fe53491da \
                    sha256  207161c981d8ff979c3543c0ac66310e31868bb9d80fb2833e9872337f769c32 \
                    size    23575

python.versions     27 35 36 37 38

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

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

    post-destroot {
        set dest_doc ${destroot}${prefix}/share/doc/${subport}
        xinstall -d ${dest_doc}
        xinstall -m 0644 -W ${worksrcpath} README.rst \
            COPYING COPYING.LESSER ${dest_doc}
    }

    livecheck.type  none
}