Gentoo Archives: gentoo-embedded

From: Walter Dnes <waltdnes@××××××××.org>
To: Gentoo embedded <gentoo-embedded@l.g.o>
Subject: [gentoo-embedded] ISO8859-? fonts in uclibc-ng via ugly hack
Date: Thu, 23 Feb 2017 20:51:04
Message-Id: 20170223205051.GA5243@waltdnes.org
1 Gentoo now requires nls support to enable ISO8859-? fonts. But
2 uclibc-ng does not support nls, e.g...
3
4 ============================================================================
5 [aa1][waltdnes][~] emerge -pv font-misc-misc font-bh-lucidatypewriter-100dpi
6
7 These are the packages that would be merged, in order:
8
9 Calculating dependencies... done!
10 [ebuild R ] media-fonts/font-misc-misc-1.1.2::gentoo USE="X (-nls)" 0 KiB
11 [ebuild R ] media-fonts/font-bh-lucidatypewriter-100dpi-1.0.3::gentoo USE="X (-nls)" 0 KiB
12 ============================================================================
13
14 Note the forced "(-nls)" flags, which means that portage will not
15 normally install ISO8859-1 or similar fonts. Now for the ugly hack.
16 Font install selection is controlled by function xorg-2_font_configure()
17 in file /usr/portage/eclass/xorg-2.eclass The function checks some
18 conditions before deciding which font set(s) to install. I took out the
19 conditionals, and hard-coded it to install ISO8859-1, and no other font
20 variants. Here is my xorg-2_font_configure() People elsewhere may want
21 to "--disable-iso8859-1" and --enable the appropriate font variant for
22 their country. I'm also file-attaching xorg-2.eclass.gz
23
24 xorg-2_font_configure() {
25 debug-print-function ${FUNCNAME} "$@"
26
27 FONT_OPTIONS+="
28 --enable-iso8859-1
29 --disable-iso8859-2
30 --disable-iso8859-3
31 --disable-iso8859-4
32 --disable-iso8859-5
33 --disable-iso8859-6
34 --disable-iso8859-7
35 --disable-iso8859-8
36 --disable-iso8859-9
37 --disable-iso8859-10
38 --disable-iso8859-11
39 --disable-iso8859-12
40 --disable-iso8859-13
41 --disable-iso8859-14
42 --disable-iso8859-15
43 --disable-iso8859-16
44 --disable-jisx0201
45 --disable-koi8-r"
46
47 }
48
49
50
51 --
52 Walter Dnes <waltdnes@××××××××.org>

Attachments

File name MIME type
xorg-2.eclass.gz application/octet-stream