diff options
author | Marty E. Plummer <hanetzer@startmail.com> | 2018-07-10 19:40:44 -0500 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2018-09-23 10:47:05 -0400 |
commit | f3310726c78a5ef32ebc1829980e716fa429c32b (patch) | |
tree | caadc67fa27e250d29bbf1a1688a2f434b3cbbdd /eclass/meson.eclass | |
parent | sys-power/upower: Version bump (diff) | |
download | gentoo-f3310726c78a5ef32ebc1829980e716fa429c32b.tar.gz gentoo-f3310726c78a5ef32ebc1829980e716fa429c32b.tar.bz2 gentoo-f3310726c78a5ef32ebc1829980e716fa429c32b.zip |
meson.eclass: add EAPI 7 support
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'eclass/meson.eclass')
-rw-r--r-- | eclass/meson.eclass | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/eclass/meson.eclass b/eclass/meson.eclass index ebc2c02ca8ec..3d8865363307 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 <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 |