mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-10-12 17:51:11 -04:00
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:
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}"
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user