me
/
guix
Archived
1
0
Fork 0

gnu: libshumate: Update to 1.0.5.

* gnu/packages/gnome.scm (libshumate): Update to 1.0.5.
[#:phases]:<pre-check>: Removed, moving logic…
<check>: … here.  Also set other environment variables and run tests using
‘dbus-run-session’.
[native-inputs]: Add dbus and at-spi2-core.

Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
master
Vivien Kraus 2023-09-15 20:07:13 +02:00 committed by Liliana Marie Prikler
parent 5c8721ad07
commit 8c28401c6d
No known key found for this signature in database
GPG Key ID: 442A84B8C70E2F87
1 changed files with 23 additions and 13 deletions

View File

@ -4944,7 +4944,7 @@ libxml to ease remote use of the RESTful API.")
(define-public libshumate (define-public libshumate
(package (package
(name "libshumate") (name "libshumate")
(version "1.0.0.beta") ;no stable release yet (version "1.0.5")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
(uri (string-append "mirror://gnome/sources/" name "/" (uri (string-append "mirror://gnome/sources/" name "/"
@ -4952,25 +4952,35 @@ libxml to ease remote use of the RESTful API.")
name "-" version ".tar.xz")) name "-" version ".tar.xz"))
(sha256 (sha256
(base32 (base32
"13xrc07fm0967gzbqab8k0l3dnknh00p0a6f2dm7k0aa56q41sda")))) "0v4m07vxm3m4a2vqkp2wfsc3zsf92fpigc1k8yq49vkpj7gxikx8"))))
(build-system meson-build-system) (build-system meson-build-system)
(arguments (list #:configure-flags #~(list "-Dlibsoup3=true") (arguments
#:phases #~(modify-phases %standard-phases (list #:configure-flags #~(list "-Dlibsoup3=true")
(add-before 'check 'pre-check #:phases
(lambda _ #~(modify-phases %standard-phases
;; The 'coordinate' test requires a (replace 'check
;; writable HOME. (lambda* (#:key tests? test-options #:allow-other-keys)
(setenv "HOME" "/tmp") (when tests?
;; Some tests expect to write to $HOME.
(setenv "HOME" "/tmp")
(setenv "XDG_RUNTIME_DIR" "/tmp/run")
(setenv "XDG_CACHE_HOME" "/tmp/cache")
;; Tests require a running X server. ;; Tests require a running X server.
(system "Xvfb :1 &") (system "Xvfb :1 &")
(setenv "DISPLAY" ":1")))))) (setenv "DISPLAY" ":1")
(apply invoke "dbus-run-session" "--" "meson" "test"
"--print-errorlogs" test-options)))))))
(native-inputs (native-inputs
(list gi-docgen (list gi-docgen
`(,glib "bin") `(,glib "bin")
gobject-introspection gobject-introspection
pkg-config pkg-config
xorg-server-for-tests)) ;; For tests:
xorg-server-for-tests
dbus
at-spi2-core))
(propagated-inputs (propagated-inputs
;; All the libraries are listed as "Requires' in the .pc file. ;; All the libraries are listed as "Requires' in the .pc file.
(list cairo (list cairo