Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 604424 Details for
Bug 700904
devmanual: use rsvg-convert to build png images
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
0002-Makefile-add-prereq-check-for-the-Open-Sans-font.patch
0002-Makefile-add-prereq-check-for-the-Open-Sans-font.patch (text/plain), 1.08 KB, created by
Michael Orlitzky
on 2020-01-25 23:05:39 UTC
(
hide
)
Description:
0002-Makefile-add-prereq-check-for-the-Open-Sans-font.patch
Filename:
MIME Type:
Creator:
Michael Orlitzky
Created:
2020-01-25 23:05:39 UTC
Size:
1.08 KB
patch
obsolete
>From b2cc7f9f306f50acd1e5f050fe644e82a4e42e0d Mon Sep 17 00:00:00 2001 >From: Michael Orlitzky <mjo@gentoo.org> >Date: Thu, 16 Jan 2020 20:30:28 -0500 >Subject: [PATCH 2/3] 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. >--- > Makefile | 3 +++ > 1 file changed, 3 insertions(+) > >diff --git a/Makefile b/Makefile >index a6df3be..9fa7a54 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[X] 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 >-- >2.24.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 700904
:
603220
|
603222
|
603224
|
603226
|
603228
|
603230
|
603232
|
603234
|
603236
|
603238
|
603240
|
603242
|
603588
|
603590
|
603592
|
603594
|
603596
|
603598
|
603600
|
603602
|
604354
|
604422
|
604424
|
604426
|
604610
|
604614
|
604616
|
604618