aboutsummaryrefslogtreecommitdiff
blob: 01a6346408ea1983bada529138e9af1ff36efb1f (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
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils

DESCRIPTION="Modeling and Exchange of Data library"
HOMEPAGE="http://www.code-aster.org/outils/med/"
SRC_URI="http://www.code-aster.org/V2/UPLOAD/DOC/Telechargement/${P}.tar.gz"

LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""

DEPEND="sci-libs/hdf5"
RDEPEND="${DEPEND}"

src_unpack() {
	unpack ${A}
	cd ${S}
	epatch ${FILESDIR}/${P}-test.patch
	epatch ${FILESDIR}/${P}-med_int_type.patch
}

src_compile() {
	if [ "$(tc-arch)" = "amd64" ]; then
		econf --with-med_int=long || die "econf failed"
	else
		econf || die "econf failed"
	fi
	sed -i -e 's:-lgfortranbegin::g' src/Makefile || die "sed failed"
	emake || die "emake failed"
}

src_install() {
	make DESTDIR=${D} install
}