# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
# $Id: Portfile 77642 2011-04-07 13:54:54Z adfernandes@macports.org $

PortSystem 1.0
PortGroup python25 1.0

name			py25-biopython
version			1.57
#revision		1
categories		python science
maintainers		mww 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     b095f038684613573fcffb16593a702a \
                sha1    dbbd23c9f555e0c69d61db96f8aa368617ecacef \
                rmd160  ae061442a97decbd9951af8f85913bbc3747ffee
patchfiles		patch-setup.diff
depends_lib-append	port:py25-numpy \
				port:py25-reportlab \
				port:flex

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