commit:     0529eced14ec1c498f6c87b0d6feed7bedad2040
Author:     Matoro Mahri <matoro_gentoo <AT> matoro <DOT> tk>
AuthorDate: Thu May 23 21:40:44 2024 +0000
Commit:     Craig Andrews <candrews <AT> gentoo <DOT> org>
CommitDate: Thu May 23 21:55:45 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0529eced

net-libs/ngtcp2: fix tests for >=1.5.0

In 1.5.0 moved to gating tests behind -DBUILD_TESTING

See https://github.com/ngtcp2/ngtcp2/pull/1189

Corresponding Gentoo commit for nghttp2 is 
https://github.com/gentoo/gentoo/commit/2d6a77b5adaa5160199e3b4de2cf754aa8717c9e

Bug: https://bugs.gentoo.org/931998
Signed-off-by: Matoro Mahri <matoro_gentoo <AT> matoro.tk>
Closes: https://github.com/gentoo/gentoo/pull/36799
Signed-off-by: Craig Andrews <candrews <AT> gentoo.org>

 net-libs/ngtcp2/ngtcp2-1.5.0.ebuild | 3 ++-
 net-libs/ngtcp2/ngtcp2-9999.ebuild  | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/net-libs/ngtcp2/ngtcp2-1.5.0.ebuild 
b/net-libs/ngtcp2/ngtcp2-1.5.0.ebuild
index d36fb26328c9..2d57c3b7c864 100644
--- a/net-libs/ngtcp2/ngtcp2-1.5.0.ebuild
+++ b/net-libs/ngtcp2/ngtcp2-1.5.0.ebuild
@@ -19,7 +19,7 @@ HOMEPAGE="https://github.com/ngtcp2/ngtcp2/";
 LICENSE="MIT"
 SLOT="0/0"
 IUSE="+gnutls openssl +ssl static-libs test"
-REQUIRED_USE="ssl? ( || ( gnutls openssl ) )"
+REQUIRED_USE="ssl? ( || ( gnutls openssl ) ) test? ( static-libs )"
 
 BDEPEND="virtual/pkgconfig"
 RDEPEND="
@@ -43,6 +43,7 @@ multilib_src_configure() {
                -DENABLE_WOLFSSL=OFF
                -DCMAKE_DISABLE_FIND_PACKAGE_Libev=ON
                -DCMAKE_DISABLE_FIND_PACKAGE_Libnghttp3=ON
+               -DBUILD_TESTING=$(usex test)
        )
        cmake_src_configure
 }

diff --git a/net-libs/ngtcp2/ngtcp2-9999.ebuild 
b/net-libs/ngtcp2/ngtcp2-9999.ebuild
index 1f15a2e28c49..c72e046deae8 100644
--- a/net-libs/ngtcp2/ngtcp2-9999.ebuild
+++ b/net-libs/ngtcp2/ngtcp2-9999.ebuild
@@ -19,7 +19,7 @@ HOMEPAGE="https://github.com/ngtcp2/ngtcp2/";
 LICENSE="MIT"
 SLOT="0/0"
 IUSE="+gnutls openssl +ssl static-libs test"
-REQUIRED_USE="ssl? ( || ( gnutls openssl ) )"
+REQUIRED_USE="ssl? ( || ( gnutls openssl ) ) test? ( static-libs )"
 
 BDEPEND="virtual/pkgconfig"
 RDEPEND="
@@ -43,6 +43,7 @@ multilib_src_configure() {
                -DENABLE_WOLFSSL=OFF
                -DCMAKE_DISABLE_FIND_PACKAGE_Libev=ON
                -DCMAKE_DISABLE_FIND_PACKAGE_Libnghttp3=ON
+               -DBUILD_TESTING=$(usex test)
        )
        cmake_src_configure
 }

Reply via email to