# -*- 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.86
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  823fe60b8a9d85497514925dce7c6c30f3f1f1c4 \
                    sha256  93a50b586a4d2cec68ab2f99d03ef583c5761d8fba5535cb8e81da781d0d92ff \
                    size    19835323

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}
    }
}
