blob: 0a15b6ab93ed61b2e8c011a0b25c580e37698af6 (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-libs/gerris/gerris-20100114.ebuild,v 1.1 2010/01/15 18:19:13 bicatali Exp $
EAPI=2
inherit autotools eutils
DESCRIPTION="The Gerris Flow Solver"
LICENSE="GPL-2"
HOMEPAGE="http://gfs.sourceforge.net/"
SRC_URI="mirror://sourceforge/gfs/${P}.tar.gz"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="examples mpi"
RDEPEND=">=dev-libs/glib-2.4.0
sci-libs/netcdf
sci-libs/gsl
sci-libs/gts
sci-libs/proj
dev-lang/python
mpi? ( virtual/mpi )"
DEPEND="${RDEPEND}
dev-util/pkgconfig"
# test assume it is installed
RESTRICT="test"
S="${WORKDIR}"/${PN}-snapshot-100114
src_prepare() {
epatch "${FILESDIR}"/${P}-autotools.patch
eautoreconf
}
src_configure() {
econf $(use_enable mpi)
}
src_install() {
emake DESTDIR="${D}" install || die "emake nstall failed"
dodoc AUTHORS ChangeLog NEWS README THANKS TODO
if use examples; then
insinto /usr/share/doc/${PF}/examples
rm -f doc/examples/*.pyc || die "Failed to remove python object"
doins -r doc/examples/* || die
fi
}
|