blob: 8ed2f0d3f5f969a2bfaf4b9957c97f8fb3df541d (
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
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-visualization/xd3d/xd3d-8.3.1.ebuild,v 1.8 2011/06/21 09:57:06 jlec Exp $
EAPI=2
inherit eutils fortran-2 toolchain-funcs
DESCRIPTION="scientific visualization tool"
HOMEPAGE="http://www.cmap.polytechnique.fr/~jouve/xd3d/"
SRC_URI="mirror://gentoo/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc ppc64 x86"
IUSE=""
RDEPEND="x11-libs/libXpm"
DEPEND="${RDEPEND}
app-shells/tcsh"
src_prepare() {
epatch "${FILESDIR}"/${P}-gentoo.diff
epatch "${FILESDIR}"/${P}-parallel.patch
epatch "${FILESDIR}"/${P}-rotated.patch
}
src_configure() {
export FC=$(tc-getFC)
sed -e "s:##D##:${D}:" \
-e "s:##lib##:$(get_libdir):" \
-i RULES.gentoo \
|| die "failed to set up RULES.gentoo"
./configure -arch=gentoo || die "configure failed."
}
src_install() {
dodir /usr/bin
emake install || die "emake install failed"
dodoc BUGS CHANGELOG FAQ FORMATS README
insinto /usr/share/doc/${PF}
doins Manuals/* || die
insinto /usr/share/doc/${PF}/examples
doins -r Examples/* || die
}
|