From 075fd7d8140561afe03aba8eeb8135001e0ed836 Mon Sep 17 00:00:00 2001 From: David Hashe Date: Wed, 15 Jul 2015 23:15:45 -0500 Subject: [PATCH] gnu: Add exempi. * gnu/packages/freedesktop.scm (exempi): New variable. --- gnu/packages/freedesktop.scm | 45 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm index eeb97cd..b4c370f 100644 --- a/gnu/packages/freedesktop.scm +++ b/gnu/packages/freedesktop.scm @@ -4,6 +4,7 @@ ;;; Copyright © 2015 Andy Wingo ;;; Copyright © 2015 Ludovic Courtès ;;; Copyright © 2015 Ricardo Wurmus +;;; Copyright © 2015 David Hashe ;;; ;;; This file is part of GNU Guix. ;;; @@ -39,6 +40,8 @@ #:use-module (gnu packages glib) ;intltool #:use-module (gnu packages xdisorg) #:use-module (gnu packages xorg) + #:use-module (gnu packages boost) + #:use-module (gnu packages compression) #:use-module (gnu packages doxygen) #:use-module (gnu packages libffi)) @@ -232,3 +235,45 @@ display server running on Linux kernel modesetting and evdev input devices, an X application, or a wayland client itself. The clients can be traditional applications, X servers (rootless or fullscreen) or other display servers.") (license license:x11))) + +(define-public exempi + (package + (name "exempi") + (version "2.2.2") + (source (origin + (method url-fetch) + (uri (string-append + "http://libopenraw.freedesktop.org/download/" + name "-" version ".tar.bz2")) + (sha256 + (base32 + "01vcd1mfn2s0iiq2cjyzgvnxx6kcq9cwra1iipijhs0vwvjx0yhf")))) + (build-system gnu-build-system) + (arguments + `(#:configure-flags (list (string-append "--with-boost=" + (assoc-ref %build-inputs "boost"))) + #:phases (modify-phases %standard-phases + (add-after + 'unpack 'fix-autogen + (lambda _ + (substitute* "autogen.sh" + ;; autogen.sh tries to run configure before we + ;; are able to patch it + (("^.*topsrcdir/configure.*$") "")))) + (add-after + 'fix-autogen 'autogen + (lambda _ + (zero? (system* "sh" "./autogen.sh"))))))) + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake) + ("libtool" ,libtool) + ("boost" ,boost))) + (inputs + `(("expat" ,expat) + ("zlib" ,zlib))) + (home-page "https://wiki.freedesktop.org/libopenraw/Exempi") + (synopsis "XMP metadata handling library") + (description "Exempi is an implementation of the Extensible Metadata +Platform (XMP), which enables embedding metadata in PDF and image formats.") + (license license:bsd-3))) -- 1.9.1