From 4444c742902b140042c325466afd544b2b686e15 Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Tue, 4 Aug 2020 10:16:18 -0400 Subject: [PATCH 13/19] gnu: gnome-calculator: Update package definition. * gnu/packages/gnome.scm (gnome-calculator) [version]: Update to 3.36.0. [source][sha256]: Modify base32. [outputs]: New output "help". [arguments]<#:phases>['skip-gtk-update-icon-cache]: New phase. ['move-help]: New phase. [native-inputs]: Add gobject-introspection. [inputs]: Move libgee to ... [propagated-inputs]: ... here. Add glib and gtk+. [synopsis]: Modify. [license]: Modify. --- gnu/packages/gnome.scm | 61 +++++++++++++++++++++++++++++------------- 1 file changed, 42 insertions(+), 19 deletions(-) diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm index fe21f55bdc..20b83ac050 100644 --- a/gnu/packages/gnome.scm +++ b/gnu/packages/gnome.scm @@ -11344,39 +11344,62 @@ handling the startup notification side.") (define-public gnome-calculator (package (name "gnome-calculator") - (version "3.34.1") + (version "3.36.0") (source (origin (method url-fetch) - (uri (string-append "mirror://gnome/sources/" name "/" - (version-major+minor version) "/" - name "-" version ".tar.xz")) + (uri + (string-append "mirror://gnome/sources/" name "/" + (version-major+minor version) "/" + name "-" version ".tar.xz")) (sha256 - (base32 - "0lbh87255zzggqzai6543qg920y52bl4vs5m5h5087ghzg14hlsd")))) + (base32 "1cqd4b25qp1i0p04m669jssg1l5sdapc1mniv9jssvw5r7wk1s52")))) (build-system meson-build-system) - (arguments '(#:glib-or-gtk? #t)) + (outputs '("out" "help")) + (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 'move-help + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (help (assoc-ref outputs "help"))) + (mkdir-p (string-append help "/share")) + (rename-file + (string-append out "/share/help") + (string-append help "/share/help")) + (rename-file + (string-append out "/share/devhelp") + (string-append help "/share/devhelp")) + #t)))))) (native-inputs `(("gettext" ,gettext-minimal) - ("glib:bin" ,glib "bin") ; for glib-compile-schemas, gio-2.0. - ("gtk+:bin" ,gtk+ "bin") ; for gtk-update-icon-cache + ("glib:bin" ,glib "bin") + ("gobject-introspection" ,gobject-introspection) ("itstool" ,itstool) - ("vala" ,vala) - ("pkg-config" ,pkg-config))) + ("pkg-config" ,pkg-config) + ("vala" ,vala))) (inputs - `(("glib" ,glib) - ("gtksourceview" ,gtksourceview) - ("libgee" ,libgee) + `(("gtksourceview" ,gtksourceview) ("libsoup" ,libsoup) ("libxml2" ,libxml2) ("mpc" ,mpc) ("mpfr" ,mpfr))) + (propagated-inputs + `(("gee" ,libgee) + ("glib" ,glib) + ("gtk+" ,gtk+))) + (synopsis "GNOME Calculator") + (description "GNOME-Calculator is an application that solves mathematical +equations and is suitable as a default application in a Desktop environment.") (home-page "https://wiki.gnome.org/Apps/Calculator") - (synopsis "Desktop calculator") - (description - "Calculator is an application that solves mathematical equations and -is suitable as a default application in a Desktop environment.") - (license license:gpl3))) + (license license:gpl3+))) (define-public xpad (package -- 2.28.0