[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
83/181: gnu: gnome-weather: Update to 42.0.
From: |
guix-commits |
Subject: |
83/181: gnu: gnome-weather: Update to 42.0. |
Date: |
Tue, 13 Sep 2022 02:25:52 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit ddc0c5e961c84dc703537a9a1b1d78b0aa59630d
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Thu Sep 8 11:09:15 2022 -0400
gnu: gnome-weather: Update to 42.0.
* gnu/packages/gnome.scm (gnome-weather): Update to 42.0.
[native-inputs, inputs]: Move after arguments.
[arguments]: Use a plain list and adjust accordingly.
[phases]{disable-gtk-update-icon-cache}: New phase.
{fix-desktop-file}: Use search-input-file.
{wrap}: Likewise.
[native-inputs]: Delete gtk+:bin.
[inputs]: Delete gnome-desktop and libhandy. Replace libgweather with
libgweather4. Add bash-minimal, gsettings-desktop-schemas-next, gtk and
libadwaita.
---
gnu/packages/gnome.scm | 111 +++++++++++++++++++++++++------------------------
1 file changed, 57 insertions(+), 54 deletions(-)
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 52ea77ec6b..cd0254ff1c 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -9624,63 +9624,66 @@ associations for GNOME.")
(define-public gnome-weather
(package
- (name "gnome-weather")
- (version "40.1")
- (source (origin
- (method url-fetch)
- (uri (string-append "mirror://gnome/sources/" name "/"
- (version-major version) "/"
- name "-" version ".tar.xz"))
- (sha256
- (base32
- "0k9wnyinvx6433r07kvjyahgqc605g7gbpf3d0h6vi4p8x61849x"))))
- (build-system meson-build-system)
- (native-inputs
- `(("gettext" ,gettext-minimal)
- ("glib:bin" ,glib "bin")
- ("gobject-introspection" ,gobject-introspection)
- ("gtk+:bin" ,gtk+ "bin")
- ("pkg-config" ,pkg-config)))
- (inputs
- (list appstream-glib
- geoclue
- gjs
- gnome-desktop
- libgweather
- libhandy))
- (arguments
- `(#:glib-or-gtk? #t
- #:meson ,meson-0.60
+ (name "gnome-weather")
+ (version "42.0")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "mirror://gnome/sources/" name "/"
+ (version-major version) "/"
+ name "-" version ".tar.xz"))
+ (sha256
+ (base32
+ "0rdl0ywdk8jlq819wr1sbdzdvsasz11pp30fylzvprakv28yd7jp"))))
+ (build-system meson-build-system)
+ (arguments
+ (list
+ #:glib-or-gtk? #t
#:phases
- ,#~(modify-phases %standard-phases
- (add-after 'unpack 'fix-service-file
- (lambda _
- (substitute* "data/org.gnome.Weather.service.in"
- (("Exec=[[:graph:]]+")
- (string-append "Exec=" #$output
- "/bin/gnome-weather")))))
- (add-after 'install 'fix-desktop-file
- ;; FIXME: "gapplication launch org.gnome.Weather" fails for some
- ;; reason. See https://issues.guix.gnu.org/issue/39324.
- (lambda _
- (let ((applications
- (string-append #$output "/share/applications")))
- (substitute* (string-append applications
- "/org.gnome.Weather.desktop")
- (("Exec=.*") "Exec=gnome-weather\n")))))
- (add-after 'install 'wrap
- (lambda _
- (let ((gi-typelib-path (getenv "GI_TYPELIB_PATH")))
- ;; GNOME Weather needs the typelib files of GTK+, Pango etc
- ;; at runtime.
- (wrap-program (string-append #$output "/bin/gnome-weather")
- `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path)))))))))
- (synopsis "Weather monitoring for GNOME desktop")
- (description "GNOME Weather is a small application that allows you to
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'fix-service-file
+ (lambda _
+ (substitute* "data/org.gnome.Weather.service.in"
+ (("Exec=[[:graph:]]+")
+ (string-append "Exec=" #$output
+ "/bin/gnome-weather")))))
+ (add-after 'unpack 'disable-gtk-update-icon-cache
+ (lambda _
+ (setenv "DESTDIR" "/")))
+ (add-after 'install 'fix-desktop-file
+ ;; FIXME: "gapplication launch org.gnome.Weather" fails for some
+ ;; reason. See https://issues.guix.gnu.org/issue/39324.
+ (lambda* (#:key outputs #:allow-other-keys)
+ (substitute* (search-input-file
+ outputs
+ "share/applications/org.gnome.Weather.desktop")
+ (("Exec=.*") "Exec=gnome-weather\n"))))
+ (add-after 'install 'wrap
+ (lambda* (#:key outputs #:allow-other-keys)
+ ;; GNOME Weather needs the typelib files of GTK+, Pango etc at
+ ;; runtime.
+ (wrap-program (search-input-file outputs "bin/gnome-weather")
+ `("GI_TYPELIB_PATH" ":" prefix
+ (,(getenv "GI_TYPELIB_PATH")))))))))
+ (native-inputs
+ (list gettext-minimal
+ `(,glib "bin")
+ gobject-introspection
+ pkg-config))
+ (inputs
+ (list appstream-glib
+ bash-minimal
+ geoclue
+ gjs
+ gsettings-desktop-schemas-next
+ gtk
+ libadwaita
+ libgweather4))
+ (synopsis "Weather monitoring for GNOME desktop")
+ (description "GNOME Weather is a small application that allows you to
monitor the current weather conditions for your city, or anywhere in the
world.")
- (home-page "https://wiki.gnome.org/Apps/Weather")
- (license license:gpl2+)))
+ (home-page "https://wiki.gnome.org/Apps/Weather")
+ (license license:gpl2+)))
(define-public gnome
(package
- 163/181: gnu: Add webkitgtk-next., (continued)
- 163/181: gnu: Add webkitgtk-next., guix-commits, 2022/09/13
- 154/181: gnu: polari: Update to 42.1., guix-commits, 2022/09/13
- 150/181: gnu: sound-juicer: Update to 3.38.0., guix-commits, 2022/09/13
- 151/181: gnu: ghex: Update to 42.3., guix-commits, 2022/09/13
- 152/181: gnu: libgit2-glib: Update to 1.1.0., guix-commits, 2022/09/13
- 159/181: gnu: sysprof: Update to 3.45.1., guix-commits, 2022/09/13
- 160/181: gnu: gnome-builder: Update to 42.1., guix-commits, 2022/09/13
- 58/181: gnu: gnome-bluetooth: Update to 42.4., guix-commits, 2022/09/13
- 65/181: gnu: evince: Update to 42.3., guix-commits, 2022/09/13
- 72/181: gnu: pango-next: Rename from "pango "to "pango-next"., guix-commits, 2022/09/13
- 83/181: gnu: gnome-weather: Update to 42.0.,
guix-commits <=
- 138/181: gnu: tracker: Patch a /bin/bash reference., guix-commits, 2022/09/13
- 166/181: gnu: libofx: Update to 0.10.7., guix-commits, 2022/09/13
- 162/181: gnu: libsoup: Update to 3.1.4., guix-commits, 2022/09/13
- 161/181: gnu: numix-gtk-theme: Remove input labels., guix-commits, 2022/09/13
- 156/181: gnu: apostrophe: Update to 2.6.3., guix-commits, 2022/09/13
- 173/181: gnu: arc-theme: Update to 20220405., guix-commits, 2022/09/13
- 175/181: gnu: Add libshumate., guix-commits, 2022/09/13
- 174/181: gnu: gnome-shell: Use libsoup 3 to fix tests., guix-commits, 2022/09/13
- 181/181: gnu: gnome-screenshot: Remove meson patch., guix-commits, 2022/09/13
- 110/181: gnu: seahorse: Update to 42.0., guix-commits, 2022/09/13