blob: abd468e38767903ae51b4a49c0d4f9e3eee67ef5 (
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
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-biology/mammoth/mammoth-1.0.ebuild,v 1.5 2011/06/21 16:07:37 jlec Exp $
inherit autotools eutils fortran-2 flag-o-matic toolchain-funcs
MY_P="${P}-src"
DESCRIPTION="MAtching Molecular Models Obtained from THeory"
HOMEPAGE="http://ub.cbm.uam.es/software.php"
SRC_URI="${MY_P}.tgz"
LICENSE="mammoth"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="
virtual/fortran
"
RDEPEND="${DEPEND}"
RESTRICT="fetch"
S=${WORKDIR}/${MY_P}
pkg_nofetch() {
einfo "Download the source code for MAMMOTH from"
einfo "${HOMEPAGE}"
einfo "and place it in ${DISTDIR}"
}
src_unpack() {
unpack ${A}
cd "${S}"
# Broken with gfortran without this patch
epatch "${FILESDIR}"/${PV}-consistent-system-intrinsic.patch
case $(tc-getFC) in
g77) append-fflags -ffixed-line-length-none ;;
gfortran) append-fflags -ffixed-line-length-none ;;
esac
# It comes with a custom-modified configure for some reason,
# which forces you to pass in the Fortran compiler as a parameter.
# Let's do the standard stuff instead.
eautoreconf
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc README AUTHORS || die
}
|