# -*- 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.73
categories-append   science
maintainers         {mmoll @mamoll} openmaintainer
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  cb96af9bcf6c0826420ae76f4145931550d578a5 \
                    sha256  70c5cc27dc61c23d18bb33b6d38d70edc4b926033aea3b7434737c731c94a5e0 \
                    size    15715102


python.versions     27 34 35 36 37

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
}