# -*- 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-cppy
version             1.3.1
revision            0

categories-append   devel
platforms           {darwin any}
supported_archs     noarch
license             BSD
maintainers         {reneeotten @reneeotten} openmaintainer

description         C++ headers for C extension development
long_description    {*}${description}

homepage            https://github.com/nucleic/cppy

checksums           rmd160  0738a073be5450dddb4206c5dfd3e26a13753320 \
                    sha256  55b5307c11874f242ea135396f398cb67a5bbde4fab3e3c3294ea5fce43a6d68 \
                    size    18699

python.versions     310 311 312 313 314

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

    test.run        yes

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