# -*- 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        geopy geopy 1.21.0
revision            0
name                py-geopy

categories-append   devel
platforms           darwin
supported_archs     noarch
license             MIT
maintainers         nomaintainer

description         Geocoding library for Python.
long_description \
    geopy makes it easy for developers to locate the coordinates of addresses, \
    cities, countries, and landmarks across the globe using third-party \
    geocoders and other sources of data. \
    geopy includes geocoder classes the OpenStreetMap Nominatim, ESRI ArcGIS, \
    Google Geocoding API (V3), Baidu Maps, Bing Maps API, Yandex, IGN France, \
    GeoNames, Mapzen Search, OpenMapQuest, PickPoint, What3Words, OpenCage, \
    SmartyStreets, and GeocodeFarm geocoder services. The various geocoder \
    classes are located in geopy.geocoders.

checksums           rmd160  6a849059945c3f77fb9bccd47050ebefa94d4ce7 \
                    sha256  1f10eb6d9a1444e902779709dbd0864142fa6af8138b58f1f83ad02ffb304be6 \
                    size    254845

python.versions     27 35 36 37 38 39

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

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

    depends_test-append \
                    port:py${python.version}-mock \
                    port:py${python.version}-pytest

    test.run        yes
    test.cmd        py.test-${python.branch}
    test.target
    test.env        PYTHONPATH=${worksrcpath}/build/lib

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

    livecheck.type  none
}
