public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [gentoo-commits] proj/devmanual:master commit in: /
@ 2020-01-27 19:58 99% Ulrich Müller
  0 siblings, 0 replies; 1+ results
From: Ulrich Müller @ 2020-01-27 19:58 UTC (permalink / raw
  To: gentoo-commits

commit:     a3d4f013e640988d6097d29623aec40bfc89521b
Author:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 17 01:30:28 2020 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Mon Jan 27 19:57:01 2020 +0000
URL:        https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=a3d4f013

Makefile: add prereq check for the Open Sans font.

The fc-list command from media-libs/fontconfig can tell us what fonts
are available to rsvg-convert, so this commit asks it if any font
matching the pattern "Open Sans" is installed. You could make this
check a bit more bullet-proof by checking the exact string (to avoid
matching e.g. Not Open Sans), but only at the expense of making a
simple command more complicated.

Bug: https://bugs.gentoo.org/700904
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Makefile b/Makefile
index a6df3be..9cccb38 100644
--- a/Makefile
+++ b/Makefile
@@ -19,6 +19,9 @@ prereq:
 	@type xmllint >/dev/null 2>&1 || \
 	{ echo "dev-libs/libxml2 is required" >&2;\
 	  exit 1; }
+	@fc-list -q "Open Sans" || \
+	{ echo "media-fonts/open-sans is required" >&2;\
+	  exit 1; }
 
 # We need to parse all the XMLs every time, not just the ones
 # that are newer than the target. This is because each search


^ permalink raw reply related	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2020-01-27 19:58 99% [gentoo-commits] proj/devmanual:master commit in: / Ulrich Müller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox