Following up on the previous change to ssl-cert.eclass, I figure I'd better guard against EAPI=0 since it uses slots. For your review:
diff --git a/eclass/ssl-cert.eclass b/eclass/ssl-cert.eclass index 4f573ba..e34b07a 100644 --- a/eclass/ssl-cert.eclass +++ b/eclass/ssl-cert.eclass @@ -13,6 +13,18 @@ # @EXAMPLE: # "install_cert /foo/bar" installs ${ROOT}/foo/bar.{key,csr,crt,pem} +# Guard against unsupported EAPIs. We need EAPI >= 1 for slot dependencies. +case "${EAPI:-0}" in + 0) + die "${ECLASS}.eclass: EAPI=0 is not supported. Please upgrade to EAPI >= 1." + ;; + 1|2|3|4|5|6) + ;; + *) + die "${ECLASS}.eclass: EAPI=${EAPI} is not supported yet." + ;; +esac + # @ECLASS-VARIABLE: SSL_CERT_MANDATORY # @DESCRIPTION: # Set to non zero if ssl-cert is mandatory for ebuild. -- Anthony G. Basile, Ph.D. Gentoo Linux Developer [Hardened] E-Mail : bluen...@gentoo.org GnuPG FP : 1FED FAD9 D82C 52A5 3BAB DC79 9384 FA6E F52D 4BBA GnuPG ID : F52D4BBA