# -*- 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.85
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  1a830ef9903c8a6cfce4876bbcb71109c4978606 \
                    sha256  5dafab74059de4e78f49f6b5684eddae6e7ce46f09cfa059c1d1339e8b1ea0a6 \
                    size    19909902

python.versions     39 310 311 312 313

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