diff options
author | Gerhard Bräunlich <wippbox@gmx.net> | 2017-01-14 18:02:32 +0100 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2017-01-15 11:12:50 +0100 |
commit | f148108a85b17ad87ec5f31ad44f3bbd580c9e58 (patch) | |
tree | 27f0df1ba0186a119a9dce8338ea42fb83dbf7b4 /sci-visualization/xd3d/xd3d-8.3.1-r1.ebuild | |
parent | sci-visualization/xyscan: removing EAPI 4 ebuild (diff) | |
download | gentoo-f148108a85b17ad87ec5f31ad44f3bbd580c9e58.tar.gz gentoo-f148108a85b17ad87ec5f31ad44f3bbd580c9e58.tar.bz2 gentoo-f148108a85b17ad87ec5f31ad44f3bbd580c9e58.zip |
sci-visualization/xd3d: EAPI bump 4 -> 6
Package-Manager: portage-2.3.0
Closes: https://github.com/gentoo/gentoo/pull/3477
Diffstat (limited to 'sci-visualization/xd3d/xd3d-8.3.1-r1.ebuild')
-rw-r--r-- | sci-visualization/xd3d/xd3d-8.3.1-r1.ebuild | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/sci-visualization/xd3d/xd3d-8.3.1-r1.ebuild b/sci-visualization/xd3d/xd3d-8.3.1-r1.ebuild new file mode 100644 index 000000000000..8613a363a23f --- /dev/null +++ b/sci-visualization/xd3d/xd3d-8.3.1-r1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit 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 ~amd64-linux ~x86-linux" +IUSE="doc examples" + +RDEPEND=" + x11-libs/libXpm" +DEPEND="${RDEPEND} + app-shells/tcsh" + +PATCHES=( + "${FILESDIR}"/${P}-gentoo.diff + "${FILESDIR}"/${P}-parallel.patch + "${FILESDIR}"/${P}-rotated.patch + "${FILESDIR}"/${P}-cflags.patch +) + +src_prepare() { + default + sed \ + -e 's:"zutil.h":<zlib.h>:g' \ + -i src/qlib/timestuff.c || die + sed \ + -e "s:##D##:${ED%/}:" \ + -e "s:##lib##:$(get_libdir):" \ + -i RULES.gentoo \ + || die "failed to set up RULES.gentoo" +} + +src_configure() { + tc-export CC + ./configure -arch=gentoo || die "configure failed." +} + +src_install() { + dodir /usr/bin + default + dodoc FORMATS + + use doc && dodoc -r Manuals + if use examples; then + mv {E,e}xamples || die + dodoc -r examples + docompress -x /usr/share/doc/${PF}/examples + fi +} |