From 923c0abe8ef9951a2a89e487ffb897dd712ae66a Mon Sep 17 00:00:00 2001 From: Andreas Sturmlechner Date: Fri, 12 Mar 2021 14:19:51 +0100 Subject: mozcoreconf-v6.eclass: Support EAPI-7, define @SUPPORTED_EAPIS Bug: https://bugs.gentoo.org/770280 Signed-off-by: Andreas Sturmlechner --- eclass/mozcoreconf-v6.eclass | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) (limited to 'eclass/mozcoreconf-v6.eclass') 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 +# @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 -- cgit v1.2.3-65-gdbad