blob: 35828e0467cfb3408d299a2661ab94086097c5d2 (
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
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils
DESCRIPTION="An adaptive hierarchical finite element toolbox"
HOMEPAGE="http://www.alberta-fem.de/"
SRC_URI="http://www.alberta-fem.de/Downloads/${P/.1}.tar.gz
http://gentooexperimental.org/~genstef/dist/${P}.patch.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="virtual/blas
virtual/opengl"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${P/.1}"
src_unpack() {
unpack ${A}
cd "${S}"
# A working version of the 1.2.1 patch provided by upstream
epatch "${WORKDIR}/${P}.patch"
}
src_compile() {
# There exists no ebuild for gltools nor grape, disabling it
econf \
--without-gltools \
--without-grape
emake || die "emake failed"
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc README THANKS AUTHORS NEWS || die "dodoc failed"
}
|