From 5924b45ed5169f86f7442f3a004d5518ae3f7a4b Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Fri, 24 Jul 2020 03:09:43 -0400 Subject: [PATCH 21/36] gnu: gfbgraph: Update package definition. * gnu/packages/gnome.scm (gfbgraph) [version]: Update to 0.2.4. [source][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. --- gnu/packages/gnome.scm | 67 ++++++++++++++++++++++++++++-------------- 1 file changed, 45 insertions(+), 22 deletions(-) diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm index 7bb63516e8..83ce16d320 100644 --- a/gnu/packages/gnome.scm +++ b/gnu/packages/gnome.scm @@ -9918,33 +9918,56 @@ which generates C code when compiled.") (define-public gfbgraph (package (name "gfbgraph") - (version "0.2.3") - (source (origin - (method url-fetch) - (uri (string-append - "mirror://gnome/sources/gfbgraph/" - (version-major+minor version) "/" - "gfbgraph-" version ".tar.xz")) - (sha256 - (base32 - "1dp0v8ia35fxs9yhnqpxj3ir5lh018jlbiwifjfn8ayy7h47j4fs")))) + (version "0.2.4") + (source + (origin + (method url-fetch) + (uri + (string-append + "mirror://gnome/sources/gfbgraph/" + (version-major+minor version) "/" + "gfbgraph-" version ".tar.xz")) + (sha256 + (base32 "0yck7dwvjk16a52nafjpi0a39rxwmg0w833brj45acz76lgkjrb0")))) (build-system glib-or-gtk-build-system) + (outputs '("out" "doc")) (arguments - `(#:tests? #f ; Tests appear to require the network. - ;; FIXME --enable-gtk-doc fails even with gtk-doc as a native-input. - #:configure-flags '("--disable-gtk-doc" - "--disable-static" - "--enable-introspection"))) + `(#:tests? #f ; Tests require networking + #:configure-flags + (list + "--disable-static" + "--enable-gtk-doc" + (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 - `(("pkg-config" ,pkg-config) - ("gobject-introspection" ,gobject-introspection))) - (inputs - `(("json-glib" ,json-glib) + `(("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))) + (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+))) -- 2.27.0