commit: d8e2ee736cad825f7214516ded3bfe03845bee95
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 4 09:03:37 2021 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sat Apr 10 07:02:12 2021 +0000
URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=d8e2ee73
general-concepts/use-flags: Update example to current best practice
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
general-concepts/use-flags/text.xml | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/general-concepts/use-flags/text.xml
b/general-concepts/use-flags/text.xml
index d5aae0c..19f411d 100644
--- a/general-concepts/use-flags/text.xml
+++ b/general-concepts/use-flags/text.xml
@@ -300,10 +300,8 @@ GnuTLS is more featureful than OpenSSL, it is favoured:
src_configure() {
local myconf
- if use ssl && use gnutls ; then
- myconf+=" --enable-ssl --with-ssl=gnutls"
- elif use ssl && ! use gnutls ; then
- myconf+=" --enable-ssl --with-ssl=openssl"
+ if use ssl; then
+ myconf+=" --enable-ssl --with-ssl=$(usex gnutls gnutls openssl)"
else
myconf+=" --disable-ssl"
fi