1 |
commit: 7b5b7a5652d0d637c1538474374a24c2480fe347 |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Oct 26 15:58:12 2021 +0000 |
4 |
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 26 16:35:07 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=7b5b7a56 |
7 |
|
8 |
dev-cpp/fizz: fix build error with latest gtest |
9 |
|
10 |
Closes: https://bugs.gentoo.org/820290 |
11 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
12 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
13 |
|
14 |
dev-cpp/fizz/fizz-2021.10.25.00.ebuild | 11 +++++++---- |
15 |
1 file changed, 7 insertions(+), 4 deletions(-) |
16 |
|
17 |
diff --git a/dev-cpp/fizz/fizz-2021.10.25.00.ebuild b/dev-cpp/fizz/fizz-2021.10.25.00.ebuild |
18 |
index a1908fcff..12e7ec567 100644 |
19 |
--- a/dev-cpp/fizz/fizz-2021.10.25.00.ebuild |
20 |
+++ b/dev-cpp/fizz/fizz-2021.10.25.00.ebuild |
21 |
@@ -7,14 +7,12 @@ inherit cmake |
22 |
|
23 |
DESCRIPTION="C++14 implementation of the TLS-1.3 standard" |
24 |
HOMEPAGE="https://github.com/facebookincubator/fizz" |
25 |
- |
26 |
SRC_URI="https://github.com/facebookincubator/fizz/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
27 |
|
28 |
LICENSE="BSD" |
29 |
SLOT="0" |
30 |
KEYWORDS="~amd64" |
31 |
- |
32 |
-CMAKE_USE_DIR="${S}/fizz" |
33 |
+IUSE="examples test" |
34 |
|
35 |
RDEPEND=" |
36 |
~dev-cpp/folly-${PV}:= |
37 |
@@ -29,9 +27,12 @@ RDEPEND=" |
38 |
#TODO: discover if gtest is linked |
39 |
DEPEND=" |
40 |
${RDEPEND} |
41 |
- dev-cpp/gtest |
42 |
+ test? ( <dev-cpp/gtest-1.11.0 ) |
43 |
" |
44 |
|
45 |
+RESTRICT="!test? ( test )" |
46 |
+CMAKE_USE_DIR="${S}/fizz" |
47 |
+ |
48 |
src_prepare() { |
49 |
cmake_src_prepare |
50 |
sed -i '/Sodium/d' fizz/cmake/fizz-config.cmake.in || die |
51 |
@@ -39,6 +40,8 @@ src_prepare() { |
52 |
|
53 |
src_configure() { |
54 |
local mycmakeargs=( |
55 |
+ -DBUILD_EXAMPLES=$(usex examples) |
56 |
+ -DBUILD_TESTS=$(usex test) |
57 |
-DLIB_INSTALL_DIR=$(get_libdir) |
58 |
) |