1 |
commit: cccad072a5d9305f493edffb3963fa0a212b34da |
2 |
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Oct 1 05:16:26 2020 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 3 01:31:50 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cccad072 |
7 |
|
8 |
xorg-3.eclass: Require --disable-all-encodings for fonts |
9 |
|
10 |
Presumably in the distant past all font packages did not support this |
11 |
option. They do today, so we can simplify our logic. |
12 |
|
13 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
14 |
|
15 |
eclass/xorg-3.eclass | 28 +++++----------------------- |
16 |
1 file changed, 5 insertions(+), 23 deletions(-) |
17 |
|
18 |
diff --git a/eclass/xorg-3.eclass b/eclass/xorg-3.eclass |
19 |
index af28f6fa30d..7b4c7f97deb 100644 |
20 |
--- a/eclass/xorg-3.eclass |
21 |
+++ b/eclass/xorg-3.eclass |
22 |
@@ -330,30 +330,12 @@ xorg-3_font_configure() { |
23 |
debug-print-function ${FUNCNAME} "$@" |
24 |
|
25 |
if has nls ${IUSE//+} && ! use nls; then |
26 |
- if grep -q -s "disable-all-encodings" ${ECONF_SOURCE:-.}/configure; then |
27 |
- FONT_OPTIONS+=" |
28 |
- --disable-all-encodings |
29 |
- --enable-iso8859-1" |
30 |
- else |
31 |
- FONT_OPTIONS+=" |
32 |
- --disable-iso8859-2 |
33 |
- --disable-iso8859-3 |
34 |
- --disable-iso8859-4 |
35 |
- --disable-iso8859-5 |
36 |
- --disable-iso8859-6 |
37 |
- --disable-iso8859-7 |
38 |
- --disable-iso8859-8 |
39 |
- --disable-iso8859-9 |
40 |
- --disable-iso8859-10 |
41 |
- --disable-iso8859-11 |
42 |
- --disable-iso8859-12 |
43 |
- --disable-iso8859-13 |
44 |
- --disable-iso8859-14 |
45 |
- --disable-iso8859-15 |
46 |
- --disable-iso8859-16 |
47 |
- --disable-jisx0201 |
48 |
- --disable-koi8-r" |
49 |
+ if ! grep -q -s "disable-all-encodings" ${ECONF_SOURCE:-.}/configure; then |
50 |
+ die "--disable-all-encodings option not available in configure" |
51 |
fi |
52 |
+ FONT_OPTIONS+=" |
53 |
+ --disable-all-encodings |
54 |
+ --enable-iso8859-1" |
55 |
fi |
56 |
} |