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 <fedora.dm0@gmail.com>
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
David Michael
2021-03-15 14:11:26 -04:00
committed by Andreas Sturmlechner
parent 1305a4ac64
commit 60a4b74e3d

View File

@@ -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