1 |
commit: 70a6708353a8e059c182cee66251ac7bbc695e6b |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Sep 1 00:26:08 2021 +0000 |
4 |
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
5 |
CommitDate: Wed Sep 1 00:26:08 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=70a67083 |
7 |
|
8 |
sys-cluster/rankstr: add 0.0.3, drop 0.0.2 |
9 |
|
10 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
11 |
|
12 |
sys-cluster/rankstr/Manifest | 2 +- |
13 |
sys-cluster/rankstr/files/rankstr-no-static.patch | 16 ++++++++++++++ |
14 |
.../{rankstr-0.0.2.ebuild => rankstr-0.0.3.ebuild} | 25 +++++++++++----------- |
15 |
3 files changed, 30 insertions(+), 13 deletions(-) |
16 |
|
17 |
diff --git a/sys-cluster/rankstr/Manifest b/sys-cluster/rankstr/Manifest |
18 |
index 49b1c2ed1..928aea85d 100644 |
19 |
--- a/sys-cluster/rankstr/Manifest |
20 |
+++ b/sys-cluster/rankstr/Manifest |
21 |
@@ -1 +1 @@ |
22 |
-DIST rankstr-0.0.2.tar.gz 10290 BLAKE2B 4efa609804bffd0fe9215e9b06112615ed85657af88bd15e1a51a5db7ccc8701bf162ea88096df69a42ecd062e3099e5c18986d72fd8c5cc14b89fd019b3322d SHA512 fd4814ec797566004c3141b46b4ca410e217857e2bee3dc3b0f350c2c10fcaff62e3608fb0233894a0960aade660f55a536ea7cc41c9aed3a355b3a05f432a0f |
23 |
+DIST rankstr-0.0.3.tar.gz 14734 BLAKE2B 574dff65368912e0f63da81b35069888cf40c6768e7bea456aa8104976a87c49102ee860f22f405bcc732f1d36be3e4d35e4e58dfba901eda85ce18a0d9d557b SHA512 d1672bb6d09567c44c6bdf96d2dd670edc1d1abb113bb5b893c1cb5a78428b95e425639d5d65f2a68a76f11034a9009c659b5e53ca9f543a6a78d0c14ba59e57 |
24 |
|
25 |
diff --git a/sys-cluster/rankstr/files/rankstr-no-static.patch b/sys-cluster/rankstr/files/rankstr-no-static.patch |
26 |
new file mode 100644 |
27 |
index 000000000..c3072eaa8 |
28 |
--- /dev/null |
29 |
+++ b/sys-cluster/rankstr/files/rankstr-no-static.patch |
30 |
@@ -0,0 +1,16 @@ |
31 |
+--- a/src/CMakeLists.txt |
32 |
++++ b/src/CMakeLists.txt |
33 |
+@@ -22,13 +22,3 @@ |
34 |
+ TARGET_LINK_LIBRARIES(rankstr ${RANKSTR_EXTERNAL_LIBS}) |
35 |
+ SET_TARGET_PROPERTIES(rankstr PROPERTIES OUTPUT_NAME rankstr CLEAN_DIRECT_OUTPUT 1) |
36 |
+ INSTALL(TARGETS rankstr DESTINATION ${CMAKE_INSTALL_LIBDIR}) |
37 |
+- |
38 |
+-ADD_LIBRARY(rankstr-static STATIC $<TARGET_OBJECTS:rankstr_o>) |
39 |
+-IF(RANKSTR_LINK_STATIC) |
40 |
+- SET_TARGET_PROPERTIES(rankstr-static PROPERTIES LINK_SEARCH_START_STATIC 1) |
41 |
+- SET_TARGET_PROPERTIES(rankstr-static PROPERTIES LINK_SEARCH_END_STATIC 1) |
42 |
+-ENDIF(RANKSTR_LINK_STATIC) |
43 |
+-TARGET_LINK_LIBRARIES(rankstr-static ${RANKSTR_EXTERNAL_LIBS}) |
44 |
+- |
45 |
+-SET_TARGET_PROPERTIES(rankstr-static PROPERTIES OUTPUT_NAME rankstr CLEAN_DIRECT_OUTPUT 1) |
46 |
+-INSTALL(TARGETS rankstr-static DESTINATION ${CMAKE_INSTALL_LIBDIR}) |
47 |
|
48 |
diff --git a/sys-cluster/rankstr/rankstr-0.0.2.ebuild b/sys-cluster/rankstr/rankstr-0.0.3.ebuild |
49 |
similarity index 55% |
50 |
rename from sys-cluster/rankstr/rankstr-0.0.2.ebuild |
51 |
rename to sys-cluster/rankstr/rankstr-0.0.3.ebuild |
52 |
index 1f5b14392..ebe6ba8b9 100644 |
53 |
--- a/sys-cluster/rankstr/rankstr-0.0.2.ebuild |
54 |
+++ b/sys-cluster/rankstr/rankstr-0.0.3.ebuild |
55 |
@@ -1,4 +1,4 @@ |
56 |
-# Copyright 1999-2020 Gentoo Authors |
57 |
+# Copyright 1999-2021 Gentoo Authors |
58 |
# Distributed under the terms of the GNU General Public License v2 |
59 |
|
60 |
EAPI="7" |
61 |
@@ -12,18 +12,19 @@ SRC_URI="https://github.com/ECP-VeloC/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz |
62 |
LICENSE="MIT" |
63 |
SLOT="0" |
64 |
KEYWORDS="~amd64" |
65 |
+IUSE="test" |
66 |
|
67 |
-RDEPEND=" |
68 |
- virtual/mpi |
69 |
-" |
70 |
+RDEPEND="virtual/mpi" |
71 |
DEPEND="${RDEPEND}" |
72 |
-BDEPEND=" |
73 |
- >=dev-util/cmake-2.8 |
74 |
-" |
75 |
|
76 |
-src_prepare() { |
77 |
- #do not build static library |
78 |
- sed -i '/rankstr-static/d' src/CMakeLists.txt || die |
79 |
- default |
80 |
- cmake_src_prepare |
81 |
+PATCHES=( "${FILESDIR}/${PN}-no-static.patch" ) |
82 |
+RESTRICT="!test? ( test )" |
83 |
+ |
84 |
+src_configure() { |
85 |
+ local mycmakeargs=( |
86 |
+ -DBUILD_SHARED_LIBS=ON |
87 |
+ -DENABLE_TESTS=$(usex test) |
88 |
+ -DRANKSTR_LINK_STATIC=OFF |
89 |
+ ) |
90 |
+ cmake_src_configure |
91 |
} |