gnu: polari: Update to 42.1.

* gnu/packages/gnome.scm (polari): Update to 42.1.
[phases]{skip-gtk-update-icon-cache}: Adjust.
{fix-desktop-file}: Punctuate comment.  Use search-input-file.
{wrap-typelib}: Likewise.
[inputs]: Move field after native-inputs.  Replace libsoup-minimal-2 with
libsoup.  Add bash-minimal.
[native-inputs]: Replace intltool with gettext-minimal.
This commit is contained in:
Maxim Cournoyer 2022-09-10 11:29:29 -04:00
parent 6f4424282e
commit 70f1fd9aad
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -11949,7 +11949,7 @@ (define-public gnote
(define-public polari
(package
(name "polari")
(version "41.0")
(version "42.1")
(source (origin
(method url-fetch)
(uri (string-append "mirror://gnome/sources/polari/"
@ -11957,7 +11957,7 @@ (define-public polari
"/polari-" version ".tar.xz"))
(sha256
(base32
"1ss0x8idwar1q9p9535kzqb8idy7k2r48vrbjiyccw03cs0mzc53"))))
"0gbbjs522a8vdps79m1h3krkizbld61h8r1hn9z41gpc904cz45g"))))
(build-system meson-build-system)
(arguments
`(#:glib-or-gtk? #t
@ -11965,39 +11965,43 @@ (define-public polari
(modify-phases %standard-phases
(add-after 'unpack 'skip-gtk-update-icon-cache
(lambda _
(substitute* "meson/meson-postinstall.sh"
(("gtk-update-icon-cache") (which "true")))))
(substitute* "meson.build"
(("gtk_update_icon_cache: true")
"gtk_update_icon_cache: false"))))
(add-after 'install 'fix-desktop-file
;; Hardcode launcher to be on the safe side
;; Hard-code launcher to be on the safe side.
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
(substitute* (string-append out "/share/applications/"
"org.gnome.Polari.desktop")
(("Exec=.*") (string-append "Exec=" out "/bin/polari\n"))))))
(substitute* (search-input-file
outputs
"share/applications/org.gnome.Polari.desktop")
(("Exec=.*")
(string-append "Exec=" (search-input-file outputs "bin/polari")
"\n")))))
(add-after 'glib-or-gtk-wrap 'wrap-typelib
(lambda* (#:key outputs #:allow-other-keys)
(let ((prog (string-append (assoc-ref outputs "out")
"/bin/polari")))
(wrap-program prog
`("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))))))))
(wrap-program (search-input-file outputs "bin/polari")
`("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))))))))
(native-inputs
(list desktop-file-utils
gettext-minimal
`(,glib "bin")
gobject-introspection
pkg-config
yelp-tools))
(inputs
(list glib
(list bash-minimal
glib
gsettings-desktop-schemas
gspell
gtk
gjs
libsecret
libsoup-minimal-2
libsoup
telepathy-glib
telepathy-logger))
(native-inputs
(list `(,glib "bin")
gobject-introspection
intltool
pkg-config
yelp-tools))
(propagated-inputs
(list telepathy-idle telepathy-mission-control))
(list telepathy-idle
telepathy-mission-control))
(synopsis "Simple IRC Client")
(description
"Polari is a simple Internet Relay Chat (IRC) client that is designed to