From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: Re: [PATCH] gnu: Add font-awesome. Date: Mon, 30 Jan 2017 06:38:35 +0000 Message-ID: <87wpddnjbo.fsf@wasp.i-did-not-set--mail-host-address--so-tickle-me> References: <09fd8a61-51cb-b884-27b5-65795c639034@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]:36566) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cY5aZ-0000Yi-Hr for guix-devel@gnu.org; Mon, 30 Jan 2017 01:37:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cY5aW-000210-BD for guix-devel@gnu.org; Mon, 30 Jan 2017 01:37:19 -0500 Received: from perdizione.investici.org ([2001:41d0:2:33d0::19]:63063) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cY5aW-0001yy-1y for guix-devel@gnu.org; Mon, 30 Jan 2017 01:37:16 -0500 In-Reply-To: <09fd8a61-51cb-b884-27b5-65795c639034@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" To: Jose Miguel =?utf-8?Q?S=C3=A1nchez_Garc=C3=ADa?= , guix-devel@gnu.org Jose Miguel S=C3=A1nchez Garc=C3=ADa writes: > -- > > Jos=C3=A9 Miguel S=C3=A1nchez Garc=C3=ADa > > From d4eb96046e2bd0538b16880295a5cd05275de7f8 Mon Sep 17 00:00:00 2001 > From: =3D?UTF-8?q?Jos=3DC3=3DA9=3D20Miguel=3D20S=3DC3=3DA1nchez=3D20Gar= c=3DC3=3DADa?=3D > > Date: Sat, 28 Jan 2017 13:42:09 +0100 > Subject: [PATCH] gnu: Add font-awesome. > > * gnu/packages/fonts.scm (font-awesome): New variable. Cool, thanks :) > --- > gnu/packages/fonts.scm | 38 ++++++++++++++++++++++++++++++++++++++ > 1 file changed, 38 insertions(+) > > diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm > index 29ae579ba..a72c2df79 100644 > --- a/gnu/packages/fonts.scm > +++ b/gnu/packages/fonts.scm > @@ -15,6 +15,7 @@ > ;;; Copyright =C2=A9 2016 Marius Bakke > ;;; Copyright =C2=A9 2016 Toni Reina > ;;; Copyright =C2=A9 2017 Tobias Geerinckx-Rice > +;;; Copyright =C2=A9 2017 Jos=C3=A9 Miguel S=C3=A1nchez Garc=C3=ADa > ;;; > ;;; This file is part of GNU Guix. > ;;; > @@ -996,3 +997,40 @@ designed to work well in user interface environmen= ts.") > (synopsis "Mozilla's monospace font") > (description "This is the typeface used by Mozilla in Firefox OS."= ) > (license license:silofl1.1))) > + > +(define-public font-awesome > + (package > + (name "font-awesome") > + (version "4.7.0") > + (source (origin > + (method url-fetch) > + (uri (string-append "http://fontawesome.io/assets/" > + name "-" version ".zip")) > + (sha256 > + (base32 > + "1frhmw41lnnm9rda2zs202pvfi5vzlrsw4xfp4mswl0qgws61mcd"))= )) > + (build-system trivial-build-system) > + (native-inputs > + `(("unzip" ,unzip))) > + (arguments > + `(#:modules ((guix build utils)) > + #:builder (begin > + (use-modules (guix build utils)) > + (let* ((font-dir (string-append %output > + "/share/fonts/openty= pe")) > + (source (assoc-ref %build-inputs "source")) > + (src-otf-file (string-append "font-awesome-" > + ,version > + "/fonts/FontAwes= ome.otf")) > + (dest-otf-file (string-append font-dir "/Font= Awesome.otf")) > + (unzip (assoc-ref %build-inputs "unzip"))) > + (setenv "PATH" (string-append unzip "/bin")) > + (mkdir-p font-dir) > + (system* "unzip" source "-d" ".") > + (copy-file src-otf-file dest-otf-file))))) > + (home-page "http://fontawesome.io") > + (synopsis "Font that contains an rich iconset") > + (description > + "Font Awesome is a full suite of pictographic icons for easy scala= ble > +vector graphics.") > + (license license:silofl1.1))) > --=20 > 2.11.0 > Looks good to me! --=20 ng0 -- https://www.inventati.org/patternsinthechaos/