# $Id: Portfile 56158 2009-08-24 22:35:59Z mmoll@macports.org $

PortSystem 1.0
PortGroup python25 1.0

name			py25-biopython
version			1.51
revision        1
categories		python science
maintainers		mww
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     e973cb96b44b47526d31b6a0039c686f \
                        sha1    1d48208fc0fd5549958fea3eac40d12f032a6473 \
                        rmd160  9136c75a8451af5f7576a63f11655353c38639c8

depends_lib-append	port:py25-numpy \
				port:py25-reportlab

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

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

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

livecheck.check	regex
livecheck.url	http://biopython.org/wiki/Download
livecheck.regex	biopython-(\[0-9\.\]+).tar.gz
