# -*- 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 90186 2012-02-25 16:52:59Z adfernandes@macports.org $

PortSystem 1.0
PortGroup python 1.0

name			py-biopython
version			1.59
categories		python 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/
master_sites	${homepage}/DIST
distname		biopython-${version}
checksums       md5     3766ab5169bec7d3508a563c91d1e0ba \
                sha1    dc8e9d76b208a2c2fcc8d4e10c7bbf0cc56dbbfd \
                rmd160  2d08fe70d131cd2a90019465a4f5f680b4c92da3
patchfiles		patch-setup.diff

# Note that python31 and python32 support are in beta,
# but reportlab does not seem available for python3

python.versions         25 26 27
python.default_version  27

if { ${subport} != ${name} } {
    
    depends_lib-append	port:py${python.version}-numpy \
    				    port:py${python.version}-reportlab \
    				    port:flex

    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	regex
livecheck.url	http://biopython.org/wiki/Download
livecheck.regex	biopython-(\[0-9\.\]+).tar.gz
