guix-commits
[Top][All Lists]
Advanced

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

178/401: gnu: gfbgraph: Update package definition.


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

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

commit fc922dc7ff1559458567ef48f27c2d560534f775
Author: Raghav Gururajan <raghavgururajan@disroot.org>
AuthorDate: Fri Jul 24 03:09:43 2020 -0400

    gnu: gfbgraph: Update package definition.
    
    * gnu/packages/gnome.scm (gfbgraph) [version]: Update to 0.2.4.
    [source]<origin>[sha256]: Modify base32.
    [outputs]: New output "doc".
    [arguments]<#:configure-flags>[--enable-introspection]: Remove flag.
    [--enable-gtk-doc]: New flag.
    [--with-html-dir]: New flag.
    <#:phases>['patch-docbook-xml]: New phase.
    [native-inputs]: Add autoconf, automake, docbook-xml, gettext-minimal,
    gtk-doc and which.
    [inputs]: Move gnome-online-accounts, json-glib and rest to ...
    [propagated-inputs]: ... here. Add glib and libsoup.
    [synopsis]: Modify.
    [description]: Modify.
    
    Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
---
 gnu/packages/gnome.scm | 47 ++++++++++++++++++++++++++++++++---------------
 1 file changed, 32 insertions(+), 15 deletions(-)

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 14c91a4..a149b6f 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -9808,28 +9808,45 @@ which generates C code when compiled.")
                (base32
                 "0yck7dwvjk16a52nafjpi0a39rxwmg0w833brj45acz76lgkjrb0"))))
     (build-system glib-or-gtk-build-system)
+    (outputs '("out" "doc"))
     (arguments
-     `(#:tests? #f                      ; tests appear to require the network
-       #:configure-flags '("--disable-static"
-                           "--enable-gtk-doc"
-                           "--enable-introspection")))
+     `(#:tests? #f                      ; Tests require networking
+       #:configure-flags
+       (list
+        "--disable-static"
+        "--enable-gtk-doc"
+        "--enable-introspection"
+        (string-append "--with-html-dir="
+                       (assoc-ref %outputs "doc")
+                       "/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* "gfbgraph-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)
-       ("gtk-doc" ,gtk-doc)
-       ("pkg-config" ,pkg-config)
-
-       ;; The 0.2.4 ‘release’ tarball isn't bootstrapped.
-       ("autoconf" ,autoconf)
+     `(("autoconf" ,autoconf)
        ("automake" ,automake)
+       ("docbook-xml" ,docbook-xml-4.3)
+       ("gettext" ,gettext-minimal)
+       ("gobject-introspection" ,gobject-introspection)
+       ("gtk-doc" ,gtk-doc)
        ("libtool" ,libtool)
+       ("pkg-config" ,pkg-config)
        ("which" ,which)))
-    (inputs
-     `(("json-glib" ,json-glib)
+    (propagated-inputs
+     `(("glib" ,glib)
        ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
+       ("json-glib" ,json-glib)
+       ("libsoup" ,libsoup)
        ("rest" ,rest)))
-    (synopsis "GLib/GObject wrapper for the Facebook API")
-    (description "This library allows you to use the Facebook API from
-GLib/GObject code.")
+    (synopsis "GObject library for Facebook Graph API")
+    (description "GFBGraph is a GLib/GObject wrapper for the Facebook API.")
     (home-page "https://wiki.gnome.org/Projects/GFBGraph";)
     (license license:lgpl2.1+)))
 



reply via email to

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