Subject: [PATCH] gnu: Add vigra-c.

From: Fis Trivial <[email-masked]>
Date: Sat, 12 May 2018 10:11:29 +0000

* gnu/packages/image.scm (vigra-c): New variable.
---
 gnu/packages/image.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm
index bbfd621a9..4d85808db 100644
--- a/gnu/packages/image.scm
+++ b/gnu/packages/image.scm
@@ -843,6 +843,38 @@ multi-dimensional image processing.")
    (license license:expat)
    (home-page "https://ukoethe.github.io/vigra/")))
 
+(define-public vigra-c
+  (let* ((commit "a2ff675f42079e2623318d8ff8b4288dbe7a7f06")
+         (revision "0")
+         (version (string-append "0.0.0" revision commit)))
+    (package
+      (name "vigra-c")
+      (version version)
+      (home-page "https://github.com/BSeppke/vigra_c")
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url home-page)
+                      (commit commit)))
+                (sha256
+                 (base32
+                  "1f1phmfbbz3dsq9330rd6bjmdg29hxskxi9l17cyx1f4mdqpgdgl"))
+                (file-name (git-file-name name version))))
+      (build-system cmake-build-system)
+      (arguments
+       `(#:tests? #f))                  ; No test target.
+      (native-inputs
+       `(("doxygen" ,doxygen)))
+      (inputs
+       `(("fftw" ,fftw)
+         ("fftwf" ,fftwf)
+         ("vigra" ,vigra)))
+      (synopsis "Wrapping (parts of) VIGRA's functionality into a C shared
+library")
+      (description "An easy understandable C-Wrapper to re-use functionality of
+the VIGRA computer vision library in other programming environments.")
+      (license license:expat))))
+
 (define-public libwebp
   (package
     (name "libwebp")
-- 
2.14.3