From 60a4b74e3d586f78bfdad802aaf313541f26fb62 Mon Sep 17 00:00:00 2001 From: David Michael Date: Mon, 15 Mar 2021 14:11:26 -0400 Subject: [PATCH] font.eclass: use BDEPEND with EAPI 7 The mkfontscale program and encodings paths are used in the native root during src_install, so they need to be in BDEPEND. Also stop documenting DOCS as an eclass variable since it is a part of EAPI 6 and only used in eutils.eclass for EAPI 5 support. Closes: https://bugs.gentoo.org/776412 Signed-off-by: David Michael Signed-off-by: Andreas Sturmlechner --- eclass/font.eclass | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/eclass/font.eclass b/eclass/font.eclass index 44e69cc33f0f3..45c6204199504 100644 --- a/eclass/font.eclass +++ b/eclass/font.eclass @@ -46,21 +46,12 @@ FONTDIR=${FONTDIR:-/usr/share/fonts/${FONT_PN}} # Array containing fontconfig conf files to install. FONT_CONF=( "" ) -# @ECLASS-VARIABLE: DOCS -# @DEFAULT_UNSET -# @DESCRIPTION: -# Space delimited list of docs to install. -# We always install these: -# COPYRIGHT README{,.txt} NEWS AUTHORS BUGS ChangeLog FONTLOG.txt -DOCS=${DOCS:-} - if [[ ${CATEGORY}/${PN} != media-fonts/encodings ]]; then IUSE="X" - DEPEND="X? ( + BDEPEND="X? ( >=x11-apps/mkfontscale-1.2.0 media-fonts/encodings )" - RDEPEND="" fi # @FUNCTION: font_xfont_config