From ee69f85c7dd055eb20e61f188177f8ccd5c0df7a Mon Sep 17 00:00:00 2001 From: Eric Bavier Date: Tue, 7 Oct 2014 12:27:37 -0500 Subject: gnu: Add potrace. * gnu/packages/fontutils.scm (potrace): New variable. --- gnu/packages/fontutils.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'gnu') diff --git a/gnu/packages/fontutils.scm b/gnu/packages/fontutils.scm index 5310f3cbe4..321c6dc516 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/"))) -- cgit v1.2.3