# -*- 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-redmine
python.rootname     python-redmine
version             2.5.0
revision            0

platforms           {darwin any}
supported_archs     noarch
license             Apache-2
maintainers         {danchr @danchr} openmaintainer

description         A library for communicating with a Redmine project management application
long_description    {*}${description}

homepage            https://github.com/maxtepkeev/python-redmine

checksums           rmd160  a660396282dcf915b15673a4a306e7311825482e \
                    sha256  81bdc529aaf188658e2d07488096c795d03d4e256711bfa3fa3f17b1eecc471b \
                    size    73643

python.versions     313

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

    test.run        yes

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