From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: [PATCH 1/1] gnu: Add Anonymous Pro fonts. Date: Thu, 3 Sep 2015 17:53:51 -0400 Message-ID: <34a86144647a1256576bbae73b07aecd0a4a45b2.1441316869.git.leo@famulari.name> References: Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33680) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXcRM-0005Lf-6s for guix-devel@gnu.org; Thu, 03 Sep 2015 17:53:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZXcRH-000841-7S for guix-devel@gnu.org; Thu, 03 Sep 2015 17:53:04 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:42029) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXcRH-00083n-1U for guix-devel@gnu.org; Thu, 03 Sep 2015 17:52:59 -0400 Received: from jasmine.lan (c-69-249-5-231.hsd1.pa.comcast.net [69.249.5.231]) by mail.messagingengine.com (Postfix) with ESMTPA id 57D9C680130 for ; Thu, 3 Sep 2015 17:52:57 -0400 (EDT) In-Reply-To: In-Reply-To: References: 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 * gnu/packages/fonts.scm (font-anonymous-pro): New variable. --- gnu/packages/fonts.scm | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm index a78995c..75e6fe8 100644 --- a/gnu/packages/fonts.scm +++ b/gnu/packages/fonts.scm @@ -524,3 +524,45 @@ 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))) + +(define-public font-anonymous-pro + (package + (name "font-anonymous-pro") + (version "1.002") + (source (origin + (method url-fetch) + (uri (string-append "http://www.marksimonson.com/assets/content/fonts/" + "AnonymousPro-" version ".zip")) + (sha256 + (base32 "1asj6lykvxh46czbal7ymy2k861zlcdqpz8x3s5bbpqwlm3mhrl6")))) + (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/truetype")) + (doc-dir (string-append %output "/share/doc/" ,name))) + (system* unzip (assoc-ref %build-inputs "source")) + (mkdir-p font-dir) + (mkdir-p doc-dir) + (chdir (string-append "AnonymousPro-" ,version ".001")) + (for-each (lambda (ttf) + (copy-file ttf + (string-append font-dir "/" ttf))) + (find-files "." "\\.ttf$")) + (for-each (lambda (doc) + (copy-file doc + (string-append doc-dir "/" doc))) + (find-files "." "\\.txt$")))))) + (native-inputs + `(("unzip" ,unzip))) + (home-page "http://www.marksimonson.com/fonts/view/anonymous-pro") + (synopsis "Fixed-width fonts designed with coding in mind") + (description "Anonymous Pro is a family of four fixed-width fonts designed +with coding in mind. Anonymous Pro features an international, Unicode-based +character set, with support for most Western and Central European Latin-based +languages, plus Greek and Cyrillic.") + (license license:silofl1.1))) -- 2.4.3