[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
76/80: gnu: gnome-weather: Fix GNOME integration.
From: |
guix-commits |
Subject: |
76/80: gnu: gnome-weather: Fix GNOME integration. |
Date: |
Sat, 2 Oct 2021 06:56:18 -0400 (EDT) |
mothacehe pushed a commit to branch core-updates-frozen
in repository guix.
commit 391fb7a60a71f9dc24970dbf78f50cf2c4ccd686
Author: Mathieu Othacehe <othacehe@gnu.org>
AuthorDate: Mon Sep 27 11:48:38 2021 +0000
gnu: gnome-weather: Fix GNOME integration.
Fixes: <https://issues.guix.gnu.org/39324>.
* gnu/packages/gnome.scm (gnome-weather)[inputs]: Remove gdk-pixbuf.
[arguments]: Use a gexp to defined the phases. Add a 'fix-service-file phase
and adapt 'fix-desktop-file and 'wrap phases. Remove trailing #t.
---
gnu/packages/gnome.scm | 45 ++++++++++++++++++++++++---------------------
1 file changed, 24 insertions(+), 21 deletions(-)
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 27fcb1c..168949a 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -9213,10 +9213,8 @@ associations for GNOME.")
("gtk+:bin" ,gtk+ "bin")
("pkg-config" ,pkg-config)))
(inputs
- `( ;("adwaita-icon-theme" ,adwaita-icon-theme)
- ("appstream-glib" ,appstream-glib)
+ `(("appstream-glib" ,appstream-glib)
("geoclue" ,geoclue)
- ("gdk-pixbuf" ,gdk-pixbuf)
("gjs" ,gjs)
("gnome-desktop" ,gnome-desktop)
("libgweather" ,libgweather)
@@ -9224,24 +9222,29 @@ associations for GNOME.")
(arguments
`(#:glib-or-gtk? #t
#:phases
- (modify-phases %standard-phases
- (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)
- (let* ((out (assoc-ref outputs "out"))
- (applications (string-append out "/share/applications")))
- (substitute* (string-append applications
"/org.gnome.Weather.desktop")
- (("Exec=.*") "Exec=gnome-weather\n"))
- #t)))
- (add-after 'install 'wrap
- (lambda* (#:key inputs outputs #:allow-other-keys)
- (let ((out (assoc-ref outputs "out"))
- (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
- ;; GNOME Weather needs the typelib files of GTK+, Pango etc at
runtime.
- (wrap-program (string-append out "/bin/gnome-weather")
- `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path)))
- #t))))))
+ ,#~(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
monitor the current weather conditions for your city, or anywhere in the
- 49/80: gnu: Add fuse-3., (continued)
- 49/80: gnu: Add fuse-3., guix-commits, 2021/10/02
- 51/80: gnu: libgdata: Update to 0.18.1., guix-commits, 2021/10/02
- 54/80: gnu: gnome-settings-daemon: Update to 40.0.1., guix-commits, 2021/10/02
- 58/80: gnu: gnome-initial-setup: Update to 40.4., guix-commits, 2021/10/02
- 59/80: gnu: gnome-control-center: Update to 40.1., guix-commits, 2021/10/02
- 60/80: gnu: accountsservice: Update to 0.6.55., guix-commits, 2021/10/02
- 63/80: gnu: gnome-online-miners: Fix build., guix-commits, 2021/10/02
- 64/80: gnu: gnome-photos: Update to 40.0., guix-commits, 2021/10/02
- 65/80: gnu: gnome: Add gnome-music and gnome-photo., guix-commits, 2021/10/02
- 68/80: gnu: gnome-mines: Update to 40.0., guix-commits, 2021/10/02
- 76/80: gnu: gnome-weather: Fix GNOME integration.,
guix-commits <=
- 79/80: system: Introduce the os-release file., guix-commits, 2021/10/02
- 78/80: system: Add guix-icons to the base packages., guix-commits, 2021/10/02
- 73/80: gnu: gegl: Add libraw support., guix-commits, 2021/10/02
- 80/80: gnu: gdm: Add the Guix icon., guix-commits, 2021/10/02
- 74/80: gnu: gnome: Add tracker-miners., guix-commits, 2021/10/02
- 77/80: gnu: Add guix-icons., guix-commits, 2021/10/02
- 67/80: gnu: gnome-shell: Update to 40.5., guix-commits, 2021/10/02
- 69/80: gnu: gnome-sudoku: Update to 40.2., guix-commits, 2021/10/02
- 75/80: gnu: gnome-music: Add gst-plugins-good., guix-commits, 2021/10/02