# -*- 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
# $Id: Portfile 117249 2014-02-20 18:00:14Z mmoll@macports.org $

PortSystem 1.0
PortGroup python 1.0

name            py-biopython
version         1.63
categories-append     science
maintainers     mmoll 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           md5     09c58433150849b131d2d9bbfdf342d3 \
                    sha1    144b597edfe04486116811455b0e9b7d450bf618 \
                    rmd160  8f20643ed90c960a69028572c61d7c27f47fc4f7

python.versions 27 33 34

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
}
