unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: ng0 <ng0@libertad.pw>
To: guix-devel@gnu.org
Subject: [PATCH 3/3] gnu: Add font-google-roboto.
Date: Wed,  4 Jan 2017 12:47:03 +0000	[thread overview]
Message-ID: <20170104124703.9621-4-ng0@libertad.pw> (raw)
In-Reply-To: <20170104124703.9621-1-ng0@libertad.pw>

* gnu/packages/fonts.scm (font-google-roboto): New variable.
---
 gnu/packages/fonts.scm | 45 ++++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 44 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
index f01b83155..d2832218a 100644
--- a/gnu/packages/fonts.scm
+++ b/gnu/packages/fonts.scm
@@ -7,7 +7,7 @@
 ;;; Copyright © 2015 Eric Dvorsak <eric@dvorsak.fr>
 ;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net>
 ;;; Copyright © 2015, 2016 Leo Famulari <leo@famulari.name>
-;;; Copyright © 2016 ng0 <ng0@we.make.ritual.n0.is>
+;;; Copyright © 2016, 2017 ng0 <ng0@libertad.pw>
 ;;; Copyright © 2016 Jookia <166291@gmail.com>
 ;;; Copyright © 2016 Eric Bavier <bavier@member.fsf.org>
 ;;; Copyright © 2016 Dmitry Nikolaev <cameltheman@gmail.com>
@@ -703,6 +703,49 @@ languages with a consistent look and aesthetic.  It's goal is to have no Unicode
 symbols unable to be displayed properly.")
     (license license:silofl1.1)))
 
+(define-public font-google-roboto
+  (package
+    (name "font-google-roboto")
+    (version "2.136")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://github.com/google/roboto/releases/download/"
+                           "v" version "/roboto-hinted.zip"))
+       (file-name (string-append name "-" version ".zip"))
+       (sha256
+        (base32
+         "0spscx08fad7i8qs7icns96iwcapniq8lwwqqvbf7bamvs8qfln4"))))
+    (native-inputs `(("unzip" ,unzip)))
+    (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)
+                     (chdir "roboto-hinted")
+                     (for-each (lambda (ttf)
+                                 (copy-file ttf
+                                            (string-append font-dir "/" ttf)))
+                               (find-files "." "\\.ttf$"))))))
+    (home-page "https://github.com/google/roboto")
+    (synopsis "The Roboto family of fonts")
+    (description
+     "Roboto is Google’s signature family of fonts, the default font on Android
+and Chrome OS, and the recommended font for the
+visual language \"Material Design\".")
+    (license license:asl2.0)))
+
 (define-public font-un
   (package
     (name "font-un")
-- 
2.11.0

  parent reply	other threads:[~2017-01-04 12:46 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-04 12:47 Patches to add: DOtherSide, fluid, font-google-roboto ng0
2017-01-04 12:47 ` [PATCH 1/3] gnu: Add dotherside ng0
2017-01-04 12:47 ` [PATCH 2/3] gnu: Add fluid ng0
2017-01-04 14:04   ` Danny Milosavljevic
2017-01-04 14:48     ` David Craven
2017-01-04 12:47 ` ng0 [this message]
2017-01-09  9:21   ` [PATCH 3/3] gnu: Add font-google-roboto Ludovic Courtès
2017-01-04 14:53 ` fluid, dotherside, roboto. v2 ng0
2017-01-04 14:53   ` [PATCH 1/3] gnu: Add dotherside ng0
2017-01-09  9:24     ` Ludovic Courtès
2017-01-04 14:53   ` [PATCH 2/3] gnu: Add fluid ng0
2017-01-09  9:32     ` Ludovic Courtès
2017-01-09 10:11       ` Efraim Flashner
2017-01-09 10:20       ` ng0
2017-01-09 12:44         ` fluid, v2 ng0
2017-01-09 12:44           ` [PATCH] gnu: Add fluid ng0
2017-01-09 14:15             ` ng0
2017-01-09 15:58               ` David Craven
2017-01-09 16:11                 ` David Craven
2017-01-09 16:45                   ` ng0
2017-01-09 16:49                     ` David Craven
2017-01-04 14:53   ` [PATCH 3/3] gnu: Add font-google-roboto ng0

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170104124703.9621-4-ng0@libertad.pw \
    --to=ng0@libertad.pw \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).