diff options
Diffstat (limited to 'sci-chemistry/relax/relax-9999.ebuild')
-rw-r--r-- | sci-chemistry/relax/relax-9999.ebuild | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/sci-chemistry/relax/relax-9999.ebuild b/sci-chemistry/relax/relax-9999.ebuild new file mode 100644 index 000000000000..c8e8914035eb --- /dev/null +++ b/sci-chemistry/relax/relax-9999.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/relax/relax-9999.ebuild,v 1.1 2013/11/29 10:58:24 jlec Exp $ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +WX_GTK_VER="2.9" + +inherit eutils python-single-r1 scons-utils subversion toolchain-funcs wxwidgets virtualx + +DESCRIPTION="Molecular dynamics by NMR data analysis" +HOMEPAGE="http://www.nmr-relax.com/" +SRC_URI="" +ESVN_REPO_URI="svn://svn.gna.org/svn/relax/trunk" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="" +IUSE="" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND=" + ${PYTHON_DEPS} + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/wxpython:${WX_GTK_VER}[${PYTHON_USEDEP}] + sci-chemistry/molmol + sci-chemistry/pymol[${PYTHON_USEDEP}] + sci-chemistry/vmd + >=sci-libs/bmrblib-1.0.1_pre198[${PYTHON_USEDEP}] + >=sci-libs/minfx-1.0.4_pre98[${PYTHON_USEDEP}] + sci-libs/scipy[${PYTHON_USEDEP}] + sci-visualization/grace + sci-visualization/opendx + x11-libs/wxGTK:${WX_GTK_VER}[X]" +DEPEND="${RDEPEND}" + +pkg_setup() { + python-single-r1_pkg_setup +} + +src_prepare() { + local png + rm -rf minfx bmrblib || die + epatch \ + "${FILESDIR}"/${PN}-3.0.1-gentoo.patch + tc-export CC +} + +src_compile() { + escons + escons user_manual_pdf_nofetch + escons user_manual_html_nofetch +} + +src_test() { + VIRTUALX_COMMAND="${EPYTHON}" + virtualmake ./${PN}.py -x || die +} + +src_install() { + dodoc README docs/{CHANGES,COMMITTERS,JOBS,relax.pdf,prompt_screenshot.txt} + + python_moduleinto ${PN} + python_domodule * + + rm ${PN} README || die + + make_wrapper ${PN}-nmr "${EPYTHON} $(python_get_sitedir)/${PN}/${PN}.py $@" +} |