From 319e2d1736a6a85ae9c721a8516b7a2dac3c9c07 Mon Sep 17 00:00:00 2001 From: Andreas Enge Date: Sat, 27 Sep 2014 23:47:05 +0200 Subject: gnu: Add graphite2. * gnu/packages/fontutils.scm (graphite2): New variable. --- gnu/packages/fontutils.scm | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/gnu/packages/fontutils.scm b/gnu/packages/fontutils.scm index 3b835760ce..5310f3cbe4 100644 --- a/gnu/packages/fontutils.scm +++ b/gnu/packages/fontutils.scm @@ -1,5 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright © 2013 Andreas Enge +;;; Copyright © 2013, 2014 Andreas Enge ;;; ;;; This file is part of GNU Guix. ;;; @@ -20,11 +20,14 @@ (define-module (gnu packages fontutils) #:use-module (gnu packages) #:use-module (gnu packages compression) #:use-module (gnu packages ghostscript) + #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) + #:use-module (gnu packages python) #:use-module (gnu packages xml) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix download) + #:use-module (guix build-system cmake) #:use-module (guix build-system gnu)) (define-public freetype @@ -167,3 +170,30 @@ (define-public teckit applications should be.") (license license:lgpl2.1+) (home-page "http://scripts.sil.org/cms/scripts/page.php?cat_id=teckit"))) + +(define-public graphite2 + (package + (name "graphite2") + (version "1.2.4") + (source + (origin + (method url-fetch) + (uri (string-append + "mirror://sourceforge/silgraphite/graphite2/graphite2-" + version ".tgz")) + (sha256 + (base32 + "00xhv1mp640fr3wmdzwn4yz0g56jd4r9fb7b02mc1g19h0bdbhsb")))) + (build-system cmake-build-system) + (inputs + `(("freetype" ,freetype) + ("perl" ,perl) + ("python" ,python-2))) ; because of "import imap" in tests + (synopsis "reimplementation of the SIL Graphite text processing engine") + (description + "Graphite2 is a reimplementation of the SIL Graphite text processing +engine. Graphite is a smart font technology designed to facilitate the +process known as shaping. This process takes an input Unicode text string +and returns a sequence of positioned glyphids from the font.") + (license license:lgpl2.1+) + (home-page "http://projects.palaso.org/projects/graphitedev"))) -- cgit v1.2.3