summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason A. Donenfeld <zx2c4@gentoo.org>2016-03-02 14:00:48 +0100
committerJason A. Donenfeld <zx2c4@gentoo.org>2016-03-02 14:01:36 +0100
commitbac4d6e0819038d116bd8c69d4f6d8092e687363 (patch)
treef59ff98830ac2d641bdf0567479f6c439dcced7a /eclass/ssl-cert.eclass
parentdev-util/shellcheck: version bump (diff)
downloadgentoo-bac4d6e0819038d116bd8c69d4f6d8092e687363.tar.gz
gentoo-bac4d6e0819038d116bd8c69d4f6d8092e687363.tar.bz2
gentoo-bac4d6e0819038d116bd8c69d4f6d8092e687363.zip
Add libressl support to many packages
Package maintainers will likely want to cleanup various things for this experimental USE flag.
Diffstat (limited to 'eclass/ssl-cert.eclass')
-rw-r--r--eclass/ssl-cert.eclass17
1 files changed, 12 insertions, 5 deletions
diff --git a/eclass/ssl-cert.eclass b/eclass/ssl-cert.eclass
index 33bee2f8ded8..053e10133633 100644
--- a/eclass/ssl-cert.eclass
+++ b/eclass/ssl-cert.eclass
@@ -23,11 +23,18 @@
# Use flag to append dependency to.
: ${SSL_CERT_USE:=ssl}
-if [[ "${SSL_CERT_MANDATORY}" == "0" ]]; then
- DEPEND="${SSL_CERT_USE}? ( dev-libs/openssl )"
- IUSE="${SSL_CERT_USE}"
-else
- DEPEND="dev-libs/openssl"
+# @ECLASS-VARIABLE: SSL_DEPS_SKIP
+# @DESCRIPTION:
+# Set to non zero to skip adding to DEPEND and IUSE.
+: ${SSL_DEPS_SKIP:=0}
+
+if [[ "${SSL_DEPS_SKIP}" == "0" ]]; then
+ if [[ "${SSL_CERT_MANDATORY}" == "0" ]]; then
+ DEPEND="${SSL_CERT_USE}? ( dev-libs/openssl )"
+ IUSE="${SSL_CERT_USE}"
+ else
+ DEPEND="dev-libs/openssl"
+ fi
fi
# @FUNCTION: gen_cnf