# -*- 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.72
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        http://www.biopython.org/
license         MIT
master_sites    ${homepage}/DIST
distname        biopython-${version}
checksums       rmd160  8d3659c93a8d6c916ea242a2ae689609879454ce \
                sha256  ab6b492443adb90c66267b3d24d602ae69a93c68f4b9f135ba01cb06d36ce5a2 \
                size    16391360


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 DEPRECATED LICENSE NEWS README \
            ${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   http://biopython.org/wiki/Download
    livecheck.regex biopython-(\[0-9\.\]+).tar.gz
}