# -*- 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-pkgconfig
version                 1.5.1
revision                0

platforms               darwin
license                 MIT
maintainers             nomaintainer
supported_archs         noarch

description             Python module to interface with pkg-config.
long_description        {*}${description} It can be used to check if a package\
                        exists, check if a package meets certain version\
                        requirements, query CFLAGS and LDFLAGS, and parse the\
                        output to build extensions with setup.py.

homepage                https://github.com/matze/pkgconfig
master_sites            pypi:[string index ${python.rootname} 0]/${python.rootname}
distname                ${python.rootname}-${version}

checksums               rmd160  35ae7de4d7518cbb11e13cd41b10ea7bab87dd2a \
                        sha256  97bfe3d981bab675d5ea3ef259045d7919c93897db7d3b59d4e8593cba8d354f \
                        size    5611

python.versions         27 35 36 37 38 39

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

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

    livecheck.type    none
}
