# -*- 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-geopy
version             2.5.0
revision            0

categories-append   devel
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.

platforms           {darwin any}
supported_archs     noarch

checksums           rmd160  56f8936a76cec7864bf0577c1ccb297dd5478a02 \
                    sha256  7b6c849f18108dcce4faa3d614e2801107b465f7b05fd3c1db9db12e225ae950 \
                    size    122254

python.versions     310 311 312 313 314

if {${name} ne ${subport}} {
    depends_lib-append \
                    port:py${python.version}-aiohttp \
                    port:py${python.version}-geographiclib \
                    port:py${python.version}-tz

    depends_test-append \
                    port:py${python.version}-coverage \
                    port:py${python.version}-pytest \
                    port:py${python.version}-pytest-asyncio \
                    port:py${python.version}-sphinx

    test.run        yes

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