commit:     14da9d0b7e9dc297ced68c43f3e8d460a05a7a71
Author:     Vincent Ahluwalia <vincentahluwalia <AT> protonmail <DOT> com>
AuthorDate: Sat Mar  8 21:47:34 2025 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Sat Mar  8 21:49:19 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=14da9d0b

dev-libs/nanopb: Fix .a files being installed without USE=static-libs

Signed-off-by: Vincent Ahluwalia <vincentahluwalia <AT> protonmail.com>

Closes: https://bugs.gentoo.org/950636

 dev-libs/nanopb/nanopb-0.4.9.1.ebuild | 6 +++++-
 dev-libs/nanopb/nanopb-9999.ebuild    | 6 +++++-
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/dev-libs/nanopb/nanopb-0.4.9.1.ebuild 
b/dev-libs/nanopb/nanopb-0.4.9.1.ebuild
index c1122da2e..b6b86cc20 100644
--- a/dev-libs/nanopb/nanopb-0.4.9.1.ebuild
+++ b/dev-libs/nanopb/nanopb-0.4.9.1.ebuild
@@ -19,7 +19,7 @@ fi
 
 LICENSE="ZLIB"
 SLOT="0"
-IUSE="+pb-malloc test"
+IUSE="+pb-malloc static-libs test"
 RESTRICT="!test? ( test )"
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 
@@ -38,6 +38,10 @@ src_configure() {
        if is-flagq "-flto" ; then
                append-cflags "-fno-use-linker-plugin -fwhole-program"
        fi
+       local mycmakeargs=(
+               -DBUILD_SHARED_LIBS=$(usex !static-libs)
+               -DBUILD_STATIC_LIBS=$(usex static-libs)
+       )
        cmake_src_configure
 }
 

diff --git a/dev-libs/nanopb/nanopb-9999.ebuild 
b/dev-libs/nanopb/nanopb-9999.ebuild
index c1122da2e..2b92abfa4 100644
--- a/dev-libs/nanopb/nanopb-9999.ebuild
+++ b/dev-libs/nanopb/nanopb-9999.ebuild
@@ -19,7 +19,7 @@ fi
 
 LICENSE="ZLIB"
 SLOT="0"
-IUSE="+pb-malloc test"
+IUSE="+pb-malloc static-libs test"
 RESTRICT="!test? ( test )"
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 
@@ -38,6 +38,10 @@ src_configure() {
        if is-flagq "-flto" ; then
                append-cflags "-fno-use-linker-plugin -fwhole-program"
        fi
+       local mycmakeargs=(
+               DBUILD_SHARED_LIBS=$(usex !static-libs)
+               DBUILD_STATIC_LIBS=$(usex static-libs)
+       )
        cmake_src_configure
 }
 

Reply via email to