summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-10-15 03:39:48 +0100
committerSam James <sam@gentoo.org>2022-11-20 01:05:13 +0000
commitaafcb52277aa883f12e2e752e0f2d1e795b3ba18 (patch)
tree1308ca8cdb6311e618cef0ad6a6df53fb4f38528 /eclass/xorg-3.eclass
parentfont.eclass: introduce FONT_OPENTYPE_COMPAT for converting old bitmap fonts (diff)
downloadgentoo-aafcb52277aa883f12e2e752e0f2d1e795b3ba18.tar.gz
gentoo-aafcb52277aa883f12e2e752e0f2d1e795b3ba18.tar.bz2
gentoo-aafcb52277aa883f12e2e752e0f2d1e795b3ba18.zip
xorg-3.eclass: add FONT_OPENTYPE_COMPAT support
Bug: https://bugs.gentoo.org/698922 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass/xorg-3.eclass')
-rw-r--r--eclass/xorg-3.eclass8
1 files changed, 7 insertions, 1 deletions
diff --git a/eclass/xorg-3.eclass b/eclass/xorg-3.eclass
index e120d23efd4f..0d35c0a8ebf8 100644
--- a/eclass/xorg-3.eclass
+++ b/eclass/xorg-3.eclass
@@ -463,7 +463,13 @@ xorg-3_src_install() {
# Don't install libtool archives (even for modules)
find "${D}" -type f -name '*.la' -delete || die
- [[ -n ${FONT} ]] && remove_font_metadata
+ if [[ -n ${FONT} ]] ; then
+ if [[ -n ${FONT_OPENTYPE_COMPAT} ]] && in_iuse opentype-compat && use opentype-compat ; then
+ font_wrap_opentype_compat
+ fi
+
+ remove_font_metadata
+ fi
}
# @FUNCTION: xorg-3_pkg_postinst