From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36748) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1df3mt-0008So-RE for guix-patches@gnu.org; Tue, 08 Aug 2017 08:39:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1df3mo-0006h2-Kz for guix-patches@gnu.org; Tue, 08 Aug 2017 08:39:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:42467) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1df3mo-0006gs-Hc for guix-patches@gnu.org; Tue, 08 Aug 2017 08:39:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1df3mo-000484-AL for guix-patches@gnu.org; Tue, 08 Aug 2017 08:39:02 -0400 Subject: [bug#28012] font-google-noto: Use font-build-system. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36012) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1df3lZ-0007mM-Bs for guix-patches@gnu.org; Tue, 08 Aug 2017 08:37:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1df3lU-00063V-VY for guix-patches@gnu.org; Tue, 08 Aug 2017 08:37:45 -0400 Received: from aibo.runbox.com ([91.220.196.211]:58734) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1df3lU-00062l-NA for guix-patches@gnu.org; Tue, 08 Aug 2017 08:37:40 -0400 Received: from [10.9.9.210] (helo=mailfront10.runbox.com) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1df3lR-0001sM-Qg for guix-patches@gnu.org; Tue, 08 Aug 2017 14:37:37 +0200 Received: from [78.109.24.135] (helo=localhost) by mailfront10.runbox.com with esmtpsa (uid:892961 ) (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) id 1df3lK-0005LH-OW for guix-patches@gnu.org; Tue, 08 Aug 2017 14:37:31 +0200 Date: Tue, 8 Aug 2017 12:37:27 +0000 From: ng0 Message-ID: <20170808123727.duw3xrt2qucngowj@abyayala> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="hs223lqe2k6sc3yi" Content-Disposition: inline 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: 28012@debbugs.gnu.org --hs223lqe2k6sc3yi Content-Type: multipart/mixed; boundary="y6aqmqi7txl7b7mp" Content-Disposition: inline --y6aqmqi7txl7b7mp Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Switch Noto to use font-build-system. --=20 ng0 GnuPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588 GnuPG: https://n0is.noblogs.org/my-keys https://www.infotropique.org https://krosos.org --y6aqmqi7txl7b7mp Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0001-gnu-font-google-noto-Use-font-build-system.patch" Content-Transfer-Encoding: quoted-printable =46rom 070ca2f0937a1110a5e96bff38f2a87da3a11765 Mon Sep 17 00:00:00 2001 =46rom: ng0 Date: Tue, 8 Aug 2017 12:24:08 +0000 Subject: [PATCH] gnu: font-google-noto: Use 'font-build-system'. * gnu/packages/fonts.scm (font-google-noto): Switch to font-build-system. (source): Use 'url-fetch/zipbomb'. (arguments): Remove it. (native-inputs): Remove it. --- gnu/packages/fonts.scm | 27 +++------------------------ 1 file changed, 3 insertions(+), 24 deletions(-) diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm index e421b2c6a..958658241 100644 --- a/gnu/packages/fonts.scm +++ b/gnu/packages/fonts.scm @@ -622,35 +622,14 @@ utilities to ease adding new glyphs to the font.") (name "font-google-noto") (version "20170403") (source (origin - (method url-fetch) + (method url-fetch/zipbomb) (uri (string-append "https://noto-website.storage.googleapis= =2Ecom/" "pkgs/Noto-hinted.zip")) + (file-name (string-append name "-" version ".zip")) (sha256 (base32 "1p92a6dvs7wqwjfpp1ahr9z1wz35am0l8r78521383spd77bmrfm")))) - (build-system trivial-build-system) - (arguments - `(#:modules ((guix build utils)) - #:builder (begin - (use-modules (guix build utils) - (srfi srfi-26)) - - (let ((PATH (string-append (assoc-ref %build-inputs - "unzip") - "/bin")) - (font-dir (string-append %output - "/share/fonts/truetype")= )) - (setenv "PATH" PATH) - (system* "unzip" (assoc-ref %build-inputs "source")) - - (mkdir-p font-dir) - (for-each (lambda (ttf) - (install-file ttf font-dir)) - (find-files "." "\\.ttf$")) - (for-each (lambda (otf) - (install-file otf font-dir)) - (find-files "." "\\.otf$")))))) - (native-inputs `(("unzip" ,unzip))) + (build-system font-build-system) (home-page "https://www.google.com/get/noto/") (synopsis "Fonts to cover all languages") (description "Google Noto Fonts is a family of fonts designed to suppo= rt --=20 2.14.0 --y6aqmqi7txl7b7mp-- --hs223lqe2k6sc3yi Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEqIyK3RKYKNfqwC5S4i+bv+40hYgFAlmJsIcACgkQ4i+bv+40 hYh6lQ/+JJCNzHFHXxX+UmFVhIhTHirdM66dbbHyh3a4t6pmuCN8SvzXM/iOgPfQ yaQ87KN19T3gOttyAsUntDVd2ZE8r4s5k23Cq50XgPMRiuaEqV+Yu9tbIQhy0hqk v6jjPbUF/mXIkxtyWAEQuvD4lD/BGA1Fg457IqZB2aJvefRwYG4QvdKU7jdSeXaW MDy8aGudV0KUGWtIXzbl4h5flY8CBGUTxfawBkhhmPf0ZqPWImVVyzIDc/HoZhk2 IrNpA9tt77CDtNliKxZ0ckpvCA5ze1PUGArnao7lLvk/GZROZRuZdxLIxue/MIbl q2PoKh+Str5M/CIseS/6XVT1Whshew91TNEOKIYILG/4u5/t6/xP6lACLkCvqmz+ VNxbHUgFai4OJohnr8HCUJWOY9eB0B3lfOazfx1w7Bw5/Q1SRpOxNQw2pN6+1v1Z LcjuIZpNQ+WBDTGopU+q/R9EJYQoo8hJv/vIF+eBNHvkvh6Xy+PThHi0EM8J2BwV fOWeDIlMFnh4qs5SYf5JNppOgXMaUGEKzm2Tfb6V5vxe5EJITa14lNkjlTF84fY+ DYdsOD0bedQF0VZjkl53fo/Kxk0Iogx746e6rBYlctewR4kST9Gus7QGLKUDko+B t8qI7jhGmnbjMnr3FpqKv6RDwKZuoZ7utQg0KdEoP/YZcPGAacQ= =rQ1D -----END PGP SIGNATURE----- --hs223lqe2k6sc3yi--