commit:     f3310726c78a5ef32ebc1829980e716fa429c32b
Author:     Marty E. Plummer <hanetzer <AT> startmail <DOT> com>
AuthorDate: Wed Jul 11 00:40:44 2018 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Sun Sep 23 14:47:05 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f3310726

meson.eclass: add EAPI 7 support

Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 eclass/meson.eclass | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/eclass/meson.eclass b/eclass/meson.eclass
index ebc2c02ca8e..3d886536330 100644
--- a/eclass/meson.eclass
+++ b/eclass/meson.eclass
@@ -1,11 +1,11 @@
-# Copyright 2017 Gentoo Foundation
+# Copyright 2017-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # @ECLASS: meson.eclass
 # @MAINTAINER:
 # William Hubbs <[email protected]>
 # Mike Gilbert <[email protected]>
-# @SUPPORTED_EAPIS: 6
+# @SUPPORTED_EAPIS: 6 7
 # @BLURB: common ebuild functions for meson-based packages
 # @DESCRIPTION:
 # This eclass contains the default phase functions for packages which
@@ -35,7 +35,7 @@
 # @CODE
 
 case ${EAPI:-0} in
-       6) ;;
+       6|7) ;;
        *) die "EAPI=${EAPI} is not supported" ;;
 esac
 
@@ -70,7 +70,11 @@ MESON_DEPEND=">=dev-util/meson-0.45.1
 # their own DEPEND string.
 : ${MESON_AUTO_DEPEND:=yes}
 if [[ ${MESON_AUTO_DEPEND} != "no" ]] ; then
-       DEPEND=${MESON_DEPEND}
+       if [[ ${EAPI:-0} == [0123456] ]]; then
+               DEPEND=${MESON_DEPEND}
+       else
+               BDEPEND=${MESON_DEPEND}
+       fi
 fi
 __MESON_AUTO_DEPEND=${MESON_AUTO_DEPEND} # See top of eclass
 

Reply via email to