# -*- 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

# If you update this port, also update the port poetry to the latest
# compatible with this port. py-poetry-core is closely coupled to poetry,
# both in terms of APIs but also the version pinning.
name                py-poetry-core
version             2.2.1
revision            0

distname            poetry_core-${version}

checksums           rmd160  bbd3727438b39b084ae9cfbedde75e55712dfe08 \
                    sha256  97e50d8593c8729d3f49364b428583e044087ee3def1e010c6496db76bd65ac5 \
                    size    378867

categories-append   devel
supported_archs     noarch
platforms           {darwin any}
license             MIT
maintainers         {gmail.com:davidgilman1 @dgilman} openmaintainer

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.

python.versions     39 310 311 312 313 314
python.pep517_backend

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