From mboxrd@z Thu Jan 1 00:00:00 1970 From: ericbavier@openmailbox.org Subject: [PATCH 7/9] gnu: Add font-fantasque-sans. Date: Tue, 5 Apr 2016 23:32:59 -0500 Message-ID: <1459917181-19626-7-git-send-email-ericbavier@openmailbox.org> References: <1459917181-19626-1-git-send-email-ericbavier@openmailbox.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34751) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1anfAH-0007Ey-6J for guix-devel@gnu.org; Wed, 06 Apr 2016 00:34:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1anfAD-0000kp-Fz for guix-devel@gnu.org; Wed, 06 Apr 2016 00:34:01 -0400 Received: from smtp20.openmailbox.org ([62.4.1.54]:34515) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1anfAD-0000kS-9X for guix-devel@gnu.org; Wed, 06 Apr 2016 00:33:57 -0400 In-Reply-To: <1459917181-19626-1-git-send-email-ericbavier@openmailbox.org> 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 Cc: Eric Bavier From: Eric Bavier * gnu/packages/fonts.scm (font-fantasque-sans): New variable. --- gnu/packages/fonts.scm | 47 ++++++++++++++++++++++++++++++++++++++++++++= +++ 1 file changed, 47 insertions(+) diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm index 3d75591..2ed11d4 100644 --- a/gnu/packages/fonts.scm +++ b/gnu/packages/fonts.scm @@ -8,6 +8,7 @@ ;;; Copyright =C2=A9 2015 Ricardo Wurmus ;;; Copyright =C2=A9 2016 Nils Gillmann ;;; Copyright =C2=A9 2016 Jookia <166291@gmail.com> +;;; Copyright =C2=A9 2016 Eric Bavier ;;; ;;; This file is part of GNU Guix. ;;; @@ -759,3 +760,49 @@ It contains the following fonts and styles: @item UnGungseo: cursive, brush-stroke. @end enumerate\n") (license license:gpl2+))) + +(define-public font-fantasque-sans + (package + (name "font-fantasque-sans") + (version "1.7.0") + (source + (origin + (method url-fetch) + (uri (string-append "https://github.com/belluzj/fantasque-sans/" + "archive/v" version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1nr5sy34ih3hlf1fkcrp398k4vpcsvl0yfy6kv50jirrjfy66d1h")))) + (build-system gnu-build-system) + (native-inputs + `(("ttfautohint" ,ttfautohint) + ("woff-tools" ,woff-tools) + ("fontforge" ,fontforge) + ("woff2" ,woff2) + ("ttf2eot" ,ttf2eot))) + (arguments + `(#:tests? #f ;test target intended for visual insp= ection + #:phases (modify-phases %standard-phases + (delete 'configure) ;no configuration + (replace 'install + ;; 'make install' wants to install to ~/.fonts, inst= all to + ;; output instead. + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (font-dir (string-append out "/share/fonts"= )) + (truetype-dir (string-append font-dir "/tru= etype")) + (opentype-dir (string-append font-dir "/ope= ntype")) + (webfonts-dir (string-append font-dir "/web= fonts"))) + (copy-recursively "OTF" opentype-dir) + (for-each (lambda (f) (install-file f truetype-d= ir)) + (find-files "." "\\.ttf$")) + (copy-recursively "Webfonts" webfonts-dir) + #t)))))) + (synopsis "Font family with a monospaced variant for programmers") + (description + "Fantasque Sans Mono is a programming font designed with functional= ity in +mind. The font includes a bold version and a good italic version with n= ew +glyph designs, not just an added slant.") + (home-page "https://fontlibrary.org/en/font/fantasque-sans-mono") + (license license:silofl1.1))) --=20 2.7.3