# -*- 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
PortGroup           github 1.0

github.setup        maxtepkeev python-redmine 2.2.1 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
name                py-redmine


maintainers         {danchr @danchr} openmaintainer
python.versions     38

description         A library for communicating with a Redmine project management application
long_description    {*}${description}
platforms           {darwin any}
supported_archs     noarch
license             Apache-2

checksums           rmd160  cd840a03936ea560fb01b65cfd8fc99fd9205a18 \
                    sha256  03688285e75a5356a0f0cb1296b36c6769f6887333cc27396451b32af7880bcb \
                    size    112512

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

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

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

    livecheck.type  none
}
