diff options
Diffstat (limited to 'sci-chemistry/relax/relax-2.1.0.ebuild')
-rw-r--r-- | sci-chemistry/relax/relax-2.1.0.ebuild | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/sci-chemistry/relax/relax-2.1.0.ebuild b/sci-chemistry/relax/relax-2.1.0.ebuild new file mode 100644 index 000000000000..6d8f10a6e160 --- /dev/null +++ b/sci-chemistry/relax/relax-2.1.0.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/relax/relax-2.1.0.ebuild,v 1.1 2012/07/19 16:05:51 jlec Exp $ + +EAPI=4 + +PYTHON_DEPEND="2" + +WX_GTK_VER="2.8" + +inherit eutils python scons-utils toolchain-funcs wxwidgets + +DESCRIPTION="Molecular dynamics by NMR data analysis" +HOMEPAGE="http://www.nmr-relax.com/" +SRC_URI="http://download.gna.org/relax/${P}.src.tar.bz2" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="" + +RDEPEND=" + dev-python/numpy + sci-libs/bmrblib + sci-libs/minfx + sci-libs/scipy + x11-libs/wxGTK:2.8[X]" +DEPEND="${RDEPEND}" + +pkg_setup() { + wxwidgets_pkg_setup + python_pkg_setup + python_set_active_version 2 +} + +src_prepare() { + rm -rf minfx bmrblib + epatch "${FILESDIR}"/${P}-gentoo.patch + tc-export CC +} + +src_compile() { + escons +} + +src_test() { + $(PYTHON) ./${PN}.py -s || die + $(PYTHON) ./${PN}.py -x || die +} + +src_install() { + dodoc README + rm ${PN} README || doe + + insinto $(python_get_sitedir)/${PN} + doins -r * + + make_wrapper ${PN} "$(PYTHON) $(python_get_sitedir)/${PN}/${PN}.py $@" +} |