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

inherit eutils fortran

DESCRIPTION="Modeling and Exchange of Data library"
HOMEPAGE="http://www.code-aster.org/outils/med/"
SRC_URI="ftp://ftp.freebsd.org/pub/FreeBSD/distfiles/${P}.tar.gz"

LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""
FORTRAN="gfortran ifc"

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

src_unpack() {
	unpack ${A}
	cd "${S}"
	epatch "${FILESDIR}"/"${P}"-gcc-4.3.patch
}

src_compile() {
	if [ "$(tc-arch)" = "amd64" ]; then
		econf --with-med_int=long || die "econf failed"
	else
		econf || die "econf failed"
	fi
	emake || die "emake failed"
}

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