Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/libtorrent-rasterbar/
Date: Mon, 01 Nov 2021 08:26:19
Message-Id: 1635754977.a8a732b0d50fc74bdca9dc75e804e43369cb9e34.sam@gentoo
1 commit: a8a732b0d50fc74bdca9dc75e804e43369cb9e34
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 1 08:22:57 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 1 08:22:57 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a8a732b0
7
8 net-libs/libtorrent-rasterbar: conditionally apply test patch
9
10 Closes: https://bugs.gentoo.org/821172
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 net-libs/libtorrent-rasterbar/libtorrent-rasterbar-2.0.4-r4.ebuild | 7 ++++++-
14 1 file changed, 6 insertions(+), 1 deletion(-)
15
16 diff --git a/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-2.0.4-r4.ebuild b/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-2.0.4-r4.ebuild
17 index 69145fe1177..4d585c2e540 100644
18 --- a/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-2.0.4-r4.ebuild
19 +++ b/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-2.0.4-r4.ebuild
20 @@ -45,13 +45,18 @@ PATCHES=(
21 "${FILESDIR}"/${P}-boost-1.77.patch
22 "${FILESDIR}"/${P}-python-symbols.patch
23 "${FILESDIR}"/${PN}-2.0.4-asio-ssl-error.patch
24 - "${WORKDIR}"/${P}-ssl-tests-certs.patch
25 )
26
27 pkg_setup() {
28 use python && python-single-r1_pkg_setup
29 }
30
31 +src_prepare() {
32 + use test && eapply "${WORKDIR}"/${P}-ssl-tests-certs.patch
33 +
34 + cmake_src_prepare
35 +}
36 +
37 src_configure() {
38 local mycmakeargs=(
39 -DCMAKE_CXX_STANDARD=14