# -*- 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-owslib
python.rootname     OWSLib
version             0.32.1
revision            0

categories-append   gis science net
platforms           {darwin any}
supported_archs     noarch
license             BSD
maintainers         {petr @petrrr} openmaintainer

description         OGC Web Service utility library
long_description    \
    OWSLib is a Python package for client programming with Open Geospatial \
    Consortium (OGC) web service (hence OWS) interface standards, and their \
    related content models. OWSLib provides a common API for accessing \
    service metadata and wrappers for numerous OGC Web Service interfaces.

homepage            https://owslib.readthedocs.io/

checksums           rmd160  92e9684e9808935889deca16cdea55b375bcc04f \
                    sha256  339d499849a14b9c27eeebb67fbcfa52c2e7be82251750dab8b5721669cd1f04 \
                    size    192749

python.versions     39 310 311 312 313

if {${name} ne ${subport}} {
    depends_lib-append      port:py${python.version}-dateutil \
                            port:py${python.version}-lxml \
                            port:py${python.version}-pyproj \
                            port:py${python.version}-requests \
                            port:py${python.version}-yaml

    if {${python.version} <= 39} {
        version             0.31.0
        revision            0
        checksums           rmd160  410ddc5bbd8c9732a24d32524b813e6abe49f26b \
                            sha256  2ed6540087445cc57d905138a590b6ae58624ec7661b5c1682ed4e3303bcd150 \
                            size    185317
        depends_lib-append  port:py${python.version}-tz
    }

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