# -*- 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-pdbecif
python.rootname     PDBeCif
version             1.5
revision            0

categories-append   science
platforms           {darwin any}
supported_archs     noarch
license             Apache-2
maintainers         {reneeotten @reneeotten} openmaintainer

description         Python package for reading, writing and manipulating mmCIF files
long_description    {*}${description}, distributed by the wwPDB.

homepage            https://github.com/PDBeurope/pdbecif

checksums           rmd160  42e1427e17ea9928643340b23cf27518ef223d7b \
                    sha256  b3925fa22095a8780ac3f9c93ca8c94d89434d93fd959dfa240fcefde0ecfeb1 \
                    size    47588

python.versions     310 311 312 313 314

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

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