diff options
author | Andrey Grozin <grozin@gentoo.org> | 2018-01-13 15:14:40 +0700 |
---|---|---|
committer | Andrey Grozin <grozin@gentoo.org> | 2018-01-13 15:14:40 +0700 |
commit | d886010781dc6f67ccf137b8e1397b225238793f (patch) | |
tree | 9115af6005e0b27a5f0c69661dfb5abc8392537e /sci-visualization | |
parent | dev-ruby/amq-protocol: add 2.3.0 (diff) | |
download | gentoo-d886010781dc6f67ccf137b8e1397b225238793f.tar.gz gentoo-d886010781dc6f67ccf137b8e1397b225238793f.tar.bz2 gentoo-d886010781dc6f67ccf137b8e1397b225238793f.zip |
sci-visualization/gle: fix building with -std=c++14
Closes: https://bugs.gentoo.org/638876
Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'sci-visualization')
-rw-r--r-- | sci-visualization/gle/files/gle-4.2.5-c++14.patch | 27 | ||||
-rw-r--r-- | sci-visualization/gle/files/gle-4.2.5-parallel.patch | 20 | ||||
-rw-r--r-- | sci-visualization/gle/gle-4.2.5-r1.ebuild | 8 |
3 files changed, 53 insertions, 2 deletions
diff --git a/sci-visualization/gle/files/gle-4.2.5-c++14.patch b/sci-visualization/gle/files/gle-4.2.5-c++14.patch new file mode 100644 index 000000000000..b548816ae065 --- /dev/null +++ b/sci-visualization/gle/files/gle-4.2.5-c++14.patch @@ -0,0 +1,27 @@ +diff -r -U2 gle-graphics-4.2.5.orig/src/gle/fitcf.h gle-graphics-4.2.5/src/gle/fitcf.h +--- gle-graphics-4.2.5.orig/src/gle/fitcf.h 2015-08-16 13:51:24.000000000 +0600 ++++ gle-graphics-4.2.5/src/gle/fitcf.h 2018-01-13 13:57:23.140749391 +0700 +@@ -182,8 +182,8 @@ + typedef struct Namelist Namelist; + +-#define abs(x) ((x) >= 0 ? (x) : -(x)) ++/*#define abs(x) ((x) >= 0 ? (x) : -(x))*/ + #define dabs(x) (doublereal)abs(x) +-#define min(a,b) ((a) <= (b) ? (a) : (b)) +-#define max(a,b) ((a) >= (b) ? (a) : (b)) ++/*#define min(a,b) ((a) <= (b) ? (a) : (b))*/ ++/*#define max(a,b) ((a) >= (b) ? (a) : (b))*/ + #define dmin(a,b) (doublereal)min(a,b) + #define dmax(a,b) (doublereal)max(a,b) +diff -r -U2 gle-graphics-4.2.5.orig/src/gle/surface/ffitcontour.cpp gle-graphics-4.2.5/src/gle/surface/ffitcontour.cpp +--- gle-graphics-4.2.5.orig/src/gle/surface/ffitcontour.cpp 2015-08-16 13:51:24.000000000 +0600 ++++ gle-graphics-4.2.5/src/gle/surface/ffitcontour.cpp 2018-01-13 14:08:08.169722265 +0700 +@@ -49,7 +49,7 @@ + #include "f2c.h" + #else +-#include "f2c.h" + #include <stdio.h> + #include <math.h> ++#include "f2c.h" + #endif + diff --git a/sci-visualization/gle/files/gle-4.2.5-parallel.patch b/sci-visualization/gle/files/gle-4.2.5-parallel.patch new file mode 100644 index 000000000000..eeca1f5946ba --- /dev/null +++ b/sci-visualization/gle/files/gle-4.2.5-parallel.patch @@ -0,0 +1,20 @@ +diff -r -U2 gle-graphics-4.2.5.orig/src/gui/MakefileAC.in gle-graphics-4.2.5/src/gui/MakefileAC.in +--- gle-graphics-4.2.5.orig/src/gui/MakefileAC.in 2015-08-16 13:51:24.000000000 +0600 ++++ gle-graphics-4.2.5/src/gui/MakefileAC.in 2018-01-13 14:23:09.066684378 +0700 +@@ -83,12 +83,12 @@ + $(QMAKE_PROG) $(QMAKE_OPTS) + +-domake: +- $(MAKE_PROG) ++domake: Makefile ++ $(MAKE) + +-repmake: ++repmake: Makefile + perl ../../platform/autopackage/qt-replace.pl Makefile + + doclean: +- -$(MAKE_PROG) clean ++ -$(MAKE) clean + -@$(RM) qgle install_qgle_name_mac Makefile + -@$(RMDIR) moc diff --git a/sci-visualization/gle/gle-4.2.5-r1.ebuild b/sci-visualization/gle/gle-4.2.5-r1.ebuild index b16b4ee3425d..c9157c018093 100644 --- a/sci-visualization/gle/gle-4.2.5-r1.ebuild +++ b/sci-visualization/gle/gle-4.2.5-r1.ebuild @@ -1,7 +1,7 @@ # Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -EAPI=5 +EAPI=6 inherit eutils elisp-common flag-o-matic autotools DESCRIPTION="Graphics Layout Engine" @@ -30,8 +30,12 @@ RDEPEND="${DEPEND} S="${WORKDIR}"/${MY_P} +PATCHES=( "${FILESDIR}"/${P}-parallel.patch + "${FILESDIR}"/${P}-c++14.patch + ) + src_prepare() { - epatch "${FILESDIR}"/${PN}-4.2.4b-parallel.patch + default eaclocal eautoconf } |