commit:     f148108a85b17ad87ec5f31ad44f3bbd580c9e58
Author:     Gerhard Bräunlich <wippbox <AT> gmx <DOT> net>
AuthorDate: Sat Jan 14 17:02:32 2017 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sun Jan 15 10:12:50 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f148108a

sci-visualization/xd3d: EAPI bump 4 -> 6

Package-Manager: portage-2.3.0
Closes: https://github.com/gentoo/gentoo/pull/3477

 .../xd3d/files/xd3d-8.3.1-gentoo.diff              |  4 +-
 .../xd3d/files/xd3d-8.3.1-parallel.patch           | 12 ++---
 .../xd3d/files/xd3d-8.3.1-rotated.patch            |  4 +-
 sci-visualization/xd3d/xd3d-8.3.1-r1.ebuild        | 58 ++++++++++++++++++++++
 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 4e7c52b..271fd0b 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 8161fda..3143ff2 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 9e66dca..2d840c0 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 00000000..8613a36
--- /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
+}

Reply via email to