gnu: xdg-desktop-portal-gtk: Update to 1.15.3.

* gnu/packages/freedesktop.scm (xdg-desktop-portal-gtk): Update to 1.15.3.
[build-system]: Switch to meson-build-system.
[arguments]: Add #:glib-or-gtk?.  Remove #:configure-flags.
[native-inputs]: Remove autoconf, automake, libtool, libxml2 and which.
[inputs]: Replace gtk+ with gtk.  Remove labels.

Change-Id: Ifaa7092872884b74fd3f783b677449935bfd4a2a
This commit is contained in:
Maxim Cournoyer 2025-05-17 19:42:34 +09:00 committed by Liliana Marie Prikler
parent cd61cbd9d9
commit 8e14a839af
No known key found for this signature in database
GPG key ID: 442A84B8C70E2F87

View file

@ -3218,7 +3218,7 @@ and others.")
(define-public xdg-desktop-portal-gtk (define-public xdg-desktop-portal-gtk
(package (package
(name "xdg-desktop-portal-gtk") (name "xdg-desktop-portal-gtk")
(version "1.14.1") (version "1.15.3")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
(uri (string-append (uri (string-append
@ -3226,44 +3226,12 @@ and others.")
version "/xdg-desktop-portal-gtk-" version ".tar.xz")) version "/xdg-desktop-portal-gtk-" version ".tar.xz"))
(sha256 (sha256
(base32 (base32
"002p19j1q3fc8x338ndzxnicwframpgafw31lwvv5avy329akqiy")))) "0drvlanj4pydcmq1fhk8nbj5mb2zpf2pxcqxd4g61a0r4hyp98s7"))))
(build-system glib-or-gtk-build-system) (build-system meson-build-system)
(arguments (arguments (list #:glib-or-gtk? #t))
`(#:phases (native-inputs (list gettext-minimal `(,glib "bin") pkg-config))
(modify-phases %standard-phases (inputs (list glib gtk fontconfig gnome-desktop gsettings-desktop-schemas))
(add-after 'unpack 'po-chmod (propagated-inputs (list xdg-desktop-portal))
(lambda _
;; Make sure 'msgmerge' can modify the PO files.
(for-each (lambda (po)
(chmod po #o666))
(find-files "po" "\\.po$"))
#t)))
;; Enable Gnome portal backends
#:configure-flags
(list
"--enable-appchooser"
"--enable-wallpaper"
"--enable-screenshot"
"--enable-screencast"
"--enable-background"
"--enable-settings")))
(native-inputs
`(("pkg-config" ,pkg-config)
("autoconf" ,autoconf)
("automake" ,automake)
("libtool" ,libtool)
("libxml2" ,libxml2)
("glib:bin" ,glib "bin")
("which" ,which)
("gettext" ,gettext-minimal)))
(inputs
`(("glib" ,glib)
("gtk" ,gtk+)
("fontconfig" ,fontconfig)
("gnome-desktop" ,gnome-desktop)
("gsettings-desktop-schemas" ,gsettings-desktop-schemas)))
(propagated-inputs
(list xdg-desktop-portal))
(home-page "https://github.com/flatpak/xdg-desktop-portal-gtk") (home-page "https://github.com/flatpak/xdg-desktop-portal-gtk")
(synopsis "GTK implementation of xdg-desktop-portal") (synopsis "GTK implementation of xdg-desktop-portal")
(description (description