1 |
commit: bfd60cbaa687a60219e7d6cf0bd4cbfac12c54ab |
2 |
Author: Adam Pimentel <adam.pimentel <AT> protonmail <DOT> com> |
3 |
AuthorDate: Wed Mar 15 01:52:49 2023 +0000 |
4 |
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Mar 15 01:52:49 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=bfd60cba |
7 |
|
8 |
dev-libs/polyseed: conditionally build static-libs and test targets based on USE flags |
9 |
|
10 |
Closes: https://bugs.gentoo.org/901189 |
11 |
Signed-off-by: Adam Pimentel <adam.pimentel <AT> protonmail.com> |
12 |
|
13 |
dev-libs/polyseed/polyseed-1.0.0.ebuild | 6 +++++- |
14 |
dev-libs/polyseed/polyseed-2.0.0.ebuild | 6 +++++- |
15 |
net-p2p/feather/feather-2.4.2.ebuild | 2 +- |
16 |
3 files changed, 11 insertions(+), 3 deletions(-) |
17 |
|
18 |
diff --git a/dev-libs/polyseed/polyseed-1.0.0.ebuild b/dev-libs/polyseed/polyseed-1.0.0.ebuild |
19 |
index 34fd63397..34315cc38 100644 |
20 |
--- a/dev-libs/polyseed/polyseed-1.0.0.ebuild |
21 |
+++ b/dev-libs/polyseed/polyseed-1.0.0.ebuild |
22 |
@@ -12,5 +12,9 @@ SRC_URI="https://github.com/tevador/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P |
23 |
LICENSE="LGPL-3" |
24 |
SLOT="0" |
25 |
KEYWORDS="~amd64" |
26 |
-IUSE="" #todo: make test executible an optiona; USE flag |
27 |
+IUSE="static-libs test" |
28 |
BDEPEND="virtual/pkgconfig" |
29 |
+ |
30 |
+src_compile() { |
31 |
+ cmake_build polyseed $(usex "static-libs" "polyseed_static" "") $(usex "test" "polyseed-tests" "") |
32 |
+} |
33 |
|
34 |
diff --git a/dev-libs/polyseed/polyseed-2.0.0.ebuild b/dev-libs/polyseed/polyseed-2.0.0.ebuild |
35 |
index 34fd63397..34315cc38 100644 |
36 |
--- a/dev-libs/polyseed/polyseed-2.0.0.ebuild |
37 |
+++ b/dev-libs/polyseed/polyseed-2.0.0.ebuild |
38 |
@@ -12,5 +12,9 @@ SRC_URI="https://github.com/tevador/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P |
39 |
LICENSE="LGPL-3" |
40 |
SLOT="0" |
41 |
KEYWORDS="~amd64" |
42 |
-IUSE="" #todo: make test executible an optiona; USE flag |
43 |
+IUSE="static-libs test" |
44 |
BDEPEND="virtual/pkgconfig" |
45 |
+ |
46 |
+src_compile() { |
47 |
+ cmake_build polyseed $(usex "static-libs" "polyseed_static" "") $(usex "test" "polyseed-tests" "") |
48 |
+} |
49 |
|
50 |
diff --git a/net-p2p/feather/feather-2.4.2.ebuild b/net-p2p/feather/feather-2.4.2.ebuild |
51 |
index f2fb17331..54dbc41f4 100644 |
52 |
--- a/net-p2p/feather/feather-2.4.2.ebuild |
53 |
+++ b/net-p2p/feather/feather-2.4.2.ebuild |
54 |
@@ -44,7 +44,7 @@ DEPEND=" |
55 |
dev-libs/libsodium:= |
56 |
media-gfx/qrencode:= |
57 |
media-gfx/zbar:=[v4l] |
58 |
- >=dev-libs/polyseed-1.0.0 |
59 |
+ =dev-libs/polyseed-1.0.0 |
60 |
dev-libs/libzip:= |
61 |
dev-libs/boost:=[nls] |
62 |
>=dev-qt/qtcore-5.15:5 |