meson.eclass: add EAPI 7 support
authorMarty E. Plummer <hanetzer@startmail.com>
Wed, 11 Jul 2018 00:40:44 +0000 (19:40 -0500)
committerMike Gilbert <floppym@gentoo.org>
Sun, 23 Sep 2018 14:47:05 +0000 (10:47 -0400)
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
eclass/meson.eclass

index ebc2c02ca8ec82e1770131e105697646fb451257..3d886536330739264affd0182e92f45f020c9175 100644 (file)
@@ -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 <williamh@gentoo.org>
 # Mike Gilbert <floppym@gentoo.org>
-# @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