From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: [PATCH 2/2] gnu: Add 'ttf-liberation'. Date: Tue, 28 Oct 2014 09:53:53 +0300 Message-ID: <87oaswbs72.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48406) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xj0fJ-0001Jj-MT for guix-devel@gnu.org; Tue, 28 Oct 2014 02:54:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xj0fE-0003lY-85 for guix-devel@gnu.org; Tue, 28 Oct 2014 02:54:01 -0400 Received: from mail-lb0-x232.google.com ([2a00:1450:4010:c04::232]:42598) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xj0fD-0003lD-WA for guix-devel@gnu.org; Tue, 28 Oct 2014 02:53:56 -0400 Received: by mail-lb0-f178.google.com with SMTP id f15so38077lbj.23 for ; Mon, 27 Oct 2014 23:53:54 -0700 (PDT) Received: from leviafan (128-74-164-65.broadband.corbina.ru. [128.74.164.65]) by mx.google.com with ESMTPSA id z10sm225326lbo.33.2014.10.27.23.53.54 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Oct 2014 23:53:54 -0700 (PDT) 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@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Not related to this patch: what about renaming =E2=80=98freefont-ttf=E2=80= =99 package into =E2=80=98ttf-freefont=E2=80=99 to make all TrueType fonts have a name = "ttf-=E2=80=A6"? --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0002-gnu-Add-ttf-liberation.patch >From 5cddcfb5939bd783527194381e4a8e107fc39395 Mon Sep 17 00:00:00 2001 From: Alex Kost Date: Tue, 28 Oct 2014 09:44:16 +0300 Subject: [PATCH 2/2] gnu: Add 'ttf-liberation'. * gnu/packages/fonts.scm (ttf-liberation): New variable. --- gnu/packages/fonts.scm | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm index 825395b..94bf79d 100644 --- a/gnu/packages/fonts.scm +++ b/gnu/packages/fonts.scm @@ -203,6 +203,71 @@ package provides the TrueType (TTF) files.") 10646/Unicode UCS (Universal Character Set).") (license license:gpl3+))) +(define-public ttf-liberation + (package + (name "ttf-liberation") + (version "2.00.1") + (source (origin + (method url-fetch) + (uri (string-append "https://fedorahosted.org/releases/l/i/" + "liberation-fonts/liberation-fonts-ttf-" + version ".tar.gz")) + (sha256 + (base32 + "010m4zfqan4w04b6bs9pm3gapn9hsb18bmwwgp2p6y6idj52g43q")))) + (build-system trivial-build-system) + (arguments + `(#:modules ((guix build utils)) + #:builder + (begin + (use-modules (guix build utils)) + + (let ((tar (string-append (assoc-ref %build-inputs "tar") + "/bin/tar")) + (PATH (string-append (assoc-ref %build-inputs "gzip") + "/bin")) + (font-dir (string-append %output "/share/fonts/truetype")) + (doc-dir (string-append %output "/share/doc/" ,name))) + (setenv "PATH" PATH) + (system* tar "xvf" (assoc-ref %build-inputs "source")) + (mkdir-p font-dir) + (mkdir-p doc-dir) + (chdir (string-append "liberation-fonts-ttf-" ,version)) + (for-each (lambda (ttf) + (copy-file ttf + (string-append font-dir "/" + (basename ttf)))) + (find-files "." "\\.ttf$")) + (for-each (lambda (doc) + (copy-file doc + (string-append doc-dir "/" + (basename doc)))) + '("AUTHORS" "ChangeLog" "LICENSE" "README" "TODO")))))) + (native-inputs + `(("source" ,source) + ("tar" ,tar) + ("gzip" ,gzip))) + (home-page "https://fedorahosted.org/liberation-fonts/") + (synopsis + "Fonts compatible with Arial, Times New Roman, and Courier New") + (description + "The Liberation font family aims at metric compatibility with +Arial, Times New Roman, and Courier New. + +There are three sets: + +- Sans (a substitute for Arial, Albany, Helvetica, Nimbus Sans L, and +Bitstream Vera Sans); + +- Serif (a substitute for Times New Roman, Thorndale, Nimbus Roman, and +Bitstream Vera Serif); + +- Mono (a substitute for Courier New, Cumberland, Courier, Nimbus Mono L, +and Bitstream Vera Sans Mono). + +The Liberation Fonts are sponsored by Red Hat.") + (license license:silofl1.1))) + (define-public terminus-font (package (name "terminus-font") -- 2.1.2 --=-=-=--