[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
178/181: gnu: gpaste: Update to 42.1.
From: |
guix-commits |
Subject: |
178/181: gnu: gpaste: Update to 42.1. |
Date: |
Tue, 13 Sep 2022 02:26:34 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit 2f12a4609035f23a717d665fdcee16a3c4de651f
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Mon Sep 12 14:24:06 2022 -0400
gnu: gpaste: Update to 42.1.
* gnu/packages/gnome-xyz.scm (gpaste): Update to 42.1.
[meson]: Delete argument.
[phases]{fix-introspection-install-dir}: Use #$output.
[native-inputs]: Remove autoconf, automake and libtool.
[inputs]: Remove graphene. Add gtk and libadwaita. Sort.
* gnu/packages/patches/gpaste-fix-paths.patch: Update patch.
---
gnu/packages/gnome-xyz.scm | 31 +++++++++++++++++------------
gnu/packages/patches/gpaste-fix-paths.patch | 29 +++++++++++++++++++++++----
2 files changed, 43 insertions(+), 17 deletions(-)
diff --git a/gnu/packages/gnome-xyz.scm b/gnu/packages/gnome-xyz.scm
index 48b162d09a..74eaf74a37 100644
--- a/gnu/packages/gnome-xyz.scm
+++ b/gnu/packages/gnome-xyz.scm
@@ -776,7 +776,7 @@ notebooks and tiling window managers.")
(define-public gpaste
(package
(name "gpaste")
- (version "3.42.2")
+ (version "42.1")
(source (origin
(method git-fetch)
(uri (git-reference
@@ -785,19 +785,25 @@ notebooks and tiling window managers.")
(file-name (git-file-name name version))
(sha256
(base32
- "1k5qvgzwl357k72qfim5zfas2a0n6j24jnlm1v472l7h6gb6lssm"))
+ "1dlqa69zvzzdxyh21qfrx2nhpfy0fbihxpgkxqmramcgv3h5k4q3"))
(patches
(search-patches "gpaste-fix-paths.patch"))))
(build-system meson-build-system)
(native-inputs
- (list autoconf automake gettext-minimal gobject-introspection
+ (list gettext-minimal
+ gobject-introspection
(list glib "bin") ; for glib-compile-resources
- libtool pkg-config vala))
+ pkg-config
+ vala))
(inputs
- (list appstream-glib libarchive gjs mutter graphene))
+ (list appstream-glib
+ gjs
+ gtk
+ mutter
+ libadwaita
+ libarchive))
(arguments
- (list #:meson meson-0.59 ;positional arguments error with meson 0.60
- #:glib-or-gtk? #true
+ (list #:glib-or-gtk? #true
#:configure-flags
#~(list
(string-append "-Dcontrol-center-keybindings-dir="
@@ -809,12 +815,11 @@ notebooks and tiling window managers.")
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'fix-introspection-install-dir
- (lambda* (#:key outputs #:allow-other-keys)
- (let ((out (assoc-ref outputs "out")))
- (substitute* '("src/gnome-shell/extension.js"
- "src/gnome-shell/prefs.js")
- (("@typelibPath@")
- (string-append out "/lib/girepository-1.0/")))))))))
+ (lambda _
+ (substitute* '("src/gnome-shell/extension.js"
+ "src/gnome-shell/prefs.js")
+ (("@typelibPath@")
+ (string-append #$output "/lib/girepository-1.0/"))))))))
(home-page "https://github.com/Keruspe/GPaste")
(synopsis "Clipboard management system for GNOME Shell")
(description "GPaste is a clipboard manager, a tool which allows you to
diff --git a/gnu/packages/patches/gpaste-fix-paths.patch
b/gnu/packages/patches/gpaste-fix-paths.patch
index be63878fe6..bacecd61a9 100644
--- a/gnu/packages/patches/gpaste-fix-paths.patch
+++ b/gnu/packages/patches/gpaste-fix-paths.patch
@@ -1,5 +1,7 @@
This is copied from NixOS, which is under MIT licence.
https://github.com/NixOS/nixpkgs/blob/master/pkgs/desktops/gnome/misc/gpaste/
+diff --git a/src/gnome-shell/extension.js b/src/gnome-shell/extension.js
+index c8773fd6..9efbed67 100644
--- a/src/gnome-shell/extension.js
+++ b/src/gnome-shell/extension.js
@@ -6,6 +6,8 @@
@@ -10,15 +12,34 @@
https://github.com/NixOS/nixpkgs/blob/master/pkgs/desktops/gnome/misc/gpaste/
+
imports.gi.versions.Clutter = Config.LIBMUTTER_API_VERSION;
imports.gi.versions.GLib = '2.0';
- imports.gi.versions.GPaste = '1.0';
+ imports.gi.versions.GPaste = '2';
+diff --git a/src/gnome-shell/prefs.js b/src/gnome-shell/prefs.js
+index 32244ab2..74b85572 100644
--- a/src/gnome-shell/prefs.js
+++ b/src/gnome-shell/prefs.js
@@ -6,6 +6,8 @@
- const Gettext = imports.gettext;
+ imports.gi.versions.GPasteGtk = '4';
+imports.gi.GIRepository.Repository.prepend_search_path('@typelibPath@');
+
- //const { GPaste } = imports.gi;
-
const ExtensionUtils = imports.misc.extensionUtils;
+
+ const { GPasteGtk } = imports.gi;
+diff --git a/src/libgpaste/gpaste/gpaste-settings.c
b/src/libgpaste/gpaste/gpaste-settings.c
+index 7e53eb64..57c399fc 100644
+--- a/src/libgpaste/gpaste/gpaste-settings.c
++++ b/src/libgpaste/gpaste/gpaste-settings.c
+@@ -1013,7 +1013,11 @@ create_g_settings (void)
+ }
+ else
+ {
+- return g_settings_new (G_PASTE_SETTINGS_NAME);
++ // library used by introspection requires schemas but we cannot set
XDG_DATA_DIRS for the library
++ GSettingsSchemaSource *schema_source =
g_settings_schema_source_new_from_directory ("@gschemasCompiled@", NULL, FALSE,
NULL);
++ g_autoptr (GSettingsSchema) schema = g_settings_schema_source_lookup
(schema_source, G_PASTE_SETTINGS_NAME, FALSE);
++ g_settings_schema_source_unref (schema_source);
++ return g_settings_new_full (schema, NULL, NULL);
+ }
+ }
+
- 49/181: gnu: cups-pk-helper: Replace polkit with polkit-duktape., (continued)
- 49/181: gnu: cups-pk-helper: Replace polkit with polkit-duktape., guix-commits, 2022/09/13
- 55/181: gnu: gnome-online-accounts: Update to 3.45.2, remove "lib" output., guix-commits, 2022/09/13
- 68/181: gnu: gnome-user-docs: Update to 42.0., guix-commits, 2022/09/13
- 100/181: gnu: blueprint-compiler: Update to 0.4.0., guix-commits, 2022/09/13
- 94/181: gnu: phodav: Update to 3.0., guix-commits, 2022/09/13
- 128/181: gnu: gexiv2: Update to 0.14.0., guix-commits, 2022/09/13
- 123/181: gnu: eog-plugins: Update to 42.1., guix-commits, 2022/09/13
- 141/181: gnu: libgovirt: Update to 0.3.9., guix-commits, 2022/09/13
- 142/181: gnu: gfbgraph: Update to 0.2.5 and enable tests., guix-commits, 2022/09/13
- 176/181: gnu: gnome-maps: Update to 43.rc., guix-commits, 2022/09/13
- 178/181: gnu: gpaste: Update to 42.1.,
guix-commits <=
- 171/181: gnu: chatty: Fix indentation., guix-commits, 2022/09/13
- 43/181: gnu: mozjs: Add 91.13.0., guix-commits, 2022/09/13
- 48/181: gnu: accountsservice: Add bash-minimal to inputs., guix-commits, 2022/09/13
- 52/181: gnu: gtksourceview: Update to 5.5.1., guix-commits, 2022/09/13
- 60/181: gnu: gnome-session: Update to 42.0., guix-commits, 2022/09/13
- 64/181: gnu: gnome-disk-utility: Update to 42.0., guix-commits, 2022/09/13
- 80/181: import: gnome: Improve version handling logic., guix-commits, 2022/09/13
- 86/181: gnu: gnome-boxes: Update to 42.3., guix-commits, 2022/09/13
- 93/181: gnu: gnome-music: Update to 42.1., guix-commits, 2022/09/13
- 113/181: gnu: vte-ng: Update to 0.59.0., guix-commits, 2022/09/13