From: Eric Dvorsak <eric@dvorsak.fr>
To: guix-devel@gnu.org
Subject: [PATCH 1/2] gnu: Add font-ubuntu
Date: Mon, 17 Aug 2015 01:04:26 +0200 [thread overview]
Message-ID: <1439766267-15096-1-git-send-email-eric@dvorsak.fr> (raw)
* gnu/packages/fonts/scm (font-ubuntu): New variable.
---
gnu/packages/fonts.scm | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 53 insertions(+)
diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
index f72c542..f26a599 100644
--- a/gnu/packages/fonts.scm
+++ b/gnu/packages/fonts.scm
@@ -4,6 +4,7 @@
;;; Copyright © 2014 Joshua Grant <tadni@riseup.net>
;;; Copyright © 2014 Alex Kost <alezost@gmail.com>
;;; Copyright © 2015 Sou Bunnbu <iyzsong@gmail.com>
+;;; Copyright © 2015 Eric Dvorsak <eric@dvorsak.fr>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -28,10 +29,62 @@
#:use-module (guix build-system trivial)
#:use-module (gnu packages base)
#:use-module (gnu packages compression)
+ #:use-module (gnu packages zip)
#:use-module (gnu packages perl)
#:use-module (gnu packages xorg)
#:use-module (gnu packages pkg-config))
+(define-public font-ubuntu
+ (package
+ (name "font-ubuntu")
+ (version "0.80")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "http://font.ubuntu.com/download/ubuntu-font-family-"
+ version ".zip"))
+ (sha256
+ (base32
+ "0k4f548riq23gmw4zhn30qqkcpaj4g2ab5rbc3lflfxwkc4p0w8h"))))
+ (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"))
+ (doc-dir (string-append %output "/share/doc/"
+ ,name "-" ,version)))
+ (setenv "PATH" PATH)
+ (system* "unzip" (assoc-ref %build-inputs "source"))
+
+ (mkdir-p font-dir)
+ (mkdir-p doc-dir)
+ (chdir (string-append "ubuntu-font-family-" ,version))
+ (for-each (lambda (ttf)
+ (copy-file ttf
+ (string-append font-dir "/" ttf)))
+ (find-files "." "\\.ttf$"))
+ (for-each (lambda (doc)
+ (copy-file doc
+ (string-append doc-dir "/" doc)))
+ (find-files "." "\\.txt$"))))))
+ (native-inputs `(("source" ,source)
+ ("unzip" ,unzip)))
+ (home-page "http://font.ubuntu.com/")
+ (synopsis "The Ubuntu Font Family")
+ (description "The Ubuntu Font Family is a unique, custom designed font
+that has a very distinctive look and feel. This package provides the
+TrueType (TTF) files.")
+ (license
+ (license:non-copyleft
+ "file://LICENCE.txt"
+ "See the LICENCE file in the distribution"))))
+
(define-public font-dejavu
(package
(name "font-dejavu")
--
2.4.3
next reply other threads:[~2015-08-16 23:05 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-16 23:04 Eric Dvorsak [this message]
2015-08-16 23:04 ` [PATCH 2/2] gnu: Add font-inconsolata Eric Dvorsak
2015-08-20 14:42 ` Ludovic Courtès
2015-08-20 14:40 ` [PATCH 1/2] gnu: Add font-ubuntu Ludovic Courtès
2015-08-21 22:49 ` Mark H Weaver
2015-08-23 21:07 ` Ludovic Courtès
2015-08-23 22:30 ` Mark H Weaver
2015-08-24 22:18 ` Ludovic Courtès
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1439766267-15096-1-git-send-email-eric@dvorsak.fr \
--to=eric@dvorsak.fr \
--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 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.