guix-commits
[Top][All Lists]
Advanced

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

02/06: gnu: gnome-autoar: Update package definition.


From: guix-commits
Subject: 02/06: gnu: gnome-autoar: Update package definition.
Date: Thu, 30 Jul 2020 15:32:41 -0400 (EDT)

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

commit 3b8e63e498265da0af08997bc2c9ab52bd8f429f
Author: Raghav Gururajan <raghavgururajan@disroot.org>
AuthorDate: Wed Jul 22 15:27:33 2020 -0400

    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.
    
    Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
---
 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 614cb1b..6f1e75f 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -8677,27 +8677,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



reply via email to

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