[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 1/4] gnu: Add potrace.
From: |
Eric Bavier |
Subject: |
Re: [PATCH 1/4] gnu: Add potrace. |
Date: |
Tue, 07 Oct 2014 12:29:00 -0500 |
User-agent: |
mu4e 0.9.9.5; emacs 23.3.1 |
Ludovic Courtès writes:
> Eric Bavier <address@hidden> skribis:
>
>> From f178a122f3805cbc23119b20c2144cf2a59bed3f Mon Sep 17 00:00:00 2001
>> From: Eric Bavier <address@hidden>
>> 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.
>From 6721d6e9e31af8aff5e781d813e55347dea378c9 Mon Sep 17 00:00:00 2001
From: Eric Bavier <address@hidden>
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 <address@hidden>
+;;; Copyright © 2014 Eric Bavier <address@hidden>
;;;
;;; 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