blob: e2c200d6337fc7618eed03b98aeab195a78e5e9e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
inherit eutils toolchain-funcs
MY_PN="SMMP"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="Simple Molecular Mechanics for Proteins"
HOMEPAGE="http://smmp.berlios.de/"
SRC_URI="mirror://berlios/${PN}/${MY_P}.tar.bz2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
LICENSE="GPL-2"
IUSE="doc mpi test"
RDEPEND="mpi? ( virtual/mpi )"
DEPEND="${RDEPEND}
doc? ( app-doc/doxygen )"
S="${WORKDIR}/${MY_P}"
src_prepare() {
epatch "${FILESDIR}"/${PV}-flags.patch
}
src_compile() {
if use mpi; then
FC="mpif90"
target="parallel"
else
FC=$(tc-getFC)
target="${PN}"
fi
emake FC=${FC} ${target} || die
if use test; then
emake FC=${FC} examples || die
fi
}
src_test() {
cd EXAMPLES
bash smmp.cmd || die
}
src_install() {
dobin ${PN} || die
insinto $(python_get_sitedir)/${PN}
doins *.py || die
dodoc README || die
}
|