From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: [PATCH] Add TeX Gyre fonts. Date: Sun, 30 Aug 2015 20:00:57 +0200 Message-ID: <87zj18hd0m.fsf@elephly.net> References: <871tekirrc.fsf@elephly.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52692) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZW6un-0005rL-Kz for guix-devel@gnu.org; Sun, 30 Aug 2015 14:01:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZW6ui-0007pX-Le for guix-devel@gnu.org; Sun, 30 Aug 2015 14:01:13 -0400 Received: from sender163-mail.zoho.com ([74.201.84.163]:25501) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZW6ui-0007p0-D3 for guix-devel@gnu.org; Sun, 30 Aug 2015 14:01:08 -0400 In-reply-to: <871tekirrc.fsf@elephly.net> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit > Attached is a patch to add the TeX Gyre font collection in OTF format. > There is another archive available for download which includes a lot > more formats and documentation, but I think this flat zip file with the > OTF files is sufficient. The indentation in the second patch was wrong and the description misleading, so here’s an updated version: --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=0002-gnu-Add-TeX-Gyre-fonts.patch Content-Transfer-Encoding: 8bit >From f00ce9715045a73a91814d41da665640ace820fc Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Sun, 30 Aug 2015 19:52:55 +0200 Subject: [PATCH 2/2] gnu: Add TeX Gyre fonts. * gnu/packages/fonts.scm (font-tex-gyre): New variable. --- gnu/packages/fonts.scm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm index 62d44ec..a78995c 100644 --- a/gnu/packages/fonts.scm +++ b/gnu/packages/fonts.scm @@ -5,6 +5,7 @@ ;;; Copyright © 2014 Alex Kost ;;; Copyright © 2015 Sou Bunnbu ;;; Copyright © 2015 Eric Dvorsak +;;; Copyright © 2015 Ricardo Wurmus ;;; ;;; This file is part of GNU Guix. ;;; @@ -486,3 +487,40 @@ code-points needed for zh_cn, zh_sg, zh_tw, zh_hk, zh_mo, ja (Japanese) and ko (Korean) locales for fontconfig.") ;; GPLv2 with font embedding exception (license license:gpl2))) + +(define-public font-tex-gyre + (package + (name "font-tex-gyre") + (version "2.005") + (source + (origin + (method url-fetch) + (uri (string-append "http://www.gust.org.pl/projects/e-foundry/" + "tex-gyre/whole/tg-" version "otf.zip")) + (sha256 + (base32 + "0kph9l3g7jb2bpmxdbdg5zl56wacmnvdvsdn7is1gc750sqvsn31")))) + (build-system trivial-build-system) + (arguments + `(#:modules ((guix build utils)) + #:builder + (begin + (use-modules (guix build utils)) + + (let ((unzip (string-append (assoc-ref %build-inputs "unzip") + "/bin/unzip")) + (font-dir (string-append %output "/share/fonts/opentype"))) + (mkdir-p font-dir) + (system* unzip + (assoc-ref %build-inputs "source") + "-d" font-dir))))) + (native-inputs + `(("unzip" ,unzip))) + (home-page "http://www.gust.org.pl/projects/e-foundry/tex-gyre/") + (synopsis "Remake of Ghostscript fonts") + (description "The TeX Gyre collection of fonts is the result of an +extensive remake and extension of the freely available base PostScript fonts +distributed with Ghostscript version 4.00. The collection contains the +following fonts in the OpenType format: Adventor, Bonum, Chorus, Cursor, +Heros, Pagella, Schola, Termes.") + (license license:gfl1.0))) -- 2.5.0 --=-=-=--