1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013 Ludovic Courtès <ludo@gnu.org>
4 ;;; This file is part of GNU Guix.
6 ;;; GNU Guix is free software; you can redistribute it and/or modify it
7 ;;; under the terms of the GNU General Public License as published by
8 ;;; the Free Software Foundation; either version 3 of the License, or (at
9 ;;; your option) any later version.
11 ;;; GNU Guix is distributed in the hope that it will be useful, but
12 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 ;;; GNU General Public License for more details.
16 ;;; You should have received a copy of the GNU General Public License
17 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
19 (define-module (gnu packages fonts)
20 #:use-module ((guix licenses)
21 #:renamer (symbol-prefix-proc 'license:))
22 #:use-module (guix packages)
23 #:use-module (guix download)
24 #:use-module (guix build-system trivial)
25 #:use-module ((gnu packages base)
27 #:use-module (gnu packages compression))
29 (define-public ttf-bitstream-vera
31 (name "ttf-bitstream-vera")
35 (uri (string-append "mirror://gnome/sources/ttf-bitstream-vera/"
36 version "/ttf-bitstream-vera-"
40 "1p3qs51x5327gnk71yq8cvmxc6wgx79sqxfvxcv80cdvgggjfnyv"))))
41 (build-system trivial-build-system)
43 `(#:modules ((guix build utils))
45 (use-modules (guix build utils)
48 (let ((tar (string-append (assoc-ref %build-inputs
51 (PATH (string-append (assoc-ref %build-inputs
54 (font-dir (string-append %output
55 "/share/fonts/truetype"))
56 (doc-dir (string-append %output "/share/doc/"
59 (system* tar "xvf" (assoc-ref %build-inputs "source"))
63 (chdir (string-append "ttf-bitstream-vera-" ,version))
64 (for-each (lambda (ttf)
66 (string-append font-dir "/" ttf)))
67 (find-files "." "\\.ttf$"))
68 (for-each (lambda (doc)
70 (string-append doc-dir "/" doc)))
71 (find-files "." "\\.TXT$"))))))
72 (native-inputs `(("source" ,source)
75 (home-page "https://www-old.gnome.org/fonts/")
76 (synopsis "Bitstream Vera sans-serif typeface")
77 (description "Vera is a sans-serif typeface from Bitstream, Inc. This
78 package provides the TrueType (TTF) files.")
81 "https://www-old.gnome.org/fonts/#Final_Bitstream_Vera_Fonts"))))
83 (define-public freefont-ttf
89 (uri (string-append "mirror://gnu/freefont/freefont-ttf-"
93 "1q3h5jp1mbdkinkwxy0lfd0a1q7azlbagraydlzaa2ng82836wg4"))))
94 (build-system trivial-build-system)
96 `(#:modules ((guix build utils))
98 (use-modules (guix build utils)
101 (let ((tar (string-append (assoc-ref %build-inputs
104 (PATH (string-append (assoc-ref %build-inputs
107 (font-dir (string-append %output
108 "/share/fonts/truetype"))
109 (doc-dir (string-append %output "/share/doc/"
110 ,name "-" ,version)))
112 (system* tar "xvf" (assoc-ref %build-inputs "source"))
116 (chdir (string-append "freefont-" ,version))
117 (for-each (lambda (file)
118 (let ((dir (if (string-suffix? "ttf" file)
122 (string-append dir "/" file))))
123 (find-files "." ""))))))
124 (native-inputs `(("source" ,source)
127 (home-page "http://www.gnu.org/software/freefont/")
128 (synopsis "Unicode-encoded outline fonts")
130 "The GNU Freefont project aims to provide a set of free outline
131 (PostScript Type0, TrueType, OpenType...) fonts covering the ISO
132 10646/Unicode UCS (Universal Character Set).")
133 (license license:gpl3+)))