all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [PATCH] gnu: Add font-google-material-design-icons.
@ 2017-02-12 10:38 José Miguel Sánchez García
  2017-02-13 14:57 ` Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: José Miguel Sánchez García @ 2017-02-12 10:38 UTC (permalink / raw)
  To: guix-devel

[-- Attachment #1: Type: text/plain, Size: 38 bytes --]



-- 
José Miguel Sánchez García

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-font-google-material-design-icons.patch --]
[-- Type: text/x-diff; name=0001-gnu-Add-font-google-material-design-icons.patch, Size: 3214 bytes --]

From 8b9659a427ef460d91a985a4d014bef05a0341d8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jos=C3=A9=20Miguel=20S=C3=A1nchez=20Garc=C3=ADa?=
 <jmi2k@openmailbox.org>
Date: Sun, 12 Feb 2017 12:26:42 +0100
Subject: [PATCH] gnu: Add font-google-material-design-icons.

* gnu/packages/font.scm (font-google-material-design-icons): New
variable.
---
 gnu/packages/fonts.scm | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)

diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
index 43991d103..63f43786e 100644
--- a/gnu/packages/fonts.scm
+++ b/gnu/packages/fonts.scm
@@ -1031,3 +1031,51 @@ designed to work well in user interface environments.")
     "Font Awesome is a full suite of pictographic icons for easy scalable
 vector graphics.")
    (license license:silofl1.1)))
+
+(define-public font-google-material-design-icons
+  (package
+   (name "font-google-material-design-icons")
+   (version "3.0.1")
+   (source (origin
+            (method url-fetch)
+            (uri (string-append
+                   "https://github.com/google/material-design-icons/archive/"
+                    version ".tar.gz"))
+            (sha256
+             (base32
+              "183n0qv3q8w6n27libarq1fhc4mqv2d3sasbfmbn7x9r5pw9c6ga"))
+            (file-name (string-append name "-" version "-checkout"))))
+   (build-system trivial-build-system)
+   (native-inputs
+    `(("tar" ,tar)
+      ("gzip" ,gzip)))
+   (arguments
+    `(#:modules ((guix build utils))
+      #:builder (begin
+                  (use-modules (guix build utils))
+                  (let* ((font-dir (string-append %output
+                                                  "/share/fonts/truetype"))
+                         (source (assoc-ref %build-inputs "source"))
+                         (font-filename "MaterialIcons-Regular.ttf")
+                         (src-ttf-file (string-append "material-design-icons-"
+                                                      ,version
+                                                      "/iconfont/"
+                                                      font-filename))
+                         (dest-ttf-file (string-append font-dir font-filename))
+                         (gzip (assoc-ref %build-inputs "gzip"))
+                         (tar (assoc-ref %build-inputs "tar")))
+                    (setenv "PATH" (string-append gzip "/bin:"
+                                                  tar "/bin:"))
+                    (system* "tar" "xf" source)
+                    (mkdir-p font-dir)
+                    (copy-file src-ttf-file dest-ttf-file)))))
+   (home-page "http://google.github.io/material-design-icons")
+   (synopsis "Icon font of Google Material Design icons")
+   (description
+    "Material design system icons are simple, modern, friendly, and sometimes
+quirky.  Each icon is created using our design guidelines to depict in simple
+and minimal forms the universal concepts used commonly throughout a UI.
+Ensuring readability and clarity at both large and small sizes, these icons
+have been optimized for beautiful display on all common platforms and display
+resolutions.")
+   (license license:silofl1.1)))
-- 
2.11.1


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

* Re: [PATCH] gnu: Add font-google-material-design-icons.
  2017-02-12 10:38 [PATCH] gnu: Add font-google-material-design-icons José Miguel Sánchez García
@ 2017-02-13 14:57 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2017-02-13 14:57 UTC (permalink / raw)
  To: José Miguel Sánchez García; +Cc: guix-devel

José Miguel Sánchez García <jmi2k@openmailbox.org> skribis:

> From 8b9659a427ef460d91a985a4d014bef05a0341d8 Mon Sep 17 00:00:00 2001
> From: =?UTF-8?q?Jos=C3=A9=20Miguel=20S=C3=A1nchez=20Garc=C3=ADa?=
>  <jmi2k@openmailbox.org>
> Date: Sun, 12 Feb 2017 12:26:42 +0100
> Subject: [PATCH] gnu: Add font-google-material-design-icons.
>
> * gnu/packages/font.scm (font-google-material-design-icons): New
> variable.

[...]

> +            (uri (string-append
> +                   "https://github.com/google/material-design-icons/archive/"
> +                    version ".tar.gz"))
> +            (sha256
> +             (base32
> +              "183n0qv3q8w6n27libarq1fhc4mqv2d3sasbfmbn7x9r5pw9c6ga"))
> +            (file-name (string-append name "-" version "-checkout"))))

Changed to ".tar.gz".

> +   (home-page "http://google.github.io/material-design-icons")
> +   (synopsis "Icon font of Google Material Design icons")
> +   (description
> +    "Material design system icons are simple, modern, friendly, and sometimes
> +quirky.  Each icon is created using our design guidelines to depict in simple
> +and minimal forms the universal concepts used commonly throughout a UI.
> +Ensuring readability and clarity at both large and small sizes, these icons
> +have been optimized for beautiful display on all common platforms and display
> +resolutions.")
> +   (license license:silofl1.1)))

This is ASL 2.0 according to the ‘LICENSE’ file.

Adjusted accordingly and pushed, thanks!

Ludo’.

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

end of thread, other threads:[~2017-02-13 14:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-12 10:38 [PATCH] gnu: Add font-google-material-design-icons José Miguel Sánchez García
2017-02-13 14:57 ` Ludovic Courtès

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.