summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2021-03-12 14:19:51 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2021-03-12 16:13:26 +0100
commit923c0abe8ef9951a2a89e487ffb897dd712ae66a (patch)
tree3c0750ac9a62fee3ad48869907a53d0a83d9e8de /eclass/mozcoreconf-v6.eclass
parentmozlinguas-v2.eclass: Drop pre-EAPI-6 support, support EAPI-7 (diff)
downloadgentoo-923c0abe8ef9951a2a89e487ffb897dd712ae66a.tar.gz
gentoo-923c0abe8ef9951a2a89e487ffb897dd712ae66a.tar.bz2
gentoo-923c0abe8ef9951a2a89e487ffb897dd712ae66a.zip
mozcoreconf-v6.eclass: Support EAPI-7, define @SUPPORTED_EAPIS
Bug: https://bugs.gentoo.org/770280 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'eclass/mozcoreconf-v6.eclass')
-rw-r--r--eclass/mozcoreconf-v6.eclass23
1 files changed, 18 insertions, 5 deletions
diff --git a/eclass/mozcoreconf-v6.eclass b/eclass/mozcoreconf-v6.eclass
index 0dd165db08e3..95fce0f0258d 100644
--- a/eclass/mozcoreconf-v6.eclass
+++ b/eclass/mozcoreconf-v6.eclass
@@ -1,9 +1,10 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
#
# @ECLASS: mozcoreconf-v6.eclass
# @MAINTAINER:
# Mozilla team <mozilla@gentoo.org>
+# @SUPPORTED_EAPIS: 6 7
# @BLURB: core options and configuration functions for mozilla
# @DESCRIPTION:
#
@@ -16,14 +17,26 @@
if [[ ! ${_MOZCORECONF} ]]; then
-inherit multilib toolchain-funcs flag-o-matic python-any-r1 versionator
+inherit toolchain-funcs flag-o-matic python-any-r1
-IUSE="${IUSE} custom-cflags custom-optimization"
-
-DEPEND="virtual/pkgconfig
+BDEPEND="virtual/pkgconfig
dev-lang/python:2.7[ncurses,sqlite,ssl,threads(+)]
${PYTHON_DEPS}"
+case "${EAPI:-0}" in
+ 6)
+ inherit multilib versionator
+ DEPEND+=" ${BDEPEND}"
+ ;;
+ 7)
+ ;;
+ *)
+ die "EAPI ${EAPI} is not supported, contact eclass maintainers"
+ ;;
+esac
+
+IUSE="${IUSE} custom-cflags custom-optimization"
+
# @FUNCTION: mozconfig_annotate
# @DESCRIPTION:
# add an annotated line to .mozconfig