# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header$ NEED_PYTHON=2.3 inherit distutils DESCRIPTION="A Python graph-database toolkit oriented primarily on bioinformatics applications" HOMEPAGE="http://code.google.com/p/pygr/" SRC_URI="http://pygr.googlecode.com/files/${P}.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="doc mysql" DEPEND="" RDEPEND="mysql? ( dev-python/mysql-python )" src_unpack() { ln -s "${PN}" "${P}" distutils_src_unpack } src_install() { distutils_src_install dodoc README GPL if use doc; then cd doc/html/pygr dohtml *.html *.css *.png docinto html/icons dodoc icons/*.png fi } src_test() { cd tests "${python}" protest.py || die "Running tests failed" }