summaryrefslogtreecommitdiff
blob: 471d250366fcee2714566f573c519f9a2b8761f1 (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
# Copyright 1999-2006 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"

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 || die "econf failed"
	emake || die "emake failed"
}

src_install() {
	emake DESTDIR="${D}" install || die "emake install failed"
	dodoc README THANKS AUTHORS NEWS
}