# -*- 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
PortGroup           select 1.0

name                py-poetry-core
version             1.0.0
revision            0

checksums           rmd160  40bc98e399771ed1929fb22c892b12738a4d6979 \
                    sha256  6a664ff389b9f45382536f8fa1611a0cb4d2de7c5a5c885db1f0c600cd11fbd5 \
                    size    333868

categories-append   devel
platforms           darwin
supported_archs     noarch
license             MIT
maintainers         nomaintainer

homepage            https://github.com/python-poetry/poetry-core
description         A PEP 517 build backend implementation developed for Poetry.
long_description    ${description} This project is intended to be a light \
    weight, fully compliant, self-contained package allowing PEP 517 \
    compatible build frontends to build Poetry managed projects.

# keep older Python versions here, do add the EOL version to the list below
python.versions     36 37 38 39

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

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

        # These files are installed both by this port and by the poetry port
        delete \
            ${destroot}${python.pkgd}/poetry/__init__.py \
            ${destroot}${python.pkgd}/poetry/__pycache__
    }

    livecheck.type  none
}
