guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

174/401: gnu: gexiv2: Update package definition.


From: guix-commits
Subject: 174/401: gnu: gexiv2: Update package definition.
Date: Tue, 18 Aug 2020 16:21:22 -0400 (EDT)

dannym pushed a commit to branch wip-desktop
in repository guix.

commit 049d8143a710b2a000c096175419520b98af4da3
Author: Raghav Gururajan <raghavgururajan@disroot.org>
AuthorDate: Tue Jul 21 05:45:49 2020 -0400

    gnu: gexiv2: Update package definition.
    
    * gnu/packages/gnome.scm (gexiv2) [version]: Update to 0.12.1.
    FIXME correct commit message.
    [source]<origin>[sha256]: Modify base32.
    [outputs]: New output "doc".
    [arguments]<#:glib-or-gtk?>: New argument.
    <#:configure-flags>[-Dgtk_doc]: New flag.
    <#:phases>['patch-docbook-xml]: New phase.
    ['move-doc]: New phase.
    [native-inputs]: Add docbook-xml, gtk-doc, python-2 and python.
    Remove gcr.
    [inputs]: Remove glib.
    [propagated-inputs]: Add glib.
    [synopsis]: Modify.
    
    Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
---
 gnu/packages/gnome.scm | 47 ++++++++++++++++++++++++++++++++++++-----------
 1 file changed, 36 insertions(+), 11 deletions(-)

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index f556e23..4139c0a 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -6776,23 +6776,48 @@ and classes for commonly used data structures.")
                (base32
                 "0xxxq8xdkgkn146my307jgws4qgxx477h0ybg1mqza1ycmczvsla"))))
     (build-system meson-build-system)
+    (outputs '("out" "doc"))
+    (arguments
+     `(#:glib-or-gtk? #t     ; To wrap binaries and/or compile schemas
+       #:configure-flags
+       (list
+        "-Dgtk_doc=true")
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'patch-docbook-xml
+           (lambda* (#:key inputs #:allow-other-keys)
+             (with-directory-excursion "docs/reference"
+               (substitute* "gexiv2-docs.xml"
+                 (("http://www.oasis-open.org/docbook/xml/4.3/";)
+                  (string-append (assoc-ref inputs "docbook-xml")
+                                 "/xml/dtd/docbook/"))))
+             #t))
+         (add-after 'install 'move-doc
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let* ((out (assoc-ref outputs "out"))
+                    (doc (assoc-ref outputs "doc")))
+               (mkdir-p (string-append doc "/share"))
+               (rename-file
+                (string-append out "/share/gtk-doc")
+                (string-append doc "/share/gtk-doc"))
+               #t))))))
     (native-inputs
-     `(("gcr" ,gcr)
+     `(("docbook-xml" ,docbook-xml-4.3)
        ("glib" ,glib "bin")
+       ("gobject-introspection" ,gobject-introspection)
+       ("gtk-doc" ,gtk-doc)
        ("pkg-config" ,pkg-config)
+       ("python2" ,python-2)
+       ("python3" ,python)
        ("vala" ,vala)))
     (propagated-inputs
-     ;; Listed in "Requires" section of gexiv2.pc
-     `(("exiv2" ,exiv2)))
-    (inputs
-     `(("glib" ,glib)
-       ("gobject-introspection" ,gobject-introspection)))
+     `(("exiv2" ,exiv2)
+       ("glib" ,glib)))
+    (synopsis "GObject-based Exiv2 wrapper")
+    (description "Gexiv2 is a GObject wrapper around the Exiv2 photo metadata
+library.  It allows for GNOME applications to easily inspect and update EXIF,
+IPTC, and XMP metadata in photo and video files of various formats.")
     (home-page "https://wiki.gnome.org/Projects/gexiv2";)
-    (synopsis "GObject wrapper around the Exiv2 photo metadata library")
-    (description
-     "Gexiv2 is a GObject wrapper around the Exiv2 photo metadata library.  It
-allows for GNOME applications to easily inspect and update EXIF, IPTC, and XMP
-metadata in photo and video files of various formats.")
     (license license:gpl2+)))
 
 (define-public shotwell



reply via email to

[Prev in Thread] Current Thread [Next in Thread]