# -*- 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.35.0
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  495168750ac9b212f39400560001984115d0ab29 \
                    sha256  0182f377bb30d25b78284bbaf82a12dece97902ed844cee88791ff38665b9b00 \
                    size    194282

python.versions     310 311 312 313 314

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

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