@@ -, +, @@ dev-util/desktop-file-utils and x11-misc/shared-mime-info to BDEPEND. --- eclass/xdg.eclass | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) --- a/eclass/xdg.eclass +++ a/eclass/xdg.eclass @@ -1,4 +1,4 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 2015-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: xdg.eclass @@ -23,10 +23,14 @@ esac # Avoid dependency loop as both depend on glib-2 if [[ ${CATEGORY}/${P} != dev-libs/glib-2.* ]] ; then -DEPEND=" +BDEPEND=" dev-util/desktop-file-utils x11-misc/shared-mime-info " + if [[ ${EAPI:-0} == [456] ]]; then + DEPEND="${BDEPEND}" + unset BDEPEND + fi fi # @FUNCTION: xdg_src_prepare --