net-misc/curl-impersonate: add the static-libs USE flag

Closes: https://bugs.gentoo.org/983105
Signed-off-by: Pavel Sobolev <contact@paveloom.dev>
This commit is contained in:
Pavel Sobolev committed 2026-09-23 23:32:10 +03:00
1 parent ed9b938098
commit 4d76683a7c
1 file changed
+6
@@ -35,6 +35,7 @@ SRC_URI="
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="static-libs"
src_prepare() {
cmake_src_prepare
@@ -60,6 +61,11 @@ src_prepare() {
sed -e 's/set(_toolchain_cmake_args/& "--no-warn-unused-cli"/' \
-i "CMakeLists.txt" || die
if ! use static-libs; then
sed -e '/libcurl-impersonate\*\.a/d' \
-i "CMakeLists.txt" || die
fi
emake prepare-libidn2 BUILD_DIR="${BUILD_DIR}"
}