# -*- 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-pyqt-builder
python.rootname     PyQt-builder
version             1.16.3
revision            0

categories-append   devel
platforms           {darwin any}
supported_archs     noarch
license             {GPL-2 GPL-3 PSF}
maintainers         {reneeotten @reneeotten} openmaintainer

description         The PEP 517 compliant PyQt build system
long_description    {*}${description}

homepage            https://www.riverbankcomputing.com/software/pyqt-builder/

distname            pyqt_builder-${version}

checksums           rmd160  36961363a29557b97279f380f86a669dff381109 \
                    sha256  3ce5c03dc3fc856b782da3f53b4f3f3b6556aad7bd8416d7bbfc274d03bcf032 \
                    size    3671995

python.versions     35 36 37 38 39 310 311 312

if {${name} ne ${subport}} {
    if {${python.version} < 37} {
        version     1.12.2
        epoch       1
        revision    0
        checksums   rmd160  1872e0c219233deaf2fbfd57dd4bd4d98dd5baca \
                    sha256  f62bb688d70e0afd88c413a8d994bda824e6cebd12b612902d1945c5a67edcd7 \
                    size    5727071

        depends_build-append \
                    port:py${python.version}-setuptools

        distname    ${python.rootname}-${version}
    } elseif {${python.version} == 37} {
        version     1.15.4
        revision    0
        checksums   rmd160  6c44790bcf83d50c7fd8ab5842e2bf4245b00ce0 \
                    sha256  39f8c75db17d9ce17cb6bbf3df1650b5cebc1ea4e5bd73843d21cc96612b2ae1 \
                    size    3766458
        distname    ${python.rootname}-${version}
    }

    depends_build-append \
                    port:py${python.version}-setuptools_scm

    depends_lib-append \
                    port:py${python.version}-packaging \
                    path:${python.prefix}/bin/sip-build:py${python.version}-sip

    if {${python.version} < 38} {
        depends_lib-append \
                    port:py${python.version}-importlib-metadata
    }

    livecheck.type  none
}
