summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2019-03-17 20:29:18 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2019-03-17 20:29:36 +0100
commit2e5126c80778fd8fd03f4a444a8b681e8ab6f2f7 (patch)
tree53ccb1ee3c6c0cb7e3d8c589d25af2651198a0b9 /dev-libs/libzip
parentsys-apps/yarn: bump to version 1.15.2 (diff)
downloadgentoo-2e5126c80778fd8fd03f4a444a8b681e8ab6f2f7.tar.gz
gentoo-2e5126c80778fd8fd03f4a444a8b681e8ab6f2f7.tar.bz2
gentoo-2e5126c80778fd8fd03f4a444a8b681e8ab6f2f7.zip
dev-libs/libzip: Actually fix cmake options
Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'dev-libs/libzip')
-rw-r--r--dev-libs/libzip/libzip-1.5.2.ebuild24
1 files changed, 19 insertions, 5 deletions
diff --git a/dev-libs/libzip/libzip-1.5.2.ebuild b/dev-libs/libzip/libzip-1.5.2.ebuild
index 261eb19e86eb..d34cd65a8358 100644
--- a/dev-libs/libzip/libzip-1.5.2.ebuild
+++ b/dev-libs/libzip/libzip-1.5.2.ebuild
@@ -58,11 +58,25 @@ src_configure() {
fi
if use ssl; then
- mycmakeargs+=(
- -DENABLE_GNUTLS=$(usex gnutls)
- -DENABLE_MBEDTLS=$(usex mbedtls)
- -DENABLE_OPENSSL=$(usex !gnutls)
- )
+ if use gnutls; then
+ mycmakeargs+=(
+ -DENABLE_GNUTLS=$(usex gnutls)
+ -DENABLE_MBEDTLS=OFF
+ -DENABLE_OPENSSL=OFF
+ )
+ elif use mbedtls; then
+ mycmakeargs+=(
+ -DENABLE_GNUTLS=OFF
+ -DENABLE_MBEDTLS=$(usex mbedtls)
+ -DENABLE_OPENSSL=OFF
+ )
+ else
+ mycmakeargs+=(
+ -DENABLE_GNUTLS=OFF
+ -DENABLE_MBEDTLS=OFF
+ -DENABLE_OPENSSL=ON
+ )
+ fi
else
mycmakeargs+=(
-DENABLE_GNUTLS=OFF