From d41bb065c8676b50e25eb1aa59cdb7e0d4a39755 Mon Sep 17 00:00:00 2001 From: Guy Grant Date: Tue, 12 Aug 2014 20:33:58 -0500 Subject: gnu: Add terminus-font. * gnu/packages/fonts.scm (terminus-font): New variable. --- gnu/packages/fonts.scm | 45 ++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm index 8ec59e4d0e..7802d364dd 100644 --- a/gnu/packages/fonts.scm +++ b/gnu/packages/fonts.scm @@ -1,6 +1,7 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2013 Ludovic Courtès ;;; Copyright © 2014 Mark H Weaver +;;; Copyright © 2014 Guy Grant ;;; ;;; This file is part of GNU Guix. ;;; @@ -22,10 +23,14 @@ (define-module (gnu packages fonts) #:renamer (symbol-prefix-proc 'license:)) #:use-module (guix packages) #:use-module (guix download) + #:use-module (guix build-system gnu) #:use-module (guix build-system trivial) #:use-module ((gnu packages base) #:select (tar)) - #:use-module (gnu packages compression)) + #:use-module (gnu packages compression) + #:use-module (gnu packages perl) + #:use-module (gnu packages xorg) + #:use-module (gnu packages pkg-config)) (define-public ttf-dejavu (package @@ -198,3 +203,41 @@ (define-public freefont-ttf (PostScript Type0, TrueType, OpenType...) fonts covering the ISO 10646/Unicode UCS (Universal Character Set).") (license license:gpl3+))) + +(define-public terminus-font + (package + (name "terminus-font") + (version "4.39") + (source + (origin + (method url-fetch) + (uri (string-append + "mirror://sourceforge/project/terminus-font/terminus-font-" + version + "/terminus-font-" + version + ".tar.gz")) + (sha256 + (base32 + "1gzmn7zakvy6yrvmswyjfklnsvqrjm0imhq8rjws8rdkhqwkh21i")))) + (build-system gnu-build-system) + (native-inputs + `(("pkg-config" ,pkg-config) + ("perl" ,perl) + ("bdftopcf" ,bdftopcf) + ("font-util", font-util) + ("mkfontdir" ,mkfontdir))) + (arguments + `(#:configure-flags (list + ;; install fonts into subdirectory of package output + ;; instead of font-util-?.?.?/share/fonts/X11 + (string-append "--with-fontrootdir=" + %output "/share/fonts/X11")) + #:tests? #f)) ;; No test target in tarball + (home-page "http://terminus-font.sourceforge.net/") + (synopsis "Simple bitmap programming font") + (description "Terminus Font is a clean, fixed width bitmap font, designed +for long (8 and more hours per day) work with computers.") + (license + (license:x11-style + "http://scripts.sil.org/cms/scripts/page.php?item_id=OFL_web")))) -- cgit v1.2.3