[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
302/331: gnu: gnome-weather: Update package definition.
From: |
guix-commits |
Subject: |
302/331: gnu: gnome-weather: Update package definition. |
Date: |
Fri, 14 Aug 2020 11:14:18 -0400 (EDT) |
dannym pushed a commit to branch wip-desktop
in repository guix.
commit 830f605c2da1aeffa6005127551465382f3d7f6f
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 ef4643f..1789412 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -10484,58 +10484,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
- 327/331: build-system/python: Also wrap executables that are in "libexec"., (continued)
- 327/331: build-system/python: Also wrap executables that are in "libexec"., guix-commits, 2020/08/14
- 329/331: build-system/cmake: Wrap Python executables, too., guix-commits, 2020/08/14
- 301/331: gnu: gnome-user-share: Update package definition., guix-commits, 2020/08/14
- 304/331: gnu: Add liblouis., guix-commits, 2020/08/14
- 311/331: gnu: rygel: Update package definition., guix-commits, 2020/08/14
- 315/331: gnu: totem: Update package definition., guix-commits, 2020/08/14
- 316/331: gnu: wayland: Update package definition., guix-commits, 2020/08/14
- 322/331: gnu: mutter: Update package definition., guix-commits, 2020/08/14
- 325/331: build-system/glib-or-gtk: Include GI_TYPELIB_PATH in wrapper., guix-commits, 2020/08/14
- 328/331: build-system/meson: Wrap Python executables, too., guix-commits, 2020/08/14
- 302/331: gnu: gnome-weather: Update package definition.,
guix-commits <=
- 303/331: gnu: nautilus: Update package definition., guix-commits, 2020/08/14
- 305/331: gnu: Add liblouisutdml., guix-commits, 2020/08/14
- 306/331: gnu: Add latex2html., guix-commits, 2020/08/14
- 307/331: gnu: Add libbraille., guix-commits, 2020/08/14
- 310/331: gnu: gst-editing-services: Update package definition., guix-commits, 2020/08/14
- 318/331: gnu: Add eglexternalplatform., guix-commits, 2020/08/14
- 320/331: gnu: Add mozjs-68., guix-commits, 2020/08/14
- 323/331: gnu: gdm: Update package definition., guix-commits, 2020/08/14
- 324/331: gnu: gnome-shell: Update package definition., guix-commits, 2020/08/14
- 326/331: build-system/glib-or-gtk: Also wrap executables that are in "sbin"., guix-commits, 2020/08/14