sci-visualization/xd3d: EAPI bump 4 -> 6
authorGerhard Bräunlich <wippbox@gmx.net>
Sat, 14 Jan 2017 17:02:32 +0000 (18:02 +0100)
committerDavid Seifert <soap@gentoo.org>
Sun, 15 Jan 2017 10:12:50 +0000 (11:12 +0100)
Package-Manager: portage-2.3.0
Closes: https://github.com/gentoo/gentoo/pull/3477

sci-visualization/xd3d/files/xd3d-8.3.1-gentoo.diff
sci-visualization/xd3d/files/xd3d-8.3.1-parallel.patch
sci-visualization/xd3d/files/xd3d-8.3.1-rotated.patch
sci-visualization/xd3d/xd3d-8.3.1-r1.ebuild [new file with mode: 0644]

index 4e7c52b7724af32c73c97ab603e5ba041456a8f6..271fd0b8bd58ff68e89b8e83e7fd350839654482 100644 (file)
@@ -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          |
index 8161fda3d9a7df0b6d2df3373e42aded00441aa8..3143ff2420c4cd9b51ea8d126022f11abc15d024 100644 (file)
@@ -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)
index 9e66dcab586ce2eeccac2a74ac0cd4c2ca1023cf..2d840c0a1342610ce2312cff8308bdd5122e72db 100644 (file)
@@ -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 (file)
index 0000000..8613a36
--- /dev/null
@@ -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
+}