commit:     a8a732b0d50fc74bdca9dc75e804e43369cb9e34
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Nov  1 08:22:57 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Nov  1 08:22:57 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a8a732b0

net-libs/libtorrent-rasterbar: conditionally apply test patch

Closes: https://bugs.gentoo.org/821172
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-libs/libtorrent-rasterbar/libtorrent-rasterbar-2.0.4-r4.ebuild | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

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
index 69145fe1177..4d585c2e540 100644
--- a/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-2.0.4-r4.ebuild
+++ b/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-2.0.4-r4.ebuild
@@ -45,13 +45,18 @@ PATCHES=(
        "${FILESDIR}"/${P}-boost-1.77.patch
        "${FILESDIR}"/${P}-python-symbols.patch
        "${FILESDIR}"/${PN}-2.0.4-asio-ssl-error.patch
-       "${WORKDIR}"/${P}-ssl-tests-certs.patch
 )
 
 pkg_setup() {
        use python && python-single-r1_pkg_setup
 }
 
+src_prepare() {
+       use test && eapply "${WORKDIR}"/${P}-ssl-tests-certs.patch
+
+       cmake_src_prepare
+}
+
 src_configure() {
        local mycmakeargs=(
                -DCMAKE_CXX_STANDARD=14

Reply via email to