summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMichael Palimaka <kensington@gentoo.org>2019-08-18 18:43:40 +1000
committerMichael Palimaka <kensington@gentoo.org>2019-08-18 18:48:52 +1000
commit3120a986989f93ba6a8e5f81efdaeec50c56f16e (patch)
tree9cd2e26dbc5752857589bbaa875442ffca925378 /eclass
parentsys-devel/patch: stable 2.7.6-r4 for sparc, bug #690136 (diff)
downloadgentoo-3120a986989f93ba6a8e5f81efdaeec50c56f16e.tar.gz
gentoo-3120a986989f93ba6a8e5f81efdaeec50c56f16e.tar.bz2
gentoo-3120a986989f93ba6a8e5f81efdaeec50c56f16e.zip
ssl-cert.eclass: improve EAPI 7 support
Signed-off-by: Michael Palimaka <kensington@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/ssl-cert.eclass17
1 files changed, 14 insertions, 3 deletions
diff --git a/eclass/ssl-cert.eclass b/eclass/ssl-cert.eclass
index 01783b75848d..0e7294f62299 100644
--- a/eclass/ssl-cert.eclass
+++ b/eclass/ssl-cert.eclass
@@ -5,7 +5,7 @@
# @MAINTAINER:
# @AUTHOR:
# Max Kalika <max@gentoo.org>
-# @SUPPORTED_EAPIS: 1 2 3 4 5 6
+# @SUPPORTED_EAPIS: 1 2 3 4 5 6 7
# @BLURB: Eclass for SSL certificates
# @DESCRIPTION:
# This eclass implements a standard installation procedure for installing
@@ -42,11 +42,22 @@ esac
if [[ "${SSL_DEPS_SKIP}" == "0" ]]; then
if [[ "${SSL_CERT_MANDATORY}" == "0" ]]; then
- DEPEND="${SSL_CERT_USE}? ( || ( dev-libs/openssl:0 dev-libs/libressl:0 ) )"
+ SSL_DEPEND="${SSL_CERT_USE}? ( || ( dev-libs/openssl:0 dev-libs/libressl:0 ) )"
IUSE="${SSL_CERT_USE}"
else
- DEPEND="|| ( dev-libs/openssl:0 dev-libs/libressl:0 )"
+ SSL_DEPEND="|| ( dev-libs/openssl:0 dev-libs/libressl:0 )"
fi
+
+ case "${EAPI}" in
+ 1|2|3|4|5|6)
+ DEPEND="${SSL_DEPEND}"
+ ;;
+ *)
+ BDEPEND="${SSL_DEPEND}"
+ ;;
+ esac
+
+ unset SSL_DEPEND
fi
# @FUNCTION: gen_cnf