commit:     5ced10b3df6a847902e9bb6d532ecf46ba815a3d
Author:     Craig Andrews <candrews <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 19 20:40:30 2023 +0000
Commit:     Craig Andrews <candrews <AT> gentoo <DOT> org>
CommitDate: Sun Feb 19 20:43:53 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ced10b3

net-libs/nghttp3: add USE=static-libs

Closes: https://bugs.gentoo.org/895354
Signed-off-by: Craig Andrews <candrews <AT> gentoo.org>

 net-libs/nghttp3/{nghttp3-9999.ebuild => nghttp3-0.8.0-r1.ebuild} | 3 ++-
 net-libs/nghttp3/nghttp3-9999.ebuild                              | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/net-libs/nghttp3/nghttp3-9999.ebuild 
b/net-libs/nghttp3/nghttp3-0.8.0-r1.ebuild
similarity index 92%
copy from net-libs/nghttp3/nghttp3-9999.ebuild
copy to net-libs/nghttp3/nghttp3-0.8.0-r1.ebuild
index 3685e3ee33ca..719966f4eab6 100644
--- a/net-libs/nghttp3/nghttp3-9999.ebuild
+++ b/net-libs/nghttp3/nghttp3-0.8.0-r1.ebuild
@@ -18,7 +18,7 @@ HOMEPAGE="https://github.com/ngtcp2/nghttp3/";
 
 LICENSE="MIT"
 SLOT="0/0"
-IUSE="test"
+IUSE="static-libs test"
 
 BDEPEND="virtual/pkgconfig"
 DEPEND="test? ( >=dev-util/cunit-2.1[${MULTILIB_USEDEP}] )"
@@ -28,6 +28,7 @@ RESTRICT="!test? ( test )"
 multilib_src_configure() {
        local mycmakeargs=(
                -DENABLE_LIB_ONLY=ON
+               -DENABLE_STATIC_LIB=$(usex static-libs)
                -DENABLE_EXAMPLES=OFF
                -DCMAKE_DISABLE_FIND_PACKAGE_CUnit=$(usex !test)
        )

diff --git a/net-libs/nghttp3/nghttp3-9999.ebuild 
b/net-libs/nghttp3/nghttp3-9999.ebuild
index 3685e3ee33ca..719966f4eab6 100644
--- a/net-libs/nghttp3/nghttp3-9999.ebuild
+++ b/net-libs/nghttp3/nghttp3-9999.ebuild
@@ -18,7 +18,7 @@ HOMEPAGE="https://github.com/ngtcp2/nghttp3/";
 
 LICENSE="MIT"
 SLOT="0/0"
-IUSE="test"
+IUSE="static-libs test"
 
 BDEPEND="virtual/pkgconfig"
 DEPEND="test? ( >=dev-util/cunit-2.1[${MULTILIB_USEDEP}] )"
@@ -28,6 +28,7 @@ RESTRICT="!test? ( test )"
 multilib_src_configure() {
        local mycmakeargs=(
                -DENABLE_LIB_ONLY=ON
+               -DENABLE_STATIC_LIB=$(usex static-libs)
                -DENABLE_EXAMPLES=OFF
                -DCMAKE_DISABLE_FIND_PACKAGE_CUnit=$(usex !test)
        )

Reply via email to