summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-visualization/xd3d/xd3d-8.3.1.ebuild')
-rw-r--r--sci-visualization/xd3d/xd3d-8.3.1.ebuild24
1 files changed, 10 insertions, 14 deletions
diff --git a/sci-visualization/xd3d/xd3d-8.3.1.ebuild b/sci-visualization/xd3d/xd3d-8.3.1.ebuild
index ae832b91862b..3974d26a083f 100644
--- a/sci-visualization/xd3d/xd3d-8.3.1.ebuild
+++ b/sci-visualization/xd3d/xd3d-8.3.1.ebuild
@@ -1,8 +1,9 @@
-# Copyright 1999-2008 Gentoo Foundation
+# Copyright 1999-2009 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.2 2008/04/04 10:10:12 bicatali Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-visualization/xd3d/xd3d-8.3.1.ebuild,v 1.3 2009/12/04 19:05:23 bicatali Exp $
-inherit fortran toolchain-funcs multilib
+EAPI=2
+inherit eutils toolchain-funcs
DESCRIPTION="scientific visualization tool"
HOMEPAGE="http://www.cmap.polytechnique.fr/~jouve/xd3d/"
@@ -13,34 +14,29 @@ KEYWORDS="~ppc ~ppc64 ~x86 ~amd64"
IUSE=""
RDEPEND="x11-libs/libXpm"
-
DEPEND="${RDEPEND}
app-shells/tcsh"
-src_unpack() {
- unpack ${A}
- cd "${S}"
+src_prepare() {
epatch "${FILESDIR}"/${P}-gentoo.diff
+ epatch "${FILESDIR}"/${P}-parallel.patch
+ epatch "${FILESDIR}"/${P}-rotated.patch
}
-src_compile() {
+src_configure() {
+ export FC=$(tc-getFC)
sed -e "s:##D##:${D}:" \
-e "s:##lib##:$(get_libdir):" \
- -e "s:##FC##:${FORTRANC}:" \
- -e "s:##CC##:$(tc-getCC):" \
- -e "s:##FFLAGS##:${FFLAGS}:" \
- -e "s:##CFLAGS##:${CFLAGS}:" \
-i RULES.gentoo \
|| die "failed to set up RULES.gentoo"
./configure -arch=gentoo || die "configure failed."
- emake || die "emake failed."
}
src_install() {
dodir /usr/bin
emake install || die "emake install failed"
- dodoc BUGS CHANGELOG FAQ FORMATS INSTALL README || die
+ dodoc BUGS CHANGELOG FAQ FORMATS README
insinto /usr/share/doc/${PF}
doins Manuals/* || die