# -*- 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-jenkins-job-builder
version             2.9.1
revision            0
platforms           darwin
license             Apache-2
maintainers         nomaintainer

description         Manage Jenkins jobs with YAML
long_description    ${description}

homepage            https://docs.openstack.org/infra/jenkins-job-builder
master_sites        pypi:j/${python.rootname}
distname            ${python.rootname}-${version}

checksums           rmd160  b717202d58eaffb5392b741780f9e4bc2bdeb5d3 \
                    sha256  fba5f3efe8bd06d559f06a5d3bd68da5a7395541fcd370053a8174d08519e3d0 \
                    size    587181

python.versions     27

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

    depends_lib-append  port:libyaml \
                        port:py${python.version}-fasteners \
                        port:py${python.version}-Jinja2 \
                        port:py${python.version}-python-jenkins \
                        port:py${python.version}-setuptools \
                        port:py${python.version}-six \
                        port:py${python.version}-stevedore \
                        port:py${python.version}-yaml

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

    livecheck.type      none
}
