Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-misc/elmer-fem/, sci-misc/elmer-fem/files/
Date: Wed, 31 Aug 2022 10:22:09
Message-Id: 1661941105.934c792bfe35860a3675d7f179f14ed7c135eede.andrewammerlaan@gentoo
1 commit: 934c792bfe35860a3675d7f179f14ed7c135eede
2 Author: System user; root <root <AT> localhost <DOT> localdomain>
3 AuthorDate: Thu Aug 25 02:59:44 2022 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 31 10:18:25 2022 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=934c792b
7
8 sci-misc: elmer-fem fix rpath and make compatible with qwt-6.2
9
10 Co-authored-by: Terry Wrist
11 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
12 Closes: https://github.com/gentoo/sci/pull/1167
13
14 ...r-fem-9.0-r1.ebuild => elmer-fem-9.0-r2.ebuild} | 2 ++
15 .../elmer-fem/files/elmer-fem-9.0-qwt-6.2.patch | 35 ++++++++++++++++++++++
16 sci-misc/elmer-fem/files/elmer-fem-rpath.patch | 11 +++++++
17 3 files changed, 48 insertions(+)
18
19 diff --git a/sci-misc/elmer-fem/elmer-fem-9.0-r1.ebuild b/sci-misc/elmer-fem/elmer-fem-9.0-r2.ebuild
20 similarity index 96%
21 rename from sci-misc/elmer-fem/elmer-fem-9.0-r1.ebuild
22 rename to sci-misc/elmer-fem/elmer-fem-9.0-r2.ebuild
23 index 6d810ed14..82e1c796f 100644
24 --- a/sci-misc/elmer-fem/elmer-fem-9.0-r1.ebuild
25 +++ b/sci-misc/elmer-fem/elmer-fem-9.0-r2.ebuild
26 @@ -40,6 +40,8 @@ DEPEND="${RDEPEND}"
27 PATCHES=(
28 "${FILESDIR}/${PN}-DCRComplexSolve-compile-error.patch"
29 "${FILESDIR}/${PN}-ElmerIce-compile.patch"
30 + "${FILESDIR}/${PN}-rpath.patch"
31 + "${FILESDIR}/${P}-qwt-6.2.patch"
32 )
33
34 S="${WORKDIR}/elmerfem-release-${PV}"
35
36 diff --git a/sci-misc/elmer-fem/files/elmer-fem-9.0-qwt-6.2.patch b/sci-misc/elmer-fem/files/elmer-fem-9.0-qwt-6.2.patch
37 new file mode 100644
38 index 000000000..13eaf1c5f
39 --- /dev/null
40 +++ b/sci-misc/elmer-fem/files/elmer-fem-9.0-qwt-6.2.patch
41 @@ -0,0 +1,35 @@
42 +From 48e9430ccb858ca5bda28b967a0c84b51e2404b2 Mon Sep 17 00:00:00 2001
43 +From: "E. Albiter" <ealbiter@×××××.com>
44 +Date: Fri, 15 Oct 2021 13:12:48 -0500
45 +Subject: [PATCH] Compatibility with Qwt 6.2. Fix for #293
46 +
47 +---
48 + ElmerGUI/Application/src/convergenceview.h | 8 ++++----
49 + 1 file changed, 4 insertions(+), 4 deletions(-)
50 +
51 +diff --git a/ElmerGUI/Application/src/convergenceview.h b/ElmerGUI/Application/src/convergenceview.h
52 +index 377b644b99..4259eb730e 100755
53 +--- a/ElmerGUI/Application/src/convergenceview.h
54 ++++ b/ElmerGUI/Application/src/convergenceview.h
55 +@@ -51,8 +51,8 @@
56 + #include <qwt_plot_curve.h>
57 + #include <qwt_plot_grid.h>
58 + #include <qwt_legend.h>
59 +-/*#include <qwt_data.h> <-- deprecated in Qwt6, using qwt_compat.h instead*/
60 +-#include <qwt_compat.h>
61 ++/*#include <qwt_data.h> <-- deprecated in Qwt6, using qwt_compat.h instead
62 ++#include <qwt_compat.h> <-- Removed in Qwt 6.2 */
63 + #include <qwt_text.h>
64 + #include <qwt_scale_engine.h>
65 +
66 +@@ -76,8 +76,8 @@ class CurveData
67 +
68 + private:
69 + int d_count;
70 +- QwtArray<double> d_x;
71 +- QwtArray<double> d_y;
72 ++ QVector<double> d_x;
73 ++ QVector<double> d_y;
74 + };
75 +
76 + class Curve
77
78 diff --git a/sci-misc/elmer-fem/files/elmer-fem-rpath.patch b/sci-misc/elmer-fem/files/elmer-fem-rpath.patch
79 new file mode 100644
80 index 000000000..27249fef9
81 --- /dev/null
82 +++ b/sci-misc/elmer-fem/files/elmer-fem-rpath.patch
83 @@ -0,0 +1,11 @@
84 +--- a/CMakeLists.txt.orig 2022-08-24 21:50:59.940905698 -0500
85 ++++ b/CMakeLists.txt 2022-08-24 21:51:08.610804464 -0500
86 +@@ -479,7 +479,7 @@
87 +
88 + # Set up rpaths to point ELMER_INSTALL_LIB_DIR
89 + IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
90 +- SET(ELMERSOLVER_RPATH_STRING "\$ORIGIN/../${ELMER_INSTALL_LIB_DIR}")
91 ++ SET(ELMERSOLVER_RPATH_STRING "${ELMER_INSTALL_LIB_DIR}")
92 + SET(ELMERLIB_RPATH_STRING "\$ORIGIN/")
93 + ELSEIF(APPLE)
94 + SET(ELMERSOLVER_RPATH_STRING "@loader_path/../${ELMER_INSTALL_LIB_DIR}")