dannym pushed a commit to branch wip-desktop in repository guix. commit 694e2b177d23156ff46a866d6c2ea0ffe75b3ee5 Author: Raghav Gururajan <raghavgurura...@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 <dan...@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 0dfe9f1..df6f4f2 100644 --- a/gnu/packages/gnome.scm +++ b/gnu/packages/gnome.scm @@ -6771,23 +6771,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