From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id EAE1C138350 for ; Mon, 27 Jan 2020 19:58:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BB4E1E086A; Mon, 27 Jan 2020 19:58:24 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 97CE6E0870 for ; Mon, 27 Jan 2020 19:58:24 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 484EF34E498 for ; Mon, 27 Jan 2020 19:58:23 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7A5D9D7 for ; Mon, 27 Jan 2020 19:58:21 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1580155021.a3d4f013e640988d6097d29623aec40bfc89521b.ulm@gentoo> Subject: [gentoo-commits] proj/devmanual:master commit in: / X-VCS-Repository: proj/devmanual X-VCS-Files: Makefile X-VCS-Directories: / X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: a3d4f013e640988d6097d29623aec40bfc89521b X-VCS-Branch: master Date: Mon, 27 Jan 2020 19:58:21 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 4b07b0fa-2da5-49e0-8b70-a4a158d7f44d X-Archives-Hash: 4c9aa9537e4d2abde4d0368f9479fbeb commit: a3d4f013e640988d6097d29623aec40bfc89521b Author: Michael Orlitzky gentoo org> AuthorDate: Fri Jan 17 01:30:28 2020 +0000 Commit: Ulrich Müller gentoo 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 gentoo.org> Signed-off-by: Ulrich Müller 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