1 |
commit: 4a9f2a14d395df2c985f20d042376ec2379e9cf5 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Feb 28 10:42:08 2021 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 28 12:26:16 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a9f2a14 |
7 |
|
8 |
sci-electronics/osqoop: EAPI-7 bump, switch to cmake.eclass |
9 |
|
10 |
Package-Manager: Portage-3.0.16, Repoman-3.0.2 |
11 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
12 |
|
13 |
.../osqoop-1.2.0_pre20170131-cmake-add_library-static.patch | 11 +++++++++++ |
14 |
sci-electronics/osqoop/osqoop-1.2.0_pre20170131.ebuild | 12 +++++++++--- |
15 |
2 files changed, 20 insertions(+), 3 deletions(-) |
16 |
|
17 |
diff --git a/sci-electronics/osqoop/files/osqoop-1.2.0_pre20170131-cmake-add_library-static.patch b/sci-electronics/osqoop/files/osqoop-1.2.0_pre20170131-cmake-add_library-static.patch |
18 |
new file mode 100644 |
19 |
index 00000000000..8b315cf0c0f |
20 |
--- /dev/null |
21 |
+++ b/sci-electronics/osqoop/files/osqoop-1.2.0_pre20170131-cmake-add_library-static.patch |
22 |
@@ -0,0 +1,11 @@ |
23 |
+--- a/processing/lib/CMakeLists.txt 2017-02-12 19:13:31.000000000 +0100 |
24 |
++++ b/processing/lib/CMakeLists.txt 2021-02-28 11:30:50.812028355 +0100 |
25 |
+@@ -4,7 +4,7 @@ |
26 |
+ FeedForwardNeuralNetwork.cpp |
27 |
+ ) |
28 |
+ include_directories (${CMAKE_BINARY_DIR}/processing/lib) |
29 |
+-add_library(processing ${processing_SRCS}) |
30 |
++add_library(processing STATIC ${processing_SRCS}) |
31 |
+ target_link_libraries(processing Qt5::Core) |
32 |
+ if (CMAKE_COMPILER_IS_GNUCC) |
33 |
+ set_target_properties(processing PROPERTIES COMPILE_FLAGS "-fPIC") |
34 |
|
35 |
diff --git a/sci-electronics/osqoop/osqoop-1.2.0_pre20170131.ebuild b/sci-electronics/osqoop/osqoop-1.2.0_pre20170131.ebuild |
36 |
index 9bac71de0ad..9e14ed9013b 100644 |
37 |
--- a/sci-electronics/osqoop/osqoop-1.2.0_pre20170131.ebuild |
38 |
+++ b/sci-electronics/osqoop/osqoop-1.2.0_pre20170131.ebuild |
39 |
@@ -1,15 +1,16 @@ |
40 |
-# Copyright 1999-2018 Gentoo Foundation |
41 |
+# Copyright 1999-2021 Gentoo Authors |
42 |
# Distributed under the terms of the GNU General Public License v2 |
43 |
|
44 |
-EAPI=6 |
45 |
+EAPI=7 |
46 |
|
47 |
COMMIT=b5bd459dd5c2a180a9a3e5a706ed5039159d7286 |
48 |
-inherit cmake-utils vcs-snapshot |
49 |
+inherit cmake |
50 |
|
51 |
DESCRIPTION="Multi-platform open source software oscilloscope based on Qt" |
52 |
HOMEPAGE="https://github.com/stephanemagnenat/osqoop https://github.com/sandsmark/osqoop" |
53 |
# sandsmark/osqoop: PR-branch on top of last commit in stephanemagnenat/osqoop (17-01-31) |
54 |
SRC_URI="https://github.com/sandsmark/osqoop/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" |
55 |
+S="${WORKDIR}/${PN}-${COMMIT}" |
56 |
|
57 |
LICENSE="GPL-2" |
58 |
SLOT="0" |
59 |
@@ -25,3 +26,8 @@ RDEPEND=" |
60 |
virtual/libusb:0 |
61 |
x11-libs/libXtst" |
62 |
DEPEND="${RDEPEND}" |
63 |
+ |
64 |
+# downstream fix for BUILD_SHARED_LIBS=ON default |
65 |
+PATCHES=( |
66 |
+ "${FILESDIR}"/${P}-cmake-add_library-static.patch |
67 |
+) |