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/gle/files | |
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/gle/files')
-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 |
2 files changed, 47 insertions, 0 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 |