Commit | Line | Data |
---|---|---|
b387a1c5 AE |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2013 Andreas Enge <andreas@enge.fr> | |
3 | ;;; | |
4 | ;;; This file is part of GNU Guix. | |
5 | ;;; | |
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. | |
10 | ;;; | |
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. | |
15 | ;;; | |
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/>. | |
18 | ||
19 | (define-module (gnu packages freetype) | |
20 | #:use-module (gnu packages) | |
e5c0701f | 21 | #:use-module (gnu packages compression) |
6e4da6ea AE |
22 | #:use-module (gnu packages pkg-config) |
23 | #:use-module (gnu packages xml) | |
79c398a2 | 24 | #:use-module ((guix licenses) #:renamer (symbol-prefix-proc 'license:)) |
b387a1c5 AE |
25 | #:use-module (guix packages) |
26 | #:use-module (guix download) | |
27 | #:use-module (guix build-system gnu)) | |
28 | ||
29 | (define-public freetype | |
30 | (package | |
31 | (name "freetype") | |
32 | (version "2.4.11") | |
33 | (source (origin | |
34 | (method url-fetch) | |
35 | (uri (string-append | |
36 | "http://download.savannah.gnu.org/releases/freetype/freetype-" | |
37 | version ".tar.gz")) | |
38 | (sha256 (base32 | |
39 | "0gpcz6swir64kp0dk3rwgqqkmf48b90dqgczdmznjjryhrahx9r9")))) | |
40 | (build-system gnu-build-system) | |
41 | (synopsis "Freetype, a library to render fonts") | |
42 | (description | |
43 | "Freetype is a library that can be used by applications to access the | |
44 | contents of font files. It provides a uniform interface to access font files. | |
45 | It supports both bitmap and scalable formats, including TrueType, OpenType, | |
46 | Type1, CID, CFF, Windows FON/FNT, X11 PCF, and others. It supports high-speed | |
47 | anti-aliased glyph bitmap generation with 256 gray levels.") | |
79c398a2 | 48 | (license license:freetype) ; some files have other licenses |
b387a1c5 | 49 | (home-page "http://www.freetype.org/"))) |
6e4da6ea AE |
50 | |
51 | (define-public fontconfig | |
52 | (package | |
53 | (name "fontconfig") | |
54 | (version "2.10.91") | |
55 | (source (origin | |
56 | (method url-fetch) | |
57 | (uri (string-append | |
58 | "http://www.freedesktop.org/software/fontconfig/release/fontconfig-" | |
59 | version ".tar.bz2")) | |
60 | (sha256 (base32 | |
61 | "1vk37q3zj8bjppj3l0pkby1psialpwl263jqf6pbih2hx5a7jwm4")))) | |
62 | (build-system gnu-build-system) | |
63 | (inputs `(("expat" ,expat) | |
64 | ("freetype" ,freetype) | |
65 | ("pkg-config" ,pkg-config))) | |
313b9012 | 66 | (synopsis "Fontconfig, a library for configuring and customising font access.") |
6e4da6ea AE |
67 | (description |
68 | "Fontconfig can discover new fonts when installed automatically; | |
69 | perform font name substitution, so that appropriate alternative fonts can | |
70 | be selected if fonts are missing; | |
71 | identify the set of fonts required to completely cover a set of languages; | |
72 | have GUI configuration tools built as it uses an XML-based configuration file; | |
73 | efficiently and quickly find needed fonts among the set of installed fonts; | |
74 | be used in concert with the X Render Extension and FreeType to implement | |
75 | high quality, anti-aliased and subpixel rendered text on a display.") | |
76 | ; The exact license is more X11-style than BSD-style. | |
77 | (license (license:bsd-style "file://COPYING" | |
78 | "See COPYING in the distribution.")) | |
79 | (home-page "http://www.freedesktop.org/wiki/Software/fontconfig"))) | |
313b9012 AE |
80 | |
81 | (define-public t1lib | |
82 | (package | |
83 | (name "t1lib") | |
84 | (version "5.1.2") | |
85 | (source (origin | |
86 | (method url-fetch) | |
87 | (uri "ftp://sunsite.unc.edu/pub/Linux/libs/graphics/t1lib-5.1.2.tar.gz") | |
88 | (sha256 (base32 | |
89 | "0nbvjpnmcznib1nlgg8xckrmsw3haa154byds2h90y2g0nsjh4w2")))) | |
90 | (build-system gnu-build-system) | |
91 | (arguments | |
92 | ;; Making the documentation requires latex, but t1lib is also an input | |
93 | ;; for building texlive. | |
94 | `(#:tests? #f ; no test target | |
95 | #:make-flags | |
96 | '("without_doc"))) | |
97 | (synopsis "T1lib, a library for generating bitmaps from type 1 fonts.") | |
98 | (description | |
99 | "T1lib is a library for generating/rasterising bitmaps from Type 1 fonts. | |
100 | It is based on the code of the X11 rasteriser of the X11 project. | |
101 | ||
102 | The bitmaps created by t1lib are returned in a data structure with type | |
103 | GLYPH. This special GLYPH-type is also used in the X11 window system to | |
104 | describe character bitmaps. It contains the bitmap data as well as some | |
105 | metric information. But t1lib is in itself entirely independent of the | |
106 | X11-system or any other graphical user interface. ") | |
107 | (license license:gpl2) | |
108 | (home-page "http://www.t1lib.org/"))) | |
e5c0701f AE |
109 | |
110 | (define-public teckit | |
111 | (package | |
112 | (name "teckit") | |
113 | (version "2.5.1") | |
114 | (source (origin | |
115 | (method url-fetch) | |
116 | (uri (string-append | |
117 | "http://scripts.sil.org/svn-view/teckit/TAGS/TECkit_" | |
118 | (string-map (lambda (x) (if (char=? x #\.) #\_ x)) version) | |
119 | ".tar.gz")) | |
120 | (sha256 (base32 | |
121 | "0fjiwvic8mdxpkyccfp7zh26y9xnvkp0skqbyfkrjiacd191k82r")))) | |
122 | (build-system gnu-build-system) | |
123 | (inputs `(("patch/teckit" ,(search-patch "teckit-cstdio.patch")) | |
124 | ("zlib" ,zlib))) | |
125 | (arguments | |
126 | `(#:patches (list (assoc-ref %build-inputs "patch/teckit")))) | |
127 | (synopsis "TECkit, a toolkit for encoding conversions") | |
128 | (description | |
129 | "TECkit is a low-level toolkit intended to be used by other applications | |
130 | that need to perform encoding conversions (e.g., when importing legacy data | |
131 | into a Unicode-based application). The primary component of the TECkit | |
132 | package is therefore a library that performs conversions; this is the | |
133 | \"TECkit engine\". The engine relies on mapping tables in a specific binary | |
134 | format (for which documentation is available); there is a compiler that | |
135 | creates such tables from a human-readable mapping description (a simple | |
136 | text file). | |
137 | ||
138 | To facilitate the development and testing of mapping tables for TECkit, | |
139 | several applications are also included in the current package; these | |
140 | include simple tools for applying conversions to plain-text and Standard | |
141 | Format files, as well as both command-line and simple GUI versions of the | |
142 | TECkit compiler. However, it is not intended that these tools will be the | |
143 | primary means by which end users perform conversions, and they have not | |
144 | been designed, tested, and debugged to the extent that general-purpose | |
145 | applications should be.") | |
146 | (license license:lgpl2.1+) | |
147 | (home-page "http://scripts.sil.org/cms/scripts/page.php?cat_id=teckit"))) |