# -*- 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

set _name           geographiclib
set _n              [string index ${_name} 0]

name                py-${_name}
version             1.49
categories-append   devel gis
platforms           darwin
supported_archs     noarch
license             MIT

maintainers         {petr @petrrr} openmaintainer

description         The geodesic routines from GeographicLib

long_description    The module implements algorithms for geodesics \
                    \(Karney, 2013\) for solving the direct and inverse \
                    problems for an ellipsoid of revolution.

homepage            https://pypi.python.org/pypi/${_name}/${version}

distname            ${_name}-${version}
master_sites        pypi:${_n}/${_name}/

checksums           md5     eec8f975cd72af4f8ddebade1f613184 \
                    rmd160  975c87f3064e3e38bda186a731972a3c1b72678c \
                    sha256  635da648fce80a57b81b28875d103dacf7deb12a3f5f7387ba7d39c51e096533

python.versions     27 34 35 36 37

if {${name} ne ${subport}} {

    test.run        yes
    test.cmd        ${python.bin} setup.py
    test.target     test

    livecheck.type  none
} else {
    livecheck.type  regex
    livecheck.url   https://pypi.python.org/pypi/${_name}/json
    livecheck.regex "\"${_name}-(\[.\\d\]+)\\${extract.suffix}\""
}