# -*- 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-metar
version             1.1
revision            0
platforms           darwin
license             GPL-2+
maintainers         nomaintainer

description         python interface to the weather reports of the NOAA
long_description    This library downloads the weather report for a \
                    given NOAA station ID (get yours here), decodes it \
                    and provides easy access to all the data found in \
                    the report.
homepage            https://www.schwarzvogel.de/software/pymetar.html

supported_archs     noarch

master_sites        pypi:p/pymetar

checksums           rmd160  ac3768676eca407e1c1e17a25ce06f75f41d628b \
                    sha256  c90a02ff147dd2753156efbf2a04eb1743c34e99a31bf3fe25569e5beba18278 \
                    size    3162533

python.versions     27 37

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

    if {${python.version} eq 27} {
        version     0.21
        revision    0
        checksums   rmd160  80439b52519facd9b9714cdd5410d02eac6836ee \
                    sha256  331978d9c54d49948e3817a782b857f247db6c279b8bb5bebd4f5b1a4bb503ea \
                    size    22714}

    distname        pymetar-${version}

    livecheck.type  none
} else {
    livecheck.name  pymetar
}
