# -*- 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-pyqt5-sip
python.rootname     PyQt5-sip
version             12.18.0
revision            0

categories-append   devel
license             {GPL-2 GPL-3 PSF}
maintainers         {reneeotten @reneeotten} openmaintainer

description         The sip module support for PyQt5
long_description    {*}${description}

homepage            https://www.riverbankcomputing.com/software/sip/

distname            pyqt5_sip-${version}

checksums           rmd160  e1a2637aed68932a5e3b048e3daeaa46cbd79b31 \
                    sha256  71c37db75a0664325de149f43e2a712ec5fa1f90429a21dafbca005cb6767f94 \
                    size    104143

python.versions     39 310 311 312 313 314

if {${name} ne ${subport}} {
    if {${python.version} == 39} {
        version     12.17.1
        revision    0
        epoch       1
        distname    pyqt5_sip-${version}
        checksums   rmd160  179f6134df208cee20d81c7c4a98baab71dcef29 \
                    sha256  0eab72bcb628f1926bf5b9ac51259d4fa18e8b2a81d199071135458f7d087ea8 \
                    size    104136
    }

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

    livecheck.type  none
}
