diff options
Diffstat (limited to 'sci-biology/biopython/biopython-1.54_beta.ebuild')
-rw-r--r-- | sci-biology/biopython/biopython-1.54_beta.ebuild | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/sci-biology/biopython/biopython-1.54_beta.ebuild b/sci-biology/biopython/biopython-1.54_beta.ebuild new file mode 100644 index 0000000..f0c36a5 --- /dev/null +++ b/sci-biology/biopython/biopython-1.54_beta.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-biology/biopython/biopython-1.53.ebuild,v 1.5 2010/02/13 19:10:21 armin76 Exp $ + +EAPI="2" +SUPPORT_PYTHON_ABIS="1" + +inherit base distutils eutils + +MY_P=${P/_beta/b} +DESCRIPTION="Biopython - Python modules for computational molecular biology" +HOMEPAGE="http://www.biopython.org http://pypi.python.org/pypi/biopython" +SRC_URI="http://www.biopython.org/DIST/${MY_P}.tar.gz" + +LICENSE="as-is" +SLOT="0" +KEYWORDS="alpha amd64 ppc sparc x86" +IUSE="mysql postgres" + +RDEPEND="dev-python/numpy + >=dev-python/reportlab-2.0 + mysql? ( dev-python/mysql-python ) + postgres? ( dev-python/psycopg )" +DEPEND="${RDEPEND} + sys-devel/flex" +RESTRICT_PYTHON_ABIS="3.*" +S=${WORKDIR}/${MY_P} + +PATCHES=( + "${FILESDIR}/${PN}-1.51-flex.patch" +) + +DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES="1" +DOCS="CONTRIB DEPRECATED NEWS README" +PYTHON_MODNAME="Bio BioSQL" + +src_compile() { + distutils_src_compile +} + +src_test() { + testing() { + cd Tests + PYTHONPATH="$(ls -d ../build/lib.*)" "$(PYTHON)" run_tests.py + } + python_execute_function -s testing +} + +src_install() { + distutils_src_install + + dodir "/usr/share/doc/${PF}" + cp -r Doc/* "${D}/usr/share/doc/${PF}/" || \ + die "Failed to install documentation." + dodir "/usr/share/${PN}" + rm -f Tests/*.pyc || \ + die "Failed to remove precompiled test files." + cp -r --preserve=mode Scripts Tests "${D}/usr/share/${PN}/" || \ + die "Failed to install shared files." +} |