# -*- 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.34.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  8bd28f21b912a547d97cac61a808ae82c483a92e \
                    sha256  9c46d59dc03c753912fc3ef3136dbc843dad7572feb1af2cdf0fc5d1a0959028 \
                    size    193937

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} {
        python.rootname     OWSLib
        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}
    }
}
