From 4749f46650f8f816ae97c4b9ad2424d9bff99e88 Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Wed, 22 Jul 2020 15:27:33 -0400 Subject: [PATCH 19/36] gnu: gnome-autoar: Update package definition. * gnu/packages/gnome.scm (gnome-autoar): Update package definition. [outputs]: New output "doc". [arguments]<#:configure-flags>[--disable-static]: New flag. [--enable-gtk-doc]: New flag. [--with-html-dir]: New flag. <#:phases>['patch-docbook-xml]: New phase. [native-inputs]: Add docbook-xml, gtk-doc and vala. [inputs]: Remove gtk+. [propagated-inputs]: Add glib and gtk+. [synopsis]: Modify. [description]: Modify. [home-page]: Modify. --- gnu/packages/gnome.scm | 59 +++++++++++++++++++++++++++++------------- 1 file changed, 41 insertions(+), 18 deletions(-) diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm index b398c5e2e6..62f9ea8306 100644 --- a/gnu/packages/gnome.scm +++ b/gnu/packages/gnome.scm @@ -8685,27 +8685,50 @@ as SASL, TLS and VeNCrypt. Additionally it supports encoding extensions.") (package (name "gnome-autoar") (version "0.2.4") - (source (origin - (method url-fetch) - (uri (string-append "mirror://gnome/sources/" name "/" - (version-major+minor version) "/" - name "-" version ".tar.xz")) - (sha256 - (base32 - "0yk56ch46n3wfy633mq31kif9n7v06rlij4vqbsbn6l4z1vw6d0a")))) + (source + (origin + (method url-fetch) + (uri + (string-append "mirror://gnome/sources/" name "/" + (version-major+minor version) "/" + name "-" version ".tar.xz")) + (sha256 + (base32 "0yk56ch46n3wfy633mq31kif9n7v06rlij4vqbsbn6l4z1vw6d0a")))) (build-system glib-or-gtk-build-system) + (outputs '("out" "doc")) + (arguments + `(#:configure-flags + (list + "--disable-static" + "--enable-gtk-doc" + (string-append "--with-html-dir=" + (assoc-ref %outputs "out") + "/share/gtk-doc/html")) + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-docbook-xml + (lambda* (#:key inputs #:allow-other-keys) + (with-directory-excursion "docs/reference" + (substitute* "gnome-autoar-docs.xml" + (("http://www.oasis-open.org/docbook/xml/4.3/") + (string-append (assoc-ref inputs "docbook-xml") + "/xml/dtd/docbook/")))) + #t))))) (native-inputs - `(("gobject-introspection" ,gobject-introspection) - ("pkg-config" ,pkg-config))) + `(("docbook-xml" ,docbook-xml-4.3) + ("gobject-introspection" ,gobject-introspection) + ("gtk-doc" ,gtk-doc) + ("pkg-config" ,pkg-config) + ("vapigen" ,vala))) (propagated-inputs - `(("libarchive" ,libarchive))) ; Required by gnome-autoar-0.pc - (inputs - `(("gtk+" ,gtk+))) - (synopsis "Archives integration support for GNOME") - (home-page "https://git.gnome.org/browse/gnome-autoar/") - (description - "GNOME Autoar is a library which makes creating and extracting archives -easy, safe, and automatic.") + `(("glib" ,glib) + ("gtk+" ,gtk+) + ("libarchive" ,libarchive))) + (synopsis "Archive management for GNOME") + (description "GNOME Autoar provides functions, widgets, and gschemas for +GNOME applications which want to use archives as a convenient method to transfer +directories over the internet.") + (home-page "https://gitlab.gnome.org/GNOME/gnome-autoar") (license license:lgpl2.1+))) (define-public tracker -- 2.27.0