all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#28012] font-google-noto: Use font-build-system.
@ 2017-08-08 12:37 ng0
  2017-08-16 14:19 ` bug#28012: " Ricardo Wurmus
  0 siblings, 1 reply; 2+ messages in thread
From: ng0 @ 2017-08-08 12:37 UTC (permalink / raw)
  To: 28012


[-- Attachment #1.1: Type: text/plain, Size: 188 bytes --]

Switch Noto to use font-build-system.
-- 
ng0
GnuPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588
GnuPG: https://n0is.noblogs.org/my-keys
https://www.infotropique.org https://krosos.org

[-- Attachment #1.2: 0001-gnu-font-google-noto-Use-font-build-system.patch --]
[-- Type: text/plain, Size: 2590 bytes --]

From 070ca2f0937a1110a5e96bff38f2a87da3a11765 Mon Sep 17 00:00:00 2001
From: ng0 <ng0@infotropique.org>
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.com/"
                                   "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 support
-- 
2.14.0


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#28012: font-google-noto: Use font-build-system.
  2017-08-08 12:37 [bug#28012] font-google-noto: Use font-build-system ng0
@ 2017-08-16 14:19 ` Ricardo Wurmus
  0 siblings, 0 replies; 2+ messages in thread
From: Ricardo Wurmus @ 2017-08-16 14:19 UTC (permalink / raw)
  To: ng0; +Cc: 28012-done


ng0 <ng0@infotropique.org> writes:

> Switch Noto to use font-build-system.

I pushed this to master with commit 2f7966c8e after fixing the commit
message and summary.

Thanks.

-- 
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-08-16 14:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-08 12:37 [bug#28012] font-google-noto: Use font-build-system ng0
2017-08-16 14:19 ` bug#28012: " Ricardo Wurmus

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.