/[gentoo-x86]/sci-chemistry/relax/relax-2.1.0.ebuild
Gentoo

Contents of /sci-chemistry/relax/relax-2.1.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu Jul 19 16:05:51 2012 UTC (2 years ago) by jlec
Branch: MAIN
sci-chemistry/relax: New addition

(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 EAPI=4
6
7 PYTHON_DEPEND="2"
8
9 WX_GTK_VER="2.8"
10
11 inherit eutils python scons-utils toolchain-funcs wxwidgets
12
13 DESCRIPTION="Molecular dynamics by NMR data analysis"
14 HOMEPAGE="http://www.nmr-relax.com/"
15 SRC_URI="http://download.gna.org/relax/${P}.src.tar.bz2"
16
17 SLOT="0"
18 LICENSE="GPL-2"
19 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
20 IUSE=""
21
22 RDEPEND="
23 dev-python/numpy
24 sci-libs/bmrblib
25 sci-libs/minfx
26 sci-libs/scipy
27 x11-libs/wxGTK:2.8[X]"
28 DEPEND="${RDEPEND}"
29
30 pkg_setup() {
31 wxwidgets_pkg_setup
32 python_pkg_setup
33 python_set_active_version 2
34 }
35
36 src_prepare() {
37 rm -rf minfx bmrblib
38 epatch "${FILESDIR}"/${P}-gentoo.patch
39 tc-export CC
40 }
41
42 src_compile() {
43 escons
44 }
45
46 src_test() {
47 $(PYTHON) ./${PN}.py -s || die
48 $(PYTHON) ./${PN}.py -x || die
49 }
50
51 src_install() {
52 dodoc README
53 rm ${PN} README || doe
54
55 insinto $(python_get_sitedir)/${PN}
56 doins -r *
57
58 make_wrapper ${PN} "$(PYTHON) $(python_get_sitedir)/${PN}/${PN}.py $@"
59 }

  ViewVC Help
Powered by ViewVC 1.1.20