# -*- 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.5
revision                0

license                 MIT
maintainers             nomaintainer
supported_archs         noarch
platforms               {darwin any}

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

checksums               rmd160 2c799d50fdd9f6f26ebd6b5471c650f20973737c \
                        sha256 deb4163ef11f75b520d822d9505c1f462761b4309b1bb713d08689759ea8b899 \
                        size    6082

python.versions         39 310 311 312 313 314
python.pep517_backend   poetry

if {${name} ne ${subport}} {
    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}
    }
}
