commit: 2e5126c80778fd8fd03f4a444a8b681e8ab6f2f7 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> AuthorDate: Sun Mar 17 19:29:18 2019 +0000 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> CommitDate: Sun Mar 17 19:29:36 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2e5126c8
dev-libs/libzip: Actually fix cmake options Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> dev-libs/libzip/libzip-1.5.2.ebuild | 24 +++++++++++++++++++----- 1 file 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 261eb19e86e..d34cd65a835 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