# -*- 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-biopython
version             1.87
revision            0

categories-append   science
license             BSD
maintainers         {reneeotten @reneeotten} openmaintainer

description         Python tools for computational molecular biology
long_description    {*}${description}: parsers for various file formats, interfaces for \
                    programs, tools for performing common operations on sequences, etc.

homepage            https://biopython.org/

checksums           rmd160  6c738053e588518508fead967426a0eb966ade1a \
                    sha256  8456c803459b679a9712422e5a7fd9809f2f089bf69bb085f3b077946ac9bdbf \
                    size    19855264

python.versions     310 311 312 313 314

if {${name} ne ${subport}} {
    depends_lib-append \
                    port:py${python.version}-numpy

    # error: ‘for’ loop initial declaration used outside C99 mode
    # error: redefinition of ‘i’
    compiler.c_standard 2011

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} README.rst NEWS.rst \
            LICENSE.rst DEPRECATED.rst CONTRIBUTING.rst \
            CONTRIB.rst ${destroot}${docdir}
    }
}
