[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 86/86] gnu: Add font-google-roboto.
From: |
ng0 |
Subject: |
[PATCH 86/86] gnu: Add font-google-roboto. |
Date: |
Tue, 3 Jan 2017 23:36:42 +0000 |
* 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 <address@hidden>
;;; Copyright © 2015 Ricardo Wurmus <address@hidden>
;;; Copyright © 2015, 2016 Leo Famulari <address@hidden>
-;;; Copyright © 2016 ng0 <address@hidden>
+;;; Copyright © 2016, 2017 ng0 <address@hidden>
;;; Copyright © 2016 Jookia <address@hidden>
;;; Copyright © 2016 Eric Bavier <address@hidden>
;;; Copyright © 2016 Dmitry Nikolaev <address@hidden>
@@ -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
- Re: [PATCH 82/86] gnu: rust-quickcheck: Add rust-env-logger input., (continued)
- [PATCH 75/86] gnu: Add rust-tokio-core., ng0, 2017/01/03
- [PATCH 77/86] gnu: Add rust-serde-test., ng0, 2017/01/03
- [PATCH 81/86] gnu: rust-docopt: Add rust-regex input., ng0, 2017/01/03
- [PATCH 78/86] gnu: rust-clippy: Add rust-serde input., ng0, 2017/01/03
- [PATCH 83/86] gnu: Add fluid., ng0, 2017/01/03
- [PATCH 76/86] gnu: Add rust-serde., ng0, 2017/01/03
- [PATCH 79/86] gnu: rust-toml: Add rust-serde input., ng0, 2017/01/03
- [PATCH 84/86] gnu: Add libpsyc-rust., ng0, 2017/01/03
- [PATCH 86/86] gnu: Add font-google-roboto.,
ng0 <=
- [PATCH 80/86] gnu: rust-csv: Add rust-regex input., ng0, 2017/01/03
- [PATCH 85/86] gnu: libpsyc: Remove comment., ng0, 2017/01/03
- Re: 77 Rust Crates, fluid, roboto-font, libpsyc rust bindings, Ben Woodcroft, 2017/01/03
- Re: 77 Rust Crates, fluid, roboto-font, libpsyc rust bindings, Ricardo Wurmus, 2017/01/04
- Re: 77 Rust Crates, fluid, roboto-font, libpsyc rust bindings, ng0, 2017/01/04
- Re: 77 Rust Crates, fluid, roboto-font, libpsyc rust bindings, David Craven, 2017/01/04
- Re: 77 Rust Crates, fluid, roboto-font, libpsyc rust bindings, ng0, 2017/01/04
- Re: 77 Rust Crates, fluid, roboto-font, libpsyc rust bindings, David Craven, 2017/01/04