Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/devmanual:master commit in: /
Date: Mon, 27 Jan 2020 19:58:25
Message-Id: 1580155021.a3d4f013e640988d6097d29623aec40bfc89521b.ulm@gentoo
1 commit: a3d4f013e640988d6097d29623aec40bfc89521b
2 Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jan 17 01:30:28 2020 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 27 19:57:01 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=a3d4f013
7
8 Makefile: add prereq check for the Open Sans font.
9
10 The fc-list command from media-libs/fontconfig can tell us what fonts
11 are available to rsvg-convert, so this commit asks it if any font
12 matching the pattern "Open Sans" is installed. You could make this
13 check a bit more bullet-proof by checking the exact string (to avoid
14 matching e.g. Not Open Sans), but only at the expense of making a
15 simple command more complicated.
16
17 Bug: https://bugs.gentoo.org/700904
18 Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>
19 Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
20
21 Makefile | 3 +++
22 1 file changed, 3 insertions(+)
23
24 diff --git a/Makefile b/Makefile
25 index a6df3be..9cccb38 100644
26 --- a/Makefile
27 +++ b/Makefile
28 @@ -19,6 +19,9 @@ prereq:
29 @type xmllint >/dev/null 2>&1 || \
30 { echo "dev-libs/libxml2 is required" >&2;\
31 exit 1; }
32 + @fc-list -q "Open Sans" || \
33 + { echo "media-fonts/open-sans is required" >&2;\
34 + exit 1; }
35
36 # We need to parse all the XMLs every time, not just the ones
37 # that are newer than the target. This is because each search