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 | |
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')
4 files changed, 68 insertions, 10 deletions
diff --git a/sci-visualization/xd3d/files/xd3d-8.3.1-gentoo.diff b/sci-visualization/xd3d/files/xd3d-8.3.1-gentoo.diff index 4e7c52b7724a..271fd0b8bd58 100644 --- a/sci-visualization/xd3d/files/xd3d-8.3.1-gentoo.diff +++ b/sci-visualization/xd3d/files/xd3d-8.3.1-gentoo.diff @@ -1,6 +1,6 @@ diff -Naur RULES.gentoo RULES.gentoo ---- RULES.gentoo 1969-12-31 19:00:00.000000000 -0500 -+++ RULES.gentoo 2008-01-21 06:41:41.000000000 -0500 +--- /dev/null 1969-12-31 19:00:00.000000000 -0500 ++++ ./RULES.gentoo 2008-01-21 06:41:41.000000000 -0500 @@ -0,0 +1,82 @@ +#-------------------------------------------------------- +# Configuration file for the Makefiles of xd3d | diff --git a/sci-visualization/xd3d/files/xd3d-8.3.1-parallel.patch b/sci-visualization/xd3d/files/xd3d-8.3.1-parallel.patch index 8161fda3d9a7..3143ff2420c4 100644 --- a/sci-visualization/xd3d/files/xd3d-8.3.1-parallel.patch +++ b/sci-visualization/xd3d/files/xd3d-8.3.1-parallel.patch @@ -1,5 +1,5 @@ ---- ./src/various/Makefile.orig 2009-12-04 18:16:57.000000000 +0000 -+++ ./src/various/Makefile 2009-12-04 18:17:13.000000000 +0000 +--- a/src/various/Makefile 2009-12-04 18:16:57.000000000 +0000 ++++ b/src/various/Makefile 2009-12-04 18:17:13.000000000 +0000 @@ -1,6 +1,6 @@ include ../../RULES @@ -8,8 +8,8 @@ clair : clair.f $(LIBRAIRIE) ;\ $(LINK) $(BINDIR)/clair $(INCF) clair.f $(LIBRAIRIE) $(LINKOPTX) ---- ./src/X/Makefile.orig 2009-12-04 18:16:06.000000000 +0000 -+++ ./src/X/Makefile 2009-12-04 18:16:36.000000000 +0000 +--- a/src/X/Makefile 2009-12-04 18:16:06.000000000 +0000 ++++ b/src/X/Makefile 2009-12-04 18:16:36.000000000 +0000 @@ -118,7 +118,7 @@ lib : $(LIBMARC) $(LIBMARC) : $(OBJETS) $(OBJETSMARC) ; $(AR) $@ $(OBJETS) $(OBJETSMARC) ; $(RANLIB) $@ @@ -19,8 +19,8 @@ clean : ; /bin/rm -f $(OBJETS) $(LIB) $(LIBMARC) ---- ./Makefile.orig 2009-12-04 18:12:08.000000000 +0000 -+++ ./Makefile 2009-12-04 19:06:37.000000000 +0000 +--- a/Makefile 2009-12-04 18:12:08.000000000 +0000 ++++ b/Makefile 2009-12-04 19:06:37.000000000 +0000 @@ -13,22 +13,24 @@ $(BINDIR)/xd3d$(SUFF) \ $(BINDIR)/xgraphic$(SUFF) diff --git a/sci-visualization/xd3d/files/xd3d-8.3.1-rotated.patch b/sci-visualization/xd3d/files/xd3d-8.3.1-rotated.patch index 9e66dcab586c..2d840c0a1342 100644 --- a/sci-visualization/xd3d/files/xd3d-8.3.1-rotated.patch +++ b/sci-visualization/xd3d/files/xd3d-8.3.1-rotated.patch @@ -1,5 +1,5 @@ ---- src/X/rotated.c.orig 2009-12-04 18:09:55.000000000 +0000 -+++ src/X/rotated.c 2009-12-04 18:10:37.000000000 +0000 +--- a/src/X/rotated.c 2009-12-04 18:09:55.000000000 +0000 ++++ b/src/X/rotated.c 2009-12-04 18:10:37.000000000 +0000 @@ -29,6 +29,7 @@ #include <stdio.h> #include <math.h> 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 +} |