Gentoo Archives: gentoo-dev

From: Sam James <sam@g.o>
To: gentoo-dev@l.g.o
Cc: x11@g.o, fonts@g.o, gnome@g.o, Kerin Millar <kfm@×××××××××.net>, Sam James <sam@g.o>
Subject: [gentoo-dev] [PATCH 2/5] xorg-3.eclass: add FONT_CONVERT_SFNT support
Date: Sat, 15 Oct 2022 03:10:52
Message-Id: 20221015030958.2422501-2-sam@gentoo.org
In Reply to: [gentoo-dev] [PATCH 1/5] font.eclass: introduce FONT_CONVERT_SFNT for converting old bitmap fonts by Sam James
1 Bug: https://bugs.gentoo.org/698922
2 Signed-off-by: Sam James <sam@g.o>
3 ---
4 eclass/xorg-3.eclass | 8 +++++++-
5 1 file changed, 7 insertions(+), 1 deletion(-)
6
7 diff --git a/eclass/xorg-3.eclass b/eclass/xorg-3.eclass
8 index e120d23efd4f..4469efb73427 100644
9 --- a/eclass/xorg-3.eclass
10 +++ b/eclass/xorg-3.eclass
11 @@ -463,7 +463,13 @@ xorg-3_src_install() {
12 # Don't install libtool archives (even for modules)
13 find "${D}" -type f -name '*.la' -delete || die
14
15 - [[ -n ${FONT} ]] && remove_font_metadata
16 + if [[ -n ${FONT} ]] ; then
17 + if [[ -n ${FONT_CONVERT_SFNT} ]] && in_iuse convert-sfnt && use convert-sfnt ; then
18 + font_convert_sfnt
19 + fi
20 +
21 + remove_font_metadata
22 + fi
23 }
24
25 # @FUNCTION: xorg-3_pkg_postinst
26 --
27 2.38.0