# -*- 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-datacite
version             1.0.1
revision            0

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

description         Python wrapper for the DataCite Metadata Store API
long_description    {*}${description}

homepage            https://datacite.readthedocs.org

checksums           rmd160  a9ce77fd1351e9b18a262ae986a8e2bf423cae2b \
                    sha256  08cdede700550d5f8a2d0d5ac3af712d4f344bcfedb2d99cfacb8ce3a1fd9590 \
                    size    46948

python.versions     38

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

    depends_lib-append \
                    port:py${python.version}-jsonschema \
                    port:py${python.version}-lxml \
                    port:py${python.version}-requests

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