# -*- 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.74
categories-append   science
maintainers         nomaintainer
platforms           darwin
description         python tools for computational molecular biology
long_description    python tools for computational molecular biology: \
                    parsers for various file formats, interfaces for programs, \
                    tools for performing common operations on sequences, etc.

homepage            https://biopython.org/
license             MIT
master_sites        ${homepage}/DIST
distname            biopython-${version}
checksums           rmd160  c9b2130d895ecea30e37bdd71524ad7c6ea1db2d \
                    sha256  25152c1be2c9205bf80901fc49adf2c2efff49f0dddbcf6e6b2ce31dfa6590c0 \
                    size    16129257


python.versions     27 35 36 37 38

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

    post-destroot {
        file delete -force ${destroot}${prefix}/share/doc/${subport}
        file copy ${worksrcpath}/Doc ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 644 -W ${worksrcpath} CONTRIB.rst CONTRIBUTING.rst \
            DEPRECATED.rst LICENSE.rst NEWS.rst README.rst \
            ${destroot}${prefix}/share/doc/${subport}
    }

    build.env           CFLAGS=-I${python.include}

    test.run            no
    test.cmd            ${build.cmd}
    test.target         test

    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       https://biopython.org/wiki/Download
    livecheck.regex     biopython-(\[0-9\.\]+).tar.gz
}