From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:40380) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jQ1x1-0004Ia-Pn for guix-patches@gnu.org; Sun, 19 Apr 2020 00:53:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jQ1x1-0002lJ-1f for guix-patches@gnu.org; Sun, 19 Apr 2020 00:53:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:60637) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jQ1x0-0002kG-II for guix-patches@gnu.org; Sun, 19 Apr 2020 00:53:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jQ1x0-0007gc-FM for guix-patches@gnu.org; Sun, 19 Apr 2020 00:53:02 -0400 Subject: [bug#40707] gnu: Add otf and woff font formats for GNU Freefont. (v2) References: <20200419001305.427681a9.raghavgururajan@disroot.org> In-Reply-To: <20200419001305.427681a9.raghavgururajan@disroot.org> Resent-Message-ID: Date: Sun, 19 Apr 2020 00:51:54 -0400 From: Raghav Gururajan Message-ID: <20200419005154.311cf90e.raghavgururajan@disroot.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/EgPFKtghVWPaKzaYa4kOrY=" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 40707@debbugs.gnu.org --MP_/EgPFKtghVWPaKzaYa4kOrY= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline --MP_/EgPFKtghVWPaKzaYa4kOrY= Content-Type: text/x-patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=0001-gnu-Add-otf-and-woff-font-formats-for-GNU-Freefont.patch =46rom 43fa86b94a4f814b5607113e91aa0f82a33ec8f5 Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Sun, 19 Apr 2020 00:47:03 -0400 Subject: [PATCH] gnu: Add otf and woff font formats for GNU Freefont. * gnu/packages/fonts.scm (font-gnu-freefont): Add otf and woff font formats. * gnu/packages/genealogy.scm (gramps): Change input name of GNU Freefont. --- gnu/packages/fonts.scm | 35 +++++++++++++++++++++++++++-------- gnu/packages/genealogy.scm | 2 +- 2 files changed, 28 insertions(+), 9 deletions(-) diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm index dbc0c4f9d6..0356d50c7c 100644 --- a/gnu/packages/fonts.scm +++ b/gnu/packages/fonts.scm @@ -32,6 +32,7 @@ ;;; Copyright =C2=A9 2020 Amin Bandali ;;; Copyright =C2=A9 2020 Michael Rohleder ;;; Copyright =C2=A9 2020 John Soo +;;; Copyright =C2=A9 2020 Raghav Gururajan ;;; ;;; This file is part of GNU Guix. ;;; @@ -230,9 +231,9 @@ The Lato 2.010 family supports more than 100 Latin-base= d languages, over 50 Cyrillic-based languages as well as Greek and IPA phonetics.") (license license:silofl1.1))) =20 -(define-public font-gnu-freefont-ttf +(define-public font-gnu-freefont (package - (name "font-gnu-freefont-ttf") + (name "font-gnu-freefont") (version "20120503") (source (origin (method url-fetch) @@ -249,18 +250,36 @@ The Lato 2.010 family supports more than 100 Latin-ba= sed languages, over (lambda _ (let ((doc-dir (string-append %output "/share/doc/" ,name "-" ,version)) - (font-dir (string-append %output - "/share/fonts/truetype= "))) + (ttf-font-dir (string-append %output + "/share/fonts/ttf")) + (otf-font-dir (string-append %output + "/share/fonts/otf")) + (woff-font-dir (string-append %output + "/share/fonts/woff"))) (mkdir-p doc-dir) (substitute* "Makefile" (("\\$\\(TMPDIR\\)") doc-dir) - (("sfd/\\*.ttf") "")) - (system* "make" "ttftar") - (mkdir-p font-dir) + (("sfd/\\*.ttf") "") + (("sfd/\\*.otf") "") + (("sfd/\\*.woff") "")) + (system* "make" "ttftar" "otftar" "wofftar") + (mkdir-p ttf-font-dir) + (mkdir-p otf-font-dir) + (mkdir-p woff-font-dir) (for-each (lambda (file) - (install-file file font-dir)) + (install-file file ttf-font-dir)) (filter (lambda (file) (string-suffix? "ttf" fi= le)) + (find-files "." ""))) + (for-each (lambda (file) + (install-file file otf-font-dir)) + (filter + (lambda (file) (string-suffix? "otf" fi= le)) + (find-files "." ""))) + (for-each (lambda (file) + (install-file file woff-font-dir)) + (filter + (lambda (file) (string-suffix? "woff" f= ile)) (find-files "." ""))))))) #:test-target "tests")) ;; replace python 3 with python 2 diff --git a/gnu/packages/genealogy.scm b/gnu/packages/genealogy.scm index 869f69add8..79b24ed048 100644 --- a/gnu/packages/genealogy.scm +++ b/gnu/packages/genealogy.scm @@ -55,7 +55,7 @@ ("intltool" ,intltool))) (inputs `(("cairo" ,cairo) - ("font-gnu-freefont-ttf" ,font-gnu-freefont-ttf) + ("font-gnu-freefont" ,font-gnu-freefont) ("geocode-glib" ,geocode-glib) ("gexiv2" ,gexiv2) ("ghostscript" ,ghostscript) --=20 2.26.1 --MP_/EgPFKtghVWPaKzaYa4kOrY=--