# -*- 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-pyicu
version             2.15.3
revision            0

categories-append   textproc
license             MIT
maintainers         nomaintainer

description         Python extension wrapping the ICU C++ API
long_description    {*}${description}

homepage            https://gitlab.pyicu.org/main/pyicu

checksums           rmd160  8c70b11f1662d1f80a508b2181da26162c71f743 \
                    sha256  f32e78e1cb64d0aeb14f027e037a8944861d3114548818a6adf0081ef51aefc3 \
                    size    267569

python.versions     310 311 312 313 314

if {${name} ne ${subport}} {
    depends_lib-append  path:lib/pkgconfig/icu-uc.pc:icu

    # ICU requires C++17
    compiler.cxx_standard 2017

    depends_test-append port:py${python.version}-six

    test.run            yes

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