gnu: gnome-characters: Update to 42.0.

* gnu/packages/gnome.scm (gnome-characters): Update to 42.0.
[phases]{disable-gtk-update-icon-cache}: New phase.
{wrap}: Use search-input-file.
[native-inputs]: Delete labels.  Remove gtk+:bin.
[inputs]: Replace gtk+ with gtk. Add libadwaita.
This commit is contained in:
Maxim Cournoyer 2022-09-05 02:40:33 -04:00
parent 3c2a706047
commit dd5d0fd76b
No known key found for this signature in database
GPG Key ID: 1260E46482E63562

View File

@ -2032,7 +2032,7 @@ to other formats.")
(define-public gnome-characters (define-public gnome-characters
(package (package
(name "gnome-characters") (name "gnome-characters")
(version "40.0") (version "42.0")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
@ -2041,28 +2041,35 @@ to other formats.")
"/gnome-characters-" version ".tar.xz")) "/gnome-characters-" version ".tar.xz"))
(sha256 (sha256
(base32 (base32
"0z2xa4w921bzpzj6gv88pvbrijcnnwni6jxynwz0ybaravyzaqha")))) "1y40g7k7yyzikbbxhf69q4c0221lga1cli1p617v99pq2swgz82x"))))
(build-system meson-build-system) (build-system meson-build-system)
(arguments (arguments
`(#:glib-or-gtk? #t (list
#:meson ,meson-0.60 #:glib-or-gtk? #t
#:phases (modify-phases %standard-phases #:phases #~(modify-phases %standard-phases
(add-after 'install 'wrap (add-after 'unpack 'disable-gtk-update-icon-cache
(lambda* (#:key outputs #:allow-other-keys) (lambda _
;; GNOME Characters needs Typelib files from GTK and (setenv "DESTDIR" "/")))
;; gnome-desktop. (add-after 'install 'wrap
(wrap-program (string-append (assoc-ref outputs "out") (lambda* (#:key outputs #:allow-other-keys)
"/bin/gnome-characters") ;; GNOME Characters needs Typelib files from GTK and
`("GI_TYPELIB_PATH" ":" prefix ;; gnome-desktop.
(,(getenv "GI_TYPELIB_PATH"))))))))) (wrap-program (search-input-file outputs
"bin/gnome-characters")
`("GI_TYPELIB_PATH" ":" prefix
(,(getenv "GI_TYPELIB_PATH")))))))))
(native-inputs (native-inputs
`(("gettext" ,gettext-minimal) (list gettext-minimal
("glib:bin" ,glib "bin") `(,glib "bin")
("gtk+:bin" ,gtk+ "bin") pkg-config
("pkg-config" ,pkg-config) python-minimal))
("python" ,python-minimal)))
(inputs (inputs
(list gjs gtk+ libhandy libunistring gnome-desktop)) (list gjs
gnome-desktop
gtk
libadwaita
libhandy
libunistring))
(home-page "https://wiki.gnome.org/Apps/CharacterMap") (home-page "https://wiki.gnome.org/Apps/CharacterMap")
(synopsis "Find and insert unusual characters") (synopsis "Find and insert unusual characters")
(description "Characters is a simple utility application to find (description "Characters is a simple utility application to find