From f02f44f066b5df67da5a9211f78771b9305f2ff9 Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Tue, 21 Jul 2020 05:45:49 -0400 Subject: [PATCH 13/36] gnu: gexiv2: Update package definition. * gnu/packages/gnome.scm (gexiv2) [version]: Update to 0.12.1. [source][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. --- gnu/packages/gnome.scm | 66 +++++++++++++++++++++++++++++------------- 1 file changed, 46 insertions(+), 20 deletions(-) diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm index fb526f3df5..b398c5e2e6 100644 --- a/gnu/packages/gnome.scm +++ b/gnu/packages/gnome.scm @@ -6876,33 +6876,59 @@ and classes for commonly used data structures.") (define-public gexiv2 (package (name "gexiv2") - (version "0.12.0") - (source (origin - (method url-fetch) - (uri (string-append "mirror://gnome/sources/" name "/" - (version-major+minor version) "/" - name "-" version ".tar.xz")) - (sha256 - (base32 - "0slj5yj8c90l9pp5i3z74x5r3r4da0xfmbzkfq5k0dkg72q3kxaq")))) + (version "0.12.1") + (source + (origin + (method url-fetch) + (uri + (string-append "mirror://gnome/sources/" name "/" + (version-major+minor version) "/" + name "-" version ".tar.xz")) + (sha256 + (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 -- 2.27.0