From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Bavier Subject: Re: [PATCH 1/4] gnu: Add potrace. Date: Tue, 07 Oct 2014 12:29:00 -0500 Message-ID: <87a957wzz7.fsf@gmail.com> References: <87fvezx2di.fsf@member.fsf.org> <8738azx1cu.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58033) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbYXj-0007Lc-Bd for guix-devel@gnu.org; Tue, 07 Oct 2014 13:27:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XbYXd-0005MJ-4M for guix-devel@gnu.org; Tue, 07 Oct 2014 13:27:23 -0400 In-reply-to: <8738azx1cu.fsf@gnu.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: =?utf-8?Q?Ludovic_Court=C3=A8s?= Cc: guix-devel@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Ludovic Courtès writes: > Eric Bavier skribis: > >> From f178a122f3805cbc23119b20c2144cf2a59bed3f Mon Sep 17 00:00:00 2001 >> From: Eric Bavier >> Date: Tue, 7 Oct 2014 11:13:35 -0500 >> Subject: [PATCH 1/4] gnu: Add potrace. >> >> * gnu/packages/fontutils.scm (potrace): New variable. > > This part looks good to me, but... Ok. > >> gnu/packages/fontutils.scm | 28 ++++++++++++++ >> gnu/packages/giflib.scm | 90 ++++++++++++++++++++++++++++++++++++++++++++ > > What about the giflib.scm changes? Were they intended? No, those changes were not intended. > Perhaps giflib 5.x can be added in image.scm? I was experimenting with the latest version of fontforge, which can use giflib 5.x. For the time being it can be left out. An updated patch is attached. --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: inline; filename=0001-gnu-Add-potrace.patch Content-Transfer-Encoding: 8bit >From 6721d6e9e31af8aff5e781d813e55347dea378c9 Mon Sep 17 00:00:00 2001 From: Eric Bavier Date: Tue, 7 Oct 2014 12:27:37 -0500 Subject: [PATCH] gnu: Add potrace. * gnu/packages/fontutils.scm (potrace): New variable. --- gnu/packages/fontutils.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/fontutils.scm b/gnu/packages/fontutils.scm index 5310f3c..321c6dc 100644 --- a/gnu/packages/fontutils.scm +++ b/gnu/packages/fontutils.scm @@ -1,5 +1,6 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2013, 2014 Andreas Enge +;;; Copyright © 2014 Eric Bavier ;;; ;;; This file is part of GNU Guix. ;;; @@ -197,3 +198,30 @@ process known as shaping. This process takes an input Unicode text string and returns a sequence of positioned glyphids from the font.") (license license:lgpl2.1+) (home-page "http://projects.palaso.org/projects/graphitedev"))) + +(define-public potrace + (package + (name "potrace") + (version "1.11") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://sourceforge/potrace/potrace-" + version ".tar.gz")) + (sha256 + (base32 + "1bbyl7jgigawmwc8r14znv8lb6lrcxh8zpvynrl6s800dr4yp9as")))) + (build-system gnu-build-system) + (native-inputs `(("ghostscript" ,ghostscript))) ;for tests + (inputs `(("zlib" ,zlib))) + (synopsis "Transform bitmaps into vector graphics") + (description + "Potrace is a tool for tracing a bitmap, which means, transforming a +bitmap into a smooth, scalable image. The input is a bitmap (PBM, PGM, PPM, +or BMP format), and the default output is an encapsulated PostScript +file (EPS). A typical use is to create EPS files from scanned data, such as +company or university logos, handwritten notes, etc. The resulting image is +not \"jaggy\" like a bitmap, but smooth. It can then be rendered at any +resolution.") + (license license:gpl2+) + (home-page "http://potrace.sourceforge.net/"))) -- 1.7.9.5 --=-=-= -- Eric Bavier --=-=-=--