[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
302/402: gnu: gnome-weather: Update package definition.
From: |
guix-commits |
Subject: |
302/402: gnu: gnome-weather: Update package definition. |
Date: |
Tue, 18 Aug 2020 16:48:08 -0400 (EDT) |
dannym pushed a commit to branch wip-desktop
in repository guix.
commit 8b78af66d9c2f316f4fcee7375fe0b998063e810
Author: Raghav Gururajan <raghavgururajan@disroot.org>
AuthorDate: Thu Aug 6 21:59:02 2020 -0400
gnu: gnome-weather: Update package definition.
* gnu/packages/gnome.scm (gnome-weather) [version]: Update to 3.36.1.
[sources]<origin>[sha256]: Modify base32.
[arguments]<#:phases>['skip-gtk-update-icon-cache]: New phase.
['fix-desktop-file]: Remove phase.
['wrap]: Modify phase.
[native-inputs]: Add desktop-file-utils and python-wrapper. Remove
gtk+:bin.
[inputs]: Add glib and gtk+. Change gdk-pixbuf to gdk-pixbuf+svg.
Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
---
gnu/packages/gnome.scm | 102 ++++++++++++++++++++++++-------------------------
1 file changed, 50 insertions(+), 52 deletions(-)
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index a1c642b..4141c5e 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -10487,58 +10487,56 @@ associations for GNOME.")
(define-public gnome-weather
(package
- (name "gnome-weather")
- (version "3.34.0")
- (source (origin
- (method url-fetch)
- (uri (string-append "mirror://gnome/sources/" name "/"
- (version-major+minor version) "/"
- name "-" version ".tar.xz"))
- (sha256
- (base32
- "1g63xzs17i36if923b36k9fwbk0nqa5vz6zh1k6q2axrzhhpx1i4"))))
- (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
- `( ;("adwaita-icon-theme" ,adwaita-icon-theme)
- ("appstream-glib" ,appstream-glib)
- ("geoclue" ,geoclue)
- ("gdk-pixbuf" ,gdk-pixbuf)
- ("gjs" ,gjs)
- ("gnome-desktop" ,gnome-desktop)
- ("libgweather" ,libgweather)))
- (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))))))
- (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+)))
+ (name "gnome-weather")
+ (version "3.36.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri
+ (string-append "mirror://gnome/sources/" name "/"
+ (version-major+minor version) "/"
+ name "-" version ".tar.xz"))
+ (sha256
+ (base32 "11z75ky6xp9hx7lm24xng7ydr20bzh4d6p9sbi9c8ccz2m3fdrk8"))))
+ (build-system meson-build-system)
+ (arguments
+ `(#:glib-or-gtk? #t ; To wrap binaries and/or compile schemas
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'configure 'skip-gtk-update-icon-cache
+ (lambda _
+ (substitute* "meson_post_install.py"
+ (("gtk-update-icon-cache")
+ "true"))
+ #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")))
+ (wrap-program (string-append out "/bin/gnome-weather")
+ `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path)))
+ #t))))))
+ (native-inputs
+ `(("desktop-file-utils" ,desktop-file-utils)
+ ("gettext" ,gettext-minimal)
+ ("glib:bin" ,glib "bin")
+ ("gobject-introspection" ,gobject-introspection)
+ ("pkg-config" ,pkg-config)
+ ("python" ,python-wrapper)))
+ (inputs
+ `(("appstream-util" ,appstream-glib)
+ ("gdk-pixbuf" ,gdk-pixbuf+svg)
+ ("geoclue" ,geoclue)
+ ("gjs" ,gjs)
+ ("glib" ,glib)
+ ("gnome-desktop" ,gnome-desktop)
+ ("gtk+" ,gtk+)
+ ("gweather" ,libgweather)))
+ (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+)))
(define-public gnome
(package
- 217/402: gnu: Add ldns., (continued)
- 217/402: gnu: Add ldns., guix-commits, 2020/08/18
- 222/402: gnu: network-manager-applet: Update package definition., guix-commits, 2020/08/18
- 229/402: gnu: libquvi-scripts: Update package definition., guix-commits, 2020/08/18
- 225/402: gnu: gtksourceview: Fix glade., guix-commits, 2020/08/18
- 228/402: gnu: tepl: Update package definition., guix-commits, 2020/08/18
- 232/402: gnu: Add libstemmer., guix-commits, 2020/08/18
- 284/402: gnu: libostree: Update package definition., guix-commits, 2020/08/18
- 288/402: gnu: gnome-keyring: Update package definition., guix-commits, 2020/08/18
- 289/402: gnu: gnome-maps: Update package definition., guix-commits, 2020/08/18
- 294/402: gnu: gnome-session: Update package definition., guix-commits, 2020/08/18
- 302/402: gnu: gnome-weather: Update package definition.,
guix-commits <=
- 115/402: gnu: Add rust-peg@0.5.7., guix-commits, 2020/08/18
- 122/402: gnu: Add rust-xml5ever@0.16.1., guix-commits, 2020/08/18
- 128/402: gnu: gtk+: Add missing input., guix-commits, 2020/08/18
- 149/402: gnu: Add libsigc++-2., guix-commits, 2020/08/18
- 155/402: gnu: pangomm: Update package definition., guix-commits, 2020/08/18
- 157/402: gnu: java-jakarta-oro: Update hash., guix-commits, 2020/08/18
- 160/402: gnu: gtksourceviewmm: Update package definition., guix-commits, 2020/08/18
- 171/402: gnu: Add mrg., guix-commits, 2020/08/18
- 182/402: gnu: gdk-pixbuf: Disable failing tests., guix-commits, 2020/08/18
- 184/402: gnu: grilo: Update package definition., guix-commits, 2020/08/18