[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
76/76: gnu: gnome-weather: Fix GNOME integration.
From: |
guix-commits |
Subject: |
76/76: gnu: gnome-weather: Fix GNOME integration. |
Date: |
Mon, 27 Sep 2021 10:18:34 -0400 (EDT) |
mothacehe pushed a commit to branch wip-gnome40
in repository guix.
commit 4687e652ada6815601e71fe4f4b23570814a8644
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 a347f97..a5dbba9 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -9206,10 +9206,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)
@@ -9217,24 +9215,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
- 26/76: gnu: gnome-boxes: Update to 40.3., (continued)
- 26/76: gnu: gnome-boxes: Update to 40.3., guix-commits, 2021/09/27
- 57/76: gnu: Remove gnome-getting-started-docs., guix-commits, 2021/09/27
- 59/76: gnu: gnome-control-center: Update to 40.1., guix-commits, 2021/09/27
- 55/76: gnu: gnome-keyring: Update to 40.0., guix-commits, 2021/09/27
- 52/76: gnu: gvfs: Update to 1.48.1., guix-commits, 2021/09/27
- 68/76: gnu: gnome-mines: Update to 40.0., guix-commits, 2021/09/27
- 75/76: gnu: gnome-music: Add gst-plugins-good., guix-commits, 2021/09/27
- 40/76: gnu: simple-scan: Update to 40.5., guix-commits, 2021/09/27
- 67/76: gnu: gnome-shell: Update to 40.5., guix-commits, 2021/09/27
- 28/76: gnu: nautilus: Update to 40.2., guix-commits, 2021/09/27
- 76/76: gnu: gnome-weather: Fix GNOME integration.,
guix-commits <=
- 35/76: gnu: gnome-characters: Update to 40.0., guix-commits, 2021/09/27
- 30/76: gnu: gnome-bluetooth: Update to 3.34.5., guix-commits, 2021/09/27
- 47/76: gnu: gsettings-desktop-schemas: Update to 40.0., guix-commits, 2021/09/27
- 50/76: gnu: graphene: Update to 1.10.6., guix-commits, 2021/09/27
- 62/76: gnu: gnome-music: Update to 40.1.1., guix-commits, 2021/09/27
- 70/76: gnu: devhelp: Update to 40.1., guix-commits, 2021/09/27
- 74/76: gnu: gnome: Add tracker-miners., guix-commits, 2021/09/27