From cafa3a036aec6d95ce6f477ad93987d5c0c703a2 Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Mon, 27 Jul 2020 11:59:41 -0400 Subject: [PATCH 54/54] gnu: libzapojit: Update package definition. * gnu/packages/gnome.scm (libzapojit): Update package definition. [build-system]: Change from gnu to glib-or-gtk. [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 and gtk-doc. [inputs]: Move gnome-online-accounts:lib, json-glib and rest to ... [propagated-inputs]: ... here. Add glib and libsoup. [synopsis]: Modify. [description]: Modify. --- gnu/packages/gnome.scm | 55 ++++++++++++++++++++++++++++++------------ 1 file changed, 39 insertions(+), 16 deletions(-) diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm index ebe3b2ded5..c68c089133 100644 --- a/gnu/packages/gnome.scm +++ b/gnu/packages/gnome.scm @@ -10120,28 +10120,51 @@ libcanberra C library.") (package (name "libzapojit") (version "0.0.3") - (source (origin - (method url-fetch) - (uri (string-append "mirror://gnome/sources/" name "/" - (version-major+minor version) "/" - name "-" version ".tar.xz")) - (sha256 - (base32 - "0zn3s7ryjc3k1abj4k55dr2na844l451nrg9s6cvnnhh569zj99x")))) - (build-system gnu-build-system) + (source + (origin + (method url-fetch) + (uri + (string-append "mirror://gnome/sources/" name "/" + (version-major+minor version) "/" + name "-" version ".tar.xz")) + (sha256 + (base32 "0zn3s7ryjc3k1abj4k55dr2na844l451nrg9s6cvnnhh569zj99x")))) + (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 "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* "libzapojit-0.0-docs.sgml" + (("http://www.oasis-open.org/docbook/xml/4.1.2/") + (string-append (assoc-ref inputs "docbook-xml") + "/xml/dtd/docbook/")))) + #t))))) (native-inputs - `(("gobject-introspection" ,gobject-introspection) + `(("docbook-xml" ,docbook-xml-4.1.2) + ("gobject-introspection" ,gobject-introspection) + ("gtk-doc" ,gtk-doc) ("intltool" ,intltool) ("pkg-config" ,pkg-config))) - (inputs - `(("gnome-online-accounts:lib" ,gnome-online-accounts "lib") + (propagated-inputs + `(("glib" ,glib) + ("gnome-online-accounts:lib" ,gnome-online-accounts "lib") ("json-glib" ,json-glib) + ("libsoup" ,libsoup) ("rest" ,rest))) + (synopsis "REST API Wrapper") + (description "LibZapojit is a GLib/GObject wrapper for the SkyDrive and +Hotmail REST APIs.") (home-page "https://wiki.gnome.org/Projects/Zapojit") - (synopsis "Library for accessing SkyDrive and Hotmail") - (description - "Libzapojit is a GLib-based library for accessing online service APIs of -Microsoft SkyDrive and Hotmail, using their REST protocols.") (license license:lgpl2.1+))) (define-public gnome-clocks -- 2.27.0