# -*- 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-pythran
version             0.18.1
revision            1

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

description         Ahead of Time compiler for numeric kernels
long_description    {*}${description}

homepage            https://github.com/serge-sans-paille/pythran

checksums           rmd160  22727f50ab0c796dc3ddb3a814785a9bb308cce8 \
                    sha256  8803ed948bf841a11bbbb10472a8ff6ea24ebd70e67c3f77b77be3db900eccfe \
                    size    2406997

python.versions     310 311 312 313 314

if {${name} ne ${subport}} {
    patchfiles      patch-version-caps-requirements.txt.diff

    depends_lib-append \
                    port:py${python.version}-beniget \
                    port:py${python.version}-gast \
                    port:py${python.version}-numpy \
                    port:py${python.version}-ply

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