2013-01-19 11:28:55 +00:00
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
|
|
|
;;; Copyright © 2013 Andreas Enge <andreas@enge.fr>
|
|
|
|
;;;
|
|
|
|
;;; This file is part of GNU Guix.
|
|
|
|
;;;
|
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
|
|
|
;;; under the terms of the GNU General Public License as published by
|
|
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
;;; your option) any later version.
|
|
|
|
;;;
|
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
|
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
;;; GNU General Public License for more details.
|
|
|
|
;;;
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
2013-02-12 12:19:26 +00:00
|
|
|
(define-module (gnu packages fontutils)
|
2013-01-19 11:28:55 +00:00
|
|
|
#:use-module (gnu packages)
|
2013-01-25 23:43:03 +00:00
|
|
|
#:use-module (gnu packages compression)
|
2013-09-25 07:48:13 +00:00
|
|
|
#:use-module (gnu packages ghostscript)
|
2013-01-23 20:10:26 +00:00
|
|
|
#:use-module (gnu packages pkg-config)
|
|
|
|
#:use-module (gnu packages xml)
|
Use #:prefix instead of #:renamer with 'symbol-prefix-proc'.
* gnu/packages/abiword.scm, gnu/packages/admin.scm, gnu/packages/aidc.scm,
gnu/packages/backup.scm, gnu/packages/bittorrent.scm,
gnu/packages/boost.scm, gnu/packages/compression.scm,
gnu/packages/cryptsetup.scm, gnu/packages/curl.scm,
gnu/packages/cyrus-sasl.scm, gnu/packages/dc.scm, gnu/packages/emacs.scm,
gnu/packages/fonts.scm, gnu/packages/fontutils.scm, gnu/packages/geeqie.scm,
gnu/packages/ghostscript.scm, gnu/packages/gimp.scm,
gnu/packages/gkrellm.scm, gnu/packages/gl.scm, gnu/packages/glib.scm,
gnu/packages/gnome.scm, gnu/packages/gnunet.scm, gnu/packages/gnupg.scm,
gnu/packages/gnutls.scm, gnu/packages/gnuzilla.scm, gnu/packages/gsasl.scm,
gnu/packages/gtk.scm, gnu/packages/gv.scm, gnu/packages/image.scm,
gnu/packages/indent.scm, gnu/packages/inkscape.scm,
gnu/packages/lesstif.scm, gnu/packages/links.scm, gnu/packages/lisp.scm,
gnu/packages/lsh.scm, gnu/packages/lsof.scm, gnu/packages/maths.scm,
gnu/packages/mp3.scm, gnu/packages/openssl.scm, gnu/packages/ots.scm,
gnu/packages/pciutils.scm, gnu/packages/pcre.scm, gnu/packages/pdf.scm,
gnu/packages/pulseaudio.scm, gnu/packages/python.scm, gnu/packages/slim.scm,
gnu/packages/ssh.scm, gnu/packages/texlive.scm, gnu/packages/vim.scm,
gnu/packages/vpn.scm, gnu/packages/web.scm, gnu/packages/wv.scm,
gnu/packages/xiph.scm, gnu/packages/xml.scm, gnu/packages/xorg.scm,
gnu/packages/yasm.scm, gnu/packages/zip.scm,
guix/build/cmake-build-system.scm, guix/build/perl-build-system.scm,
guix/build/python-build-system.scm, guix/download.scm: Replaces uses of
#:renamer and 'symbol-prefix-proc' with #:prefix.
2014-09-23 20:44:22 +00:00
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
2013-01-19 11:28:55 +00:00
|
|
|
#:use-module (guix packages)
|
|
|
|
#:use-module (guix download)
|
|
|
|
#:use-module (guix build-system gnu))
|
|
|
|
|
|
|
|
(define-public freetype
|
|
|
|
(package
|
|
|
|
(name "freetype")
|
|
|
|
(version "2.4.11")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
2013-05-06 21:48:36 +00:00
|
|
|
(uri (string-append "mirror://savannah/freetype/freetype-"
|
|
|
|
version ".tar.gz"))
|
2013-01-19 11:28:55 +00:00
|
|
|
(sha256 (base32
|
|
|
|
"0gpcz6swir64kp0dk3rwgqqkmf48b90dqgczdmznjjryhrahx9r9"))))
|
|
|
|
(build-system gnu-build-system)
|
2013-03-31 12:50:10 +00:00
|
|
|
(arguments
|
|
|
|
`(#:phases
|
|
|
|
(alist-replace
|
|
|
|
'install
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys #:rest args)
|
|
|
|
(let ((install (assoc-ref %standard-phases 'install))
|
|
|
|
(include (string-append (assoc-ref outputs "out") "/include")))
|
|
|
|
(apply install args)
|
|
|
|
;; Unravel one directory, since ft2build.h includes directly from
|
|
|
|
;; freetype/, not freetype2/freetype; this is announced in the file
|
|
|
|
;; to be changed in a future release.
|
|
|
|
(symlink (string-append include "/freetype2/freetype")
|
|
|
|
(string-append include "/freetype"))))
|
|
|
|
%standard-phases)))
|
2013-01-19 11:28:55 +00:00
|
|
|
(synopsis "Freetype, a library to render fonts")
|
|
|
|
(description
|
|
|
|
"Freetype is a library that can be used by applications to access the
|
|
|
|
contents of font files. It provides a uniform interface to access font files.
|
|
|
|
It supports both bitmap and scalable formats, including TrueType, OpenType,
|
|
|
|
Type1, CID, CFF, Windows FON/FNT, X11 PCF, and others. It supports high-speed
|
|
|
|
anti-aliased glyph bitmap generation with 256 gray levels.")
|
2013-01-19 21:31:17 +00:00
|
|
|
(license license:freetype) ; some files have other licenses
|
2013-01-19 11:28:55 +00:00
|
|
|
(home-page "http://www.freetype.org/")))
|
2013-01-23 20:10:26 +00:00
|
|
|
|
|
|
|
(define-public fontconfig
|
|
|
|
(package
|
|
|
|
(name "fontconfig")
|
2013-08-05 21:15:25 +00:00
|
|
|
(version "2.10.93")
|
2013-01-23 20:10:26 +00:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append
|
|
|
|
"http://www.freedesktop.org/software/fontconfig/release/fontconfig-"
|
|
|
|
version ".tar.bz2"))
|
|
|
|
(sha256 (base32
|
2013-08-05 21:15:25 +00:00
|
|
|
"172j5vsgx2xplsk5mrxrspbn5lrswq6gnxkxjgcrx0j8i0kiz47a"))))
|
2013-01-23 20:10:26 +00:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(inputs `(("expat" ,expat)
|
|
|
|
("freetype" ,freetype)
|
gnu: Move numerous "inputs" which should be "native-inputs".
* gnu/packages/avahi.scm, gnu/packages/cdrom.scm, gnu/packages/cryptsetup.scm,
gnu/packages/curl.scm, gnu/packages/emacs.scm, gnu/packages/fontutils.scm,
gnu/packages/gdb.scm, gnu/packages/geeqie.scm, gnu/packages/ghostscript.scm,
gnu/packages/glib.scm, gnu/packages/gnome.scm, gnu/packages/gnunet.scm,
gnu/packages/gnupg.scm, gnu/packages/gnuzilla.scm, gnu/packages/graphviz.scm,
gnu/packages/groff.scm, gnu/packages/gstreamer.scm, gnu/packages/gtk.scm,
gnu/packages/gv.scm, gnu/packages/imagemagick.scm, gnu/packages/irssi.scm,
gnu/packages/kde.scm, gnu/packages/libcanberra.scm, gnu/packages/libtiff.scm,
gnu/packages/linux.scm, gnu/packages/lvm.scm, gnu/packages/mp3.scm,
gnu/packages/netpbm.scm, gnu/packages/parted.scm, gnu/packages/pdf.scm,
gnu/packages/pulseaudio.scm, gnu/packages/qemu.scm, gnu/packages/qt.scm,
gnu/packages/ratpoison.scm, gnu/packages/rdf.scm, gnu/packages/slim.scm,
gnu/packages/texlive.scm, gnu/packages/version-control.scm,
gnu/packages/video.scm, gnu/packages/vpn.scm, gnu/packages/w3m.scm,
gnu/packages/xml.scm, gnu/packages/xnee.scm, gnu/packages/xorg.scm,
gnu/packages/zip.scm: Move some build-time dependencies from `inputs' to
`native-inputs'.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2013-12-15 11:01:56 +00:00
|
|
|
("gs-fonts" ,gs-fonts)))
|
|
|
|
(native-inputs
|
|
|
|
`(("pkg-config" ,pkg-config)))
|
2013-08-05 18:22:50 +00:00
|
|
|
(arguments
|
|
|
|
`(#:configure-flags
|
2013-09-25 07:48:13 +00:00
|
|
|
;; point to user profile instead of /usr/share/fonts in /etc/fonts.conf
|
|
|
|
(list "--with-default-fonts=~/.guix-profile/share/fonts"
|
|
|
|
;; register gs-fonts
|
|
|
|
(string-append "--with-add-fonts="
|
|
|
|
(assoc-ref %build-inputs "gs-fonts")
|
|
|
|
"/share/fonts"))))
|
2014-09-13 13:50:30 +00:00
|
|
|
(synopsis "Library for configuring and customizing font access")
|
2013-01-23 20:10:26 +00:00
|
|
|
(description
|
|
|
|
"Fontconfig can discover new fonts when installed automatically;
|
|
|
|
perform font name substitution, so that appropriate alternative fonts can
|
|
|
|
be selected if fonts are missing;
|
|
|
|
identify the set of fonts required to completely cover a set of languages;
|
|
|
|
have GUI configuration tools built as it uses an XML-based configuration file;
|
|
|
|
efficiently and quickly find needed fonts among the set of installed fonts;
|
|
|
|
be used in concert with the X Render Extension and FreeType to implement
|
|
|
|
high quality, anti-aliased and subpixel rendered text on a display.")
|
|
|
|
; The exact license is more X11-style than BSD-style.
|
|
|
|
(license (license:bsd-style "file://COPYING"
|
|
|
|
"See COPYING in the distribution."))
|
|
|
|
(home-page "http://www.freedesktop.org/wiki/Software/fontconfig")))
|
2013-01-23 21:56:04 +00:00
|
|
|
|
|
|
|
(define-public t1lib
|
|
|
|
(package
|
|
|
|
(name "t1lib")
|
|
|
|
(version "5.1.2")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri "ftp://sunsite.unc.edu/pub/Linux/libs/graphics/t1lib-5.1.2.tar.gz")
|
|
|
|
(sha256 (base32
|
|
|
|
"0nbvjpnmcznib1nlgg8xckrmsw3haa154byds2h90y2g0nsjh4w2"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
|
|
|
;; Making the documentation requires latex, but t1lib is also an input
|
|
|
|
;; for building texlive.
|
|
|
|
`(#:tests? #f ; no test target
|
|
|
|
#:make-flags
|
|
|
|
'("without_doc")))
|
2014-09-13 13:50:30 +00:00
|
|
|
(synopsis "Library for generating bitmaps from Type 1 fonts")
|
2013-01-23 21:56:04 +00:00
|
|
|
(description
|
|
|
|
"T1lib is a library for generating/rasterising bitmaps from Type 1 fonts.
|
|
|
|
It is based on the code of the X11 rasteriser of the X11 project.
|
|
|
|
|
|
|
|
The bitmaps created by t1lib are returned in a data structure with type
|
|
|
|
GLYPH. This special GLYPH-type is also used in the X11 window system to
|
|
|
|
describe character bitmaps. It contains the bitmap data as well as some
|
|
|
|
metric information. But t1lib is in itself entirely independent of the
|
|
|
|
X11-system or any other graphical user interface. ")
|
|
|
|
(license license:gpl2)
|
|
|
|
(home-page "http://www.t1lib.org/")))
|
2013-01-25 23:43:03 +00:00
|
|
|
|
|
|
|
(define-public teckit
|
|
|
|
(package
|
|
|
|
(name "teckit")
|
|
|
|
(version "2.5.1")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append
|
|
|
|
"http://scripts.sil.org/svn-view/teckit/TAGS/TECkit_"
|
|
|
|
(string-map (lambda (x) (if (char=? x #\.) #\_ x)) version)
|
|
|
|
".tar.gz"))
|
|
|
|
(sha256 (base32
|
gnu: Use the 'patches' field of <origin>.
* gnu/packages/apr.scm,
gnu/packages/autotools.scm,
gnu/packages/avahi.scm,
gnu/packages/cdrom.scm,
gnu/packages/cmake.scm,
gnu/packages/cpio.scm,
gnu/packages/cross-base.scm,
gnu/packages/emacs.scm,
gnu/packages/flex.scm,
gnu/packages/fontutils.scm,
gnu/packages/glib.scm,
gnu/packages/grub.scm,
gnu/packages/guile.scm,
gnu/packages/idutils.scm,
gnu/packages/libevent.scm,
gnu/packages/linux.scm,
gnu/packages/mail.scm,
gnu/packages/make-bootstrap.scm,
gnu/packages/mp3.scm,
gnu/packages/oggvorbis.scm,
gnu/packages/pdf.scm,
gnu/packages/plotutils.scm,
gnu/packages/qemu.scm,
gnu/packages/recutils.scm,
gnu/packages/rush.scm,
gnu/packages/scheme.scm,
gnu/packages/system.scm,
gnu/packages/tcsh.scm,
gnu/packages/valgrind.scm,
gnu/packages/vpn.scm,
gnu/packages/w3m: Use the 'patches' field of <origin> instead of
adding a patch as input plus using #:patches.
2013-10-08 22:09:04 +00:00
|
|
|
"0fjiwvic8mdxpkyccfp7zh26y9xnvkp0skqbyfkrjiacd191k82r"))
|
|
|
|
(patches (list (search-patch "teckit-cstdio.patch")))))
|
2013-01-25 23:43:03 +00:00
|
|
|
(build-system gnu-build-system)
|
gnu: Use the 'patches' field of <origin>.
* gnu/packages/apr.scm,
gnu/packages/autotools.scm,
gnu/packages/avahi.scm,
gnu/packages/cdrom.scm,
gnu/packages/cmake.scm,
gnu/packages/cpio.scm,
gnu/packages/cross-base.scm,
gnu/packages/emacs.scm,
gnu/packages/flex.scm,
gnu/packages/fontutils.scm,
gnu/packages/glib.scm,
gnu/packages/grub.scm,
gnu/packages/guile.scm,
gnu/packages/idutils.scm,
gnu/packages/libevent.scm,
gnu/packages/linux.scm,
gnu/packages/mail.scm,
gnu/packages/make-bootstrap.scm,
gnu/packages/mp3.scm,
gnu/packages/oggvorbis.scm,
gnu/packages/pdf.scm,
gnu/packages/plotutils.scm,
gnu/packages/qemu.scm,
gnu/packages/recutils.scm,
gnu/packages/rush.scm,
gnu/packages/scheme.scm,
gnu/packages/system.scm,
gnu/packages/tcsh.scm,
gnu/packages/valgrind.scm,
gnu/packages/vpn.scm,
gnu/packages/w3m: Use the 'patches' field of <origin> instead of
adding a patch as input plus using #:patches.
2013-10-08 22:09:04 +00:00
|
|
|
(inputs `(("zlib" ,zlib)))
|
2013-01-25 23:43:03 +00:00
|
|
|
(synopsis "TECkit, a toolkit for encoding conversions")
|
|
|
|
(description
|
|
|
|
"TECkit is a low-level toolkit intended to be used by other applications
|
|
|
|
that need to perform encoding conversions (e.g., when importing legacy data
|
|
|
|
into a Unicode-based application). The primary component of the TECkit
|
|
|
|
package is therefore a library that performs conversions; this is the
|
|
|
|
\"TECkit engine\". The engine relies on mapping tables in a specific binary
|
|
|
|
format (for which documentation is available); there is a compiler that
|
|
|
|
creates such tables from a human-readable mapping description (a simple
|
|
|
|
text file).
|
|
|
|
|
|
|
|
To facilitate the development and testing of mapping tables for TECkit,
|
|
|
|
several applications are also included in the current package; these
|
|
|
|
include simple tools for applying conversions to plain-text and Standard
|
|
|
|
Format files, as well as both command-line and simple GUI versions of the
|
|
|
|
TECkit compiler. However, it is not intended that these tools will be the
|
|
|
|
primary means by which end users perform conversions, and they have not
|
|
|
|
been designed, tested, and debugged to the extent that general-purpose
|
|
|
|
applications should be.")
|
|
|
|
(license license:lgpl2.1+)
|
|
|
|
(home-page "http://scripts.sil.org/cms/scripts/page.php?cat_id=teckit")))
|