mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: dino: Update to 0.5.0.
* gnu/packages/messaging.scm (dino): Update to 0.5.0. [build-system]: Use meson-build-system. [arguments]: Drop configure-flags, parallel-build, modules, and imported-modules. <#:glib-or-gtk?>: Set to #t. <#:phases>: Adjust accordingly. Add ‘hardcode-version’. [inputs]: Replace libsignal-protocol-c with libomemo-c.
This commit is contained in:
parent
9e638cb244
commit
f9a7f2c8af
1 changed files with 13 additions and 25 deletions
|
@ -1408,7 +1408,7 @@ Encryption to Gajim.")
|
||||||
(define-public dino
|
(define-public dino
|
||||||
(package
|
(package
|
||||||
(name "dino")
|
(name "dino")
|
||||||
(version "0.4.5")
|
(version "0.5.0")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
|
@ -1416,24 +1416,19 @@ Encryption to Gajim.")
|
||||||
(string-append "https://github.com/dino/dino/releases/download/v"
|
(string-append "https://github.com/dino/dino/releases/download/v"
|
||||||
version "/dino-" version ".tar.gz"))
|
version "/dino-" version ".tar.gz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "129v048k3fp0xwwm6fr5h9nn82zg8bp66z3dy0jsqqd3wdxsxqw1"))))
|
(base32 "1hghyldh95i6sx778nkbmfn5qbi2h7qpv59vzi7zz9anmxgjckli"))))
|
||||||
(build-system cmake-build-system)
|
(build-system meson-build-system)
|
||||||
(outputs '("out" "debug"))
|
(outputs '("out" "debug"))
|
||||||
(arguments
|
(arguments
|
||||||
(list #:configure-flags #~(list "-DBUILD_TESTS=true" "-DUSE_SOUP3=true")
|
(list #:glib-or-gtk? #t
|
||||||
#:parallel-build? #f ; not supported
|
|
||||||
#:modules '((guix build cmake-build-system)
|
|
||||||
((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:)
|
|
||||||
(guix build utils))
|
|
||||||
#:imported-modules `(,@%default-gnu-imported-modules
|
|
||||||
(guix build cmake-build-system)
|
|
||||||
(guix build glib-or-gtk-build-system))
|
|
||||||
#:phases
|
#:phases
|
||||||
#~(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
;; For A/V support.
|
(add-after 'unpack 'hardcode-version
|
||||||
(add-after 'unpack 'generate-gdk-pixbuf-loaders-cache-file
|
(lambda _
|
||||||
(assoc-ref glib-or-gtk:%standard-phases
|
;; XXX: the meson.build code to locate the version script
|
||||||
'generate-gdk-pixbuf-loaders-cache-file))
|
;; is wrong and raises an error.
|
||||||
|
(substitute* "libdino/src/version.vala.in"
|
||||||
|
(("%VERSION%") #$version))))
|
||||||
(add-after 'install 'wrap
|
(add-after 'install 'wrap
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(let* ((out (assoc-ref outputs "out"))
|
(let* ((out (assoc-ref outputs "out"))
|
||||||
|
@ -1442,21 +1437,14 @@ Encryption to Gajim.")
|
||||||
(wrap-program dino
|
(wrap-program dino
|
||||||
`("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))
|
`("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))
|
||||||
`("GDK_PIXBUF_MODULE_FILE" =
|
`("GDK_PIXBUF_MODULE_FILE" =
|
||||||
(,(getenv "GDK_PIXBUF_MODULE_FILE")))))))
|
(,(getenv "GDK_PIXBUF_MODULE_FILE"))))))))))
|
||||||
(add-after 'install 'glib-or-gtk-wrap
|
|
||||||
(assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap))
|
|
||||||
(replace 'check
|
|
||||||
(lambda* (#:key tests? #:allow-other-keys)
|
|
||||||
(when tests?
|
|
||||||
(invoke "./libdino-test")
|
|
||||||
(invoke "./signal-protocol-vala-test")
|
|
||||||
(invoke "./xmpp-vala-test")))))))
|
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list gettext-minimal
|
(list gettext-minimal
|
||||||
`(,glib "bin")
|
`(,glib "bin")
|
||||||
gobject-introspection
|
gobject-introspection
|
||||||
`(,gtk "bin")
|
`(,gtk "bin")
|
||||||
pkg-config
|
pkg-config
|
||||||
|
;; python ; for version.py
|
||||||
vala))
|
vala))
|
||||||
(inputs
|
(inputs
|
||||||
(list adwaita-icon-theme
|
(list adwaita-icon-theme
|
||||||
|
@ -1479,7 +1467,7 @@ Encryption to Gajim.")
|
||||||
libgcrypt
|
libgcrypt
|
||||||
libgee
|
libgee
|
||||||
libnice
|
libnice
|
||||||
libsignal-protocol-c
|
libomemo-c
|
||||||
libsoup
|
libsoup
|
||||||
libsrtp ;for calls support
|
libsrtp ;for calls support
|
||||||
pango ;gtk4 wants pango 1.50+
|
pango ;gtk4 wants pango 1.50+
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue