[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
244/295: gnu: libsecret: Update package definition.
From: |
guix-commits |
Subject: |
244/295: gnu: libsecret: Update package definition. |
Date: |
Mon, 27 Jul 2020 06:26:26 -0400 (EDT) |
dannym pushed a commit to branch wip-desktop
in repository guix.
commit ce1eb1cdb3e40fe5ae27b43dfe67f68e49e7b679
Author: Raghav Gururajan <raghavgururajan@disroot.org>
AuthorDate: Thu Jul 9 18:34:16 2020 -0400
gnu: libsecret: Update package definition.
* gnu/packages/gnome.scm (libsecret): Update package definition.
[build-system]: Change from gnu to meson.
[arguments]<#:glib-or-gtk?>: New argument.
<#:tests?>: Remove argument.
<#:configure-flags>[--with-html-dir]: Remove flag.
<#:phases>['patch-docbook-xml]: New phase.
['check]: New phase.
['move-docs]: New phase.
[native-inputs]: Add dbus, docbook-xml, docbook-xsl, gtk-doc,
python-wrapper, python-dbus and python-pygobject.
[inputs]: Remove docbook-xsl and libgcrypt.
[propagated-inputs]: Add libgcrypt.
[synopsis]: Modify.
[description]: Modify.
[license]: Add asl2.0 and gpl2+.
Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
---
gnu/packages/gnome.scm | 100 ++++++++++++++++++++++++++++++++-----------------
1 file changed, 66 insertions(+), 34 deletions(-)
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 2ac98a5..12721b7 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -4496,49 +4496,81 @@ and the GLib main loop, to integrate well with GNOME
applications.")
(package
(name "libsecret")
(version "0.20.3")
- (source (origin
- (method url-fetch)
- (uri (string-append
- "mirror://gnome/sources/libsecret/"
- (version-major+minor version) "/"
- "libsecret-" version ".tar.xz"))
- (sha256
- (base32
- "1r4habxdzmn02id324m0m4mg5isf22q1z436bg3vjjmcz1b3rjsg"))))
- (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 "1r4habxdzmn02id324m0m4mg5isf22q1z436bg3vjjmcz1b3rjsg"))))
+ (build-system meson-build-system)
(outputs '("out" "doc"))
(arguments
- `(#:tests? #f ; FIXME: Testing hangs.
- #:configure-flags
- (list (string-append "--with-html-dir="
- (assoc-ref %outputs "doc")
- "/share/gtk-doc/html"))))
+ `(#:glib-or-gtk? #t
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'patch-docbook-xml
+ (lambda* (#:key inputs #:allow-other-keys)
+ (with-directory-excursion "docs"
+ (substitute* "man/secret-tool.xml"
+ (("http://www.oasis-open.org/docbook/xml/4.2/")
+ (string-append (assoc-ref inputs "docbook-xml-4.2")
+ "/xml/dtd/docbook/")))
+ (substitute* '("reference/libsecret/libsecret-docs.sgml"
+ "reference/libsecret/libsecret-examples.sgml"
+ "reference/libsecret/libsecret-using.sgml")
+ (("http://www.oasis-open.org/docbook/xml/4.1.2/")
+ (string-append (assoc-ref inputs "docbook-xml-4.1.2")
+ "/xml/dtd/docbook/"))))))
+ (replace 'check
+ (lambda _
+ ;; For missing '/etc/machine-id'.
+ (setenv "DBUS_FATAL_WARNINGS" "0")
+ (invoke "dbus-launch" "meson" "test")
+ #t))
+ (add-after 'install 'move-docs
+ (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))))))
(native-inputs
- `(("gettext" ,gettext-minimal)
- ("glib:bin" ,glib "bin") ; for gdbus-codegen, etc.
+ `(("dbus" ,dbus)
+ ("docbook-xml-4.1.2" ,docbook-xml-4.1.2)
+ ("docbook-xml-4.2" ,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)
+ ("python" ,python-wrapper)
+ ("python-dbus" ,python-dbus)
+ ("python-pygobject" ,python-pygobject)
("vala" ,vala)
("xsltproc" ,libxslt)))
- ;; These are needed for the tests.
- ;; FIXME: Add gjs once available.
- ;("dbus" ,dbus)
- ;("python2" ,python-2)
- ;("python2-dbus" ,python2-dbus)
- ;("python2-pygobject" ,python2-pygobject)
- ;("python2-pygobject-2" ,python2-pygobject-2)))
- (propagated-inputs
- `(("glib" ,glib))) ; required by libsecret-1.pc
(inputs
- `(("docbook-xsl" ,docbook-xsl)
- ("libgcrypt" ,libgcrypt)
- ("libxml2" ,libxml2))) ; for XML_CATALOG_FILES
+ `(("libxml2" ,libxml2)))
+ (propagated-inputs
+ `(("glib" ,glib)
+ ("libgcrypt" ,libgcrypt)))
+ (synopsis "GObject bindings for Secret Service API")
+ (description "Libsecret is a library for storing and retrieving passwords
+and other secrets. It communicates with the Secret Service, using D-Bus.
+Gnome-Keyring and Ksecretservice are both implementations of a Secret
Service.")
(home-page "https://wiki.gnome.org/Projects/Libsecret/")
- (synopsis "GObject bindings for \"Secret Service\" API")
- (description
- "Libsecret is a GObject based library for storing and retrieving passwords
-and other secrets. It communicates with the \"Secret Service\" using DBus.")
- (license license:lgpl2.1+)))
+ (license
+ (list
+ ;; Tests
+ license:asl2.0
+ license:gpl2+
+ ;; Others
+ license:lgpl2.1+))))
(define-public five-or-more
(package
- 221/295: gnu: Add rust-string-cache@0.8.0., (continued)
- 221/295: gnu: Add rust-string-cache@0.8.0., guix-commits, 2020/07/27
- 230/295: gnu: Add rust-derive-more@0.99.9., guix-commits, 2020/07/27
- 232/295: gnu: Add rust-pin-project-internal@0.4.22., guix-commits, 2020/07/27
- 237/295: gnu: Add rust-servo-arc@0.1.1., guix-commits, 2020/07/27
- 238/295: gnu: Add rust-thin-slice@0.1.1., guix-commits, 2020/07/27
- 243/295: gnu: librsvg-next: Update package definition., guix-commits, 2020/07/27
- 223/295: gnu: Add rust-markup5ever@0.10.0., guix-commits, 2020/07/27
- 229/295: gnu: Add rust-peg@0.5.7., guix-commits, 2020/07/27
- 231/295: gnu: Add rust-itertools@0.9.0., guix-commits, 2020/07/27
- 236/295: git: Add rust-rgb@0.8.20., guix-commits, 2020/07/27
- 244/295: gnu: libsecret: Update package definition.,
guix-commits <=
- 241/295: gnu: Add rust-xml5ever@0.16.1., guix-commits, 2020/07/27
- 245/295: gnu: libsoup: Update package definition., guix-commits, 2020/07/27
- 246/295: gnu: Add openjpeg-data., guix-commits, 2020/07/27
- 248/295: gnu: gtk+: Add missing input., guix-commits, 2020/07/27
- 255/295: gnu: wpebackend-fdo: Update package definition., guix-commits, 2020/07/27
- 87/295: gnu: Add rust-scrypt-0.3., guix-commits, 2020/07/27
- 256/295: gnu: woff2: Update package definition., guix-commits, 2020/07/27
- 254/295: gnu: libwpe: Update package definition., guix-commits, 2020/07/27
- 267/295: gnu: hplip: Update source hash., guix-commits, 2020/07/27
- 273/295: gnu: glibmm: Update package definition., guix-commits, 2020/07/27