From patchwork Fri Aug 12 00:39:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Dylan Jeffers X-Patchwork-Id: 14513 Received: (qmail 35397 invoked by uid 89); 12 Aug 2016 00:40:30 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.99.1 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy=11, 7, Dmitry, conforming X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: X-HELO: lists.gnu.org Received: from lists.gnu.org (HELO lists.gnu.org) (208.118.235.17) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 12 Aug 2016 00:40:17 +0000 Received: from localhost ([::1]:51020 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bY0WG-0001Il-2A for patchwork@sourceware.org; Thu, 11 Aug 2016 20:40:16 -0400 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 Received: by mail2.openmailbox.org (Postfix, from userid 1001) id 9652B10E8C5; Fri, 12 Aug 2016 02:40:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=openmailbox.org; s=openmailbox; t=1470962405; bh=gtLwymKvOV52RMM2M7r6FqNsmr92qLtHjhjesfXyGps=; h=Date:From:To:Subject:From; b=ujWNEHXk+cTE+ydS6Bd6tMP9auDY4lgashjFZdb1qBqo5RA3n4aCccR/Psyedivoy 5+b9/NOeWjSyRt964Oum95iK/lzqkS/w1VitVcHWKsYgDAl0yYgAMqEPC2GE33iXd4 +MFFI5o7nsOqgxBZrk3sIWHIxrQEo5WZgak/fDRI= Date: Thu, 11 Aug 2016 17:39:39 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=openmailbox.org; s=openmailbox; t=1470962404; bh=gtLwymKvOV52RMM2M7r6FqNsmr92qLtHjhjesfXyGps=; h=Date:From:To:Subject:From; b=VFYFw/2atazRL8VFkYqM9aYaS6S/L6vKe38ItzdZ004MD6LaEgDjg++6MecIntsrW cY0jG7Uprr0Kq16lonlMZOrXI8TY/IfRf4Up55GFR9r6/AqOOE0qviK/aLGl2jXzcs hQaQveGkTlapWX8YEnJ2RAh6uBDQWKr+Ig5iGgI0= From: Dylan Jeffers To: guix-devel@gnu.org Subject: [PATCH 1/2] font-adobe-source-code-pro Message-ID: <20160811173939.0d362bcc@openmailbox.org> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.28; x86_64-unknown-linux-gnu) MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 62.4.1.33 X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list 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+patchwork=sourceware.org@gnu.org Sender: "Guix-devel" Hi all, Updated font patch conforming to all recommended guidelines. Best, Dylan From 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 © 2016 Jookia <166291@gmail.com> ;;; Copyright © 2016 Eric Bavier ;;; Copyright © 2016 Dmitry Nikolaev +;;; Copyright © 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))) +(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/archive/" + 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") -- 2.7.3