From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dylan Jeffers Subject: [PATCH 1/2] font-adobe-source-code-pro Date: Thu, 11 Aug 2016 17:39:39 -0700 Message-ID: <20160811173939.0d362bcc@openmailbox.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/yJnC1K6WTgV=tFxgyC=ysVA" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60175) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bY0WB-0001Gp-L2 for guix-devel@gnu.org; Thu, 11 Aug 2016 20:40:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bY0W7-0000ME-E0 for guix-devel@gnu.org; Thu, 11 Aug 2016 20:40:10 -0400 Received: from mail2.openmailbox.org ([62.4.1.33]:43849) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bY0W7-0000Kd-3x for guix-devel@gnu.org; Thu, 11 Aug 2016 20:40:07 -0400 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" To: guix-devel@gnu.org --MP_/yJnC1K6WTgV=tFxgyC=ysVA Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi all, Updated font patch conforming to all recommended guidelines. Best, Dylan --MP_/yJnC1K6WTgV=tFxgyC=ysVA Content-Type: text/x-patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=font.patch =46rom e34aae393fda095251fff0fee261350bd5f19fa3 Mon Sep 17 00:00:00 2001 From: Dylan Jeffers Date: Thu, 11 Aug 2016 13:59:55 -0700 Subject: [PATCH] gnu: Add font-adobe-source-code-pro. * gnu/packages/fonts.scm (font-adobe-source-code-pro): New variable. --- gnu/packages/fonts.scm | 48 ++++++++++++++++++++++++++++++++++++++++++++++= ++ 1 file changed, 48 insertions(+) diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm index 9b2281a..5b75f5a 100644 --- a/gnu/packages/fonts.scm +++ b/gnu/packages/fonts.scm @@ -11,6 +11,7 @@ ;;; Copyright =C2=A9 2016 Jookia <166291@gmail.com> ;;; Copyright =C2=A9 2016 Eric Bavier ;;; Copyright =C2=A9 2016 Dmitry Nikolaev +;;; Copyright =C2=A9 2016 Dylan Jeffers ;;; ;;; This file is part of GNU Guix. ;;; @@ -414,6 +415,53 @@ The Liberation Fonts are sponsored by Red Hat.") for long (8 and more hours per day) work with computers.") (license license:silofl1.1))) =20 +(define-public font-adobe-source-code-pro + (package + (name "font-adobe-source-code-pro") + (version "2.030") + (source (origin + (method url-fetch) + (uri (string-append + "https://github.com/adobe-fonts/source-code-pro/archiv= e/" + version "R-ro/1.050R-it.tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0arhhsf3i7ss39ykn73d1j8k4n8vx7115xph6jwkd970p1cxvr54")))) + (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"))) + (setenv "PATH" PATH) + (system* tar "xvf" (assoc-ref %build-inputs "source")) + (mkdir-p font-dir) + (chdir (string-append "source-code-pro-" ,version + "R-ro-1.050R-it/TTF/")) + (for-each (lambda (ttf) + (copy-file ttf + (string-append font-dir "/" + (basename ttf)))) + (find-files "." "\\.ttf$")))))) + (native-inputs + `(("gzip" ,gzip) + ("tar" ,tar))) + (home-page "https://adobe-fonts.github.io/source-code-pro/") + (synopsis "Adobe's Source-Code-Pro TTF") + (description + "Source Code Pro is a set of OpenType fonts that have been designed +to work well in user interface (UI) environments.") + (license license:silofl1.1))) + (define-public font-adobe-source-han-sans (package (name "font-adobe-source-han-sans") --=20 2.7.3 --MP_/yJnC1K6WTgV=tFxgyC=ysVA--