[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
10/86: gnu: appstream-glib: Update package definition.
From: |
guix-commits |
Subject: |
10/86: gnu: appstream-glib: Update package definition. |
Date: |
Sun, 5 Jul 2020 16:16:51 -0400 (EDT) |
dannym pushed a commit to branch wip-desktop
in repository guix.
commit fec6417ca7ece10c06ea0195010a801a40d0fd03
Author: Raghav Gururajan <raghavgururajan@disroot.org>
AuthorDate: Thu May 28 10:08:58 2020 -0400
gnu: appstream-glib: Update package definition.
* gnu/packages/glib.scm (appstream-glib)[outputs]: New output 'doc'.
[arguments]<#:glib-or-gtk?>: New argument.
[arguments]<#:configure-flags>[-Dgtk-doc]: New flag.
[-Dintrospection]: Remove flag.
[arguments]<#:phases>['move-doc]: New phase.
['patch-docbook-xml]: New phase.
[native-inputs]: Add docbook-xml, docbook-xsl, gobject-introspection
and gtk-doc.
[inputs]: Add fontconfig, freetype and libxslt. Remove glib and
libarchive.
[propagated-inputs]: Add glib and libarchive. Remove gcab.
[description]: Modify.
[home-page]: Modify.
Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
---
gnu/packages/glib.scm | 96 +++++++++++++++++++++++++++++++++------------------
1 file changed, 63 insertions(+), 33 deletions(-)
diff --git a/gnu/packages/glib.scm b/gnu/packages/glib.scm
index 9f0721b..eec21b6 100644
--- a/gnu/packages/glib.scm
+++ b/gnu/packages/glib.scm
@@ -41,6 +41,7 @@
#:use-module (gnu packages enlightenment)
#:use-module (gnu packages file)
#:use-module (gnu packages flex)
+ #:use-module (gnu packages fontutils)
#:use-module (gnu packages gettext)
#:use-module (gnu packages gnome)
#:use-module (gnu packages gperf)
@@ -918,48 +919,77 @@ programming language. It also contains the utility
(package
(name "appstream-glib")
(version "0.7.17")
- (source (origin
- (method url-fetch)
- (uri (string-append "https://people.freedesktop.org/~hughsient/"
- "appstream-glib/releases/"
- "appstream-glib-" version ".tar.xz"))
- (sha256
- (base32
- "0jg58m1p5xfrh8zkpqhhg00nqs727z5i1qy6sb0a3vyc98fyk9vw"))))
+ (source
+ (origin
+ (method url-fetch)
+ (uri
+ (string-append "https://people.freedesktop.org/~hughsient/"
+ "appstream-glib/releases/"
+ "appstream-glib-" version ".tar.xz"))
+ (sha256
+ (base32 "0jg58m1p5xfrh8zkpqhhg00nqs727z5i1qy6sb0a3vyc98fyk9vw"))))
(build-system meson-build-system)
- (native-inputs
- `(("gettext" ,gettext-minimal)
- ("glib:bin" ,glib "bin") ; for glib-compile-resources
- ("pkg-config" ,pkg-config)))
- (propagated-inputs
- `(("gcab" ,gcab) ; for .pc file
- ("gdk-pixbuf" ,gdk-pixbuf) ; for .pc file
- ("libuuid" ,util-linux "lib"))) ; for .pc file
- (inputs
- `(("glib" ,glib)
- ("gperf" ,gperf)
- ("gtk+" ,gtk+)
- ("json-glib" ,json-glib)
- ("libarchive" ,libarchive)
- ("libsoup" ,libsoup)))
+ (outputs '("out" "doc"))
(arguments
- `(#:configure-flags
- (list "-Ddep11=false"
- "-Dintrospection=false" ; avoid g-ir-scanner dependency
- "-Drpm=false"
- "-Dstemmer=false")
+ `(#:glib-or-gtk? #t ; To wrap binaries and/or compile schemas.
+ #:configure-flags
+ (list
+ "-Dgtk-doc=true"
+ "-Ddep11=false"
+ "-Drpm=false"
+ "-Dstemmer=false")
#:phases
(modify-phases %standard-phases
+ (add-after 'install 'move-doc
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (doc (assoc-ref outputs "doc")))
+ (mkdir-p (string-append doc "/share"))
+ (rename-file
+ (string-append out "/share/gtk-doc")
+ (string-append doc "/share/gtk-doc"))
+ #t)))
+ (add-after 'unpack 'patch-docbook-xml
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let* ((xmldoc (string-append (assoc-ref inputs "docbook-xml")
+ "/xml/dtd/docbook")))
+ (substitute* "docs/api/appstream-glib-docs.xml"
+ (("http://.*/docbookx\\.dtd")
+ (string-append xmldoc "/docbookx.dtd")))
+ #t)))
(add-after 'unpack 'patch-tests
(lambda _
(substitute* "libappstream-glib/as-self-test.c"
- (("g_test_add_func.*as_test_store_local_appdata_func);") ""))
+ (("g_test_add_func.*as_test_store_local_appdata_func);")
+ ""))
#t)))))
- (home-page "https://github.com/hughsie/appstream-glib")
+ (native-inputs
+ `(("docbook-xml" ,docbook-xml-4.2)
+ ("docbook-xsl" ,docbook-xsl)
+ ("gettext" ,gettext-minimal)
+ ("glib:bin" ,glib "bin")
+ ("gobject-introspection" ,gobject-introspection)
+ ("gtk-doc" ,gtk-doc)
+ ("pkg-config" ,pkg-config)))
+ (inputs
+ `(("fontconfig" ,fontconfig)
+ ("freetype" ,freetype)
+ ("gperf" ,gperf)
+ ("gtk+" ,gtk+)
+ ("json-glib" ,json-glib)
+ ("libsoup" ,libsoup)
+ ("libxslt" ,libxslt)))
+ (propagated-inputs
+ `(("glib" ,glib)
+ ("gdk-pixbuf" ,gdk-pixbuf)
+ ("libarchive" ,libarchive)
+ ("libuuid" ,util-linux "lib")))
(synopsis "Library for reading and writing AppStream metadata")
- (description "This library provides objects and helper methods to help
-reading and writing
@uref{https://www.freedesktop.org/wiki/Distributions/AppStream,AppStream}
-metadata.")
+ (description "AppStream-Glib provides objects and helper methods to help
+reading and writing AppStream metadata. It also provides a simple DOM
+implementation that makes it easy to edit nodes and convert to and from the
+standardized XML representation.")
+ (home-page "https://people.freedesktop.org/~hughsient/appstream-glib/")
(license license:lgpl2.1+)))
(define perl-net-dbus
- branch wip-desktop created (now 1d555bd), guix-commits, 2020/07/05
- 02/86: gnu: Add tepl., guix-commits, 2020/07/05
- 01/86: gnu: Add krb5-auth-dialog., guix-commits, 2020/07/05
- 03/86: gnu: Add libglib-testing., guix-commits, 2020/07/05
- 05/86: gnu: Add portablexdr., guix-commits, 2020/07/05
- 04/86: gnu: Add malcontent., guix-commits, 2020/07/05
- 07/86: gnu: Add gnome-music., guix-commits, 2020/07/05
- 06/86: gnu: Add libxmlb., guix-commits, 2020/07/05
- 08/86: gnu: Add gnome-photos., guix-commits, 2020/07/05
- 10/86: gnu: appstream-glib: Update package definition.,
guix-commits <=
- 11/86: gnu: at-spi2-core: Update package definition., guix-commits, 2020/07/05
- 12/86: gnu: at-spi2-atk: Update to 2.34.2., guix-commits, 2020/07/05
- 15/86: gnu: font-cantarell: Update package definition., guix-commits, 2020/07/05
- 13/86: gnu: atk: Update to 2.36.0., guix-commits, 2020/07/05
- 18/86: gnu: clutter-gst: Update package definition., guix-commits, 2020/07/05
- 09/86: gnu: adwaita-icon-theme: Update to 3.36.1., guix-commits, 2020/07/05
- 21/86: gnu: catch-framework2: Update to 2.3.0., guix-commits, 2020/07/05
- 16/86: gnu: clutter: Update to 1.26.4., guix-commits, 2020/07/05
- 19/86: gnu: cogl: Update package definition., guix-commits, 2020/07/05
- 26/86: gnu: Add presage., guix-commits, 2020/07/05