Patchwork gnu: Add pdf2svg.

login
register
mail settings
Submitter Arun
Date Oct. 30, 2016, 11:07 a.m.
Message ID <20161030110728.20516-1-arunisaac@systemreboot.net>
Download mbox | patch
Permalink /patch/17020/
State New
Headers show

Comments

Arun - Oct. 30, 2016, 11:07 a.m.
* gnu/packages/pdf.scm (pdf2svg): New variable.
---
 gnu/packages/pdf.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
Ludovic Courtès - Nov. 3, 2016, 1:34 p.m.
Arun Isaac <arunisaac@systemreboot.net> skribis:

> * gnu/packages/pdf.scm (pdf2svg): New variable.

Committed with minor tweaks to the description, thanks!

Ludo’.
Arun - Nov. 3, 2016, 5:59 p.m.
> Committed with minor tweaks to the description, thanks!

Thank you!

Patch

diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm
index 42547df..26705a8 100644
--- a/gnu/packages/pdf.scm
+++ b/gnu/packages/pdf.scm
@@ -8,6 +8,7 @@ 
 ;;; Coypright © 2016 Marius Bakke <mbakke@fastmail.com>
 ;;; Coypright © 2016 Ludovic Courtès <ludo@gnu.org>
 ;;; Coypright © 2016 Julien Lepiller <julien@lepiller.eu>
+;;; Copyright © 2016 Arun Isaac <arunisaac@systemreboot.net>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -751,3 +752,28 @@  the PDF pages.")
 the framebuffer.")
 
     (license license:gpl2+)))
+
+(define-public pdf2svg
+  (package
+    (name "pdf2svg")
+    (version "0.2.3")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "https://github.com/dawbarton/pdf2svg/archive/v"
+                    version ".tar.gz"))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "12pa1pajirnlrkz2il3h4l30lc2prryk1qr132jk6z9y1c3qdcag"))))
+    (build-system gnu-build-system)
+    (inputs
+     `(("cairo" ,cairo)
+       ("poppler" ,poppler)))
+    (native-inputs
+     `(("pkg-config" ,pkg-config)))
+    (home-page "http://www.cityinthesky.co.uk/opensource/pdf2svg/")
+    (synopsis "PDF to SVG converter")
+    (description "pdf2svg is a simple command line PDF to SVG
+converter using the poppler and cairo libraries.")
+    (license license:gpl2+)))