summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2019-02-03 18:52:00 -0600
committerWilliam Hubbs <williamh@gentoo.org>2019-02-07 12:46:12 -0600
commit275c322a3304e6d25b1dc1a365135264785eb02c (patch)
treea519f758b9ea1ecefea1678f1cd2a5c2fd56157f /eclass/meson.eclass
parentx11-libs/motif: Update HOMEPAGE. (diff)
downloadgentoo-275c322a3304e6d25b1dc1a365135264785eb02c.tar.gz
gentoo-275c322a3304e6d25b1dc1a365135264785eb02c.tar.bz2
gentoo-275c322a3304e6d25b1dc1a365135264785eb02c.zip
meson.eclass: remove meson_auto_depend
Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'eclass/meson.eclass')
-rw-r--r--eclass/meson.eclass27
1 files changed, 4 insertions, 23 deletions
diff --git a/eclass/meson.eclass b/eclass/meson.eclass
index 0a80c6b698b9..1b080396626c 100644
--- a/eclass/meson.eclass
+++ b/eclass/meson.eclass
@@ -39,16 +39,6 @@ case ${EAPI:-0} in
*) die "EAPI=${EAPI} is not supported" ;;
esac
-if [[ ${__MESON_AUTO_DEPEND+set} == "set" ]] ; then
- # See if we were included already, but someone changed the value
- # of MESON_AUTO_DEPEND on us. We could reload the entire
- # eclass at that point, but that adds overhead, and it's trivial
- # to re-order inherit in eclasses/ebuilds instead. #409611
- if [[ ${__MESON_AUTO_DEPEND} != ${MESON_AUTO_DEPEND} ]] ; then
- die "MESON_AUTO_DEPEND changed value between inherits; please inherit meson.eclass first! ${__MESON_AUTO_DEPEND} -> ${MESON_AUTO_DEPEND}"
- fi
-fi
-
if [[ -z ${_MESON_ECLASS} ]]; then
inherit ninja-utils python-utils-r1 toolchain-funcs
@@ -63,20 +53,11 @@ _MESON_ECLASS=1
MESON_DEPEND=">=dev-util/meson-0.45.1
>=dev-util/ninja-1.7.2"
-# @ECLASS-VARIABLE: MESON_AUTO_DEPEND
-# @DESCRIPTION:
-# Set to 'no' to disable automatically adding to DEPEND. This lets
-# ebuilds form conditional depends by using ${MESON_DEPEND} in
-# their own DEPEND string.
-: ${MESON_AUTO_DEPEND:=yes}
-if [[ ${MESON_AUTO_DEPEND} != "no" ]] ; then
- if [[ ${EAPI:-0} == [0123456] ]]; then
- DEPEND=${MESON_DEPEND}
- else
- BDEPEND=${MESON_DEPEND}
- fi
+if [[ ${EAPI:-0} == [0123456] ]]; then
+ DEPEND=${MESON_DEPEND}
+else
+ BDEPEND=${MESON_DEPEND}
fi
-__MESON_AUTO_DEPEND=${MESON_AUTO_DEPEND} # See top of eclass
# @ECLASS-VARIABLE: BUILD_DIR
# @DEFAULT_UNSET