From patchwork Sat Feb 22 02:22:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Griffin X-Patchwork-Id: 20359 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 9170527BBEA; Sat, 22 Feb 2020 02:24:11 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 4F59417BBC for ; Sat, 22 Feb 2020 02:24:10 +0000 (GMT) Received: from localhost ([::1]:38246 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j5KSf-0007S9-PJ for patchwork@mira.cbaines.net; Fri, 21 Feb 2020 21:24:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:45452) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j5KSZ-0007S2-Qu for guix-patches@gnu.org; Fri, 21 Feb 2020 21:24:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j5KSY-0001Fc-9a for guix-patches@gnu.org; Fri, 21 Feb 2020 21:24:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42511) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j5KSY-0001FU-68 for guix-patches@gnu.org; Fri, 21 Feb 2020 21:24:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j5KSY-0007Cw-1K for guix-patches@gnu.org; Fri, 21 Feb 2020 21:24:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#39732] [PATCH] gnu: Add gnome-shell-extension-gsconnect. Resent-From: "Alex Griffin" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 22 Feb 2020 02:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 39732 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 39732@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.158233822727683 (code B ref -1); Sat, 22 Feb 2020 02:24:01 +0000 Received: (at submit) by debbugs.gnu.org; 22 Feb 2020 02:23:47 +0000 Received: from localhost ([127.0.0.1]:48484 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j5KSI-0007CR-Pz for submit@debbugs.gnu.org; Fri, 21 Feb 2020 21:23:47 -0500 Received: from lists.gnu.org ([209.51.188.17]:39177) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j5KSH-0007CJ-1l for submit@debbugs.gnu.org; Fri, 21 Feb 2020 21:23:45 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:45404) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j5KSF-0007Rp-ET for guix-patches@gnu.org; Fri, 21 Feb 2020 21:23:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j5KSD-000109-V7 for guix-patches@gnu.org; Fri, 21 Feb 2020 21:23:43 -0500 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:55185) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j5KSD-0000zB-FV for guix-patches@gnu.org; Fri, 21 Feb 2020 21:23:41 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id E3E9072D for ; Fri, 21 Feb 2020 21:23:38 -0500 (EST) Received: from imap6 ([10.202.2.56]) by compute6.internal (MEProxy); Fri, 21 Feb 2020 21:23:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ajgrf.com; h= mime-version:message-id:date:from:to:subject:content-type; s= fm2; bh=Vkr3jx7qXqXnFwaO24lIDtjNkUwdCQzkgBHMfa7xGIQ=; b=IzMZ6XO6 sqX0HHEI7Sdsq6UUpd2hOHzvlYwxvWDGBQbF+2LEP6yotuCFVYlT7Q2aCeXS3cO2 246JYxh37IxNywUyBFDrAzVCnOAkhoaSI8n7mkd+ynVHjVf0iswng/wVdoi7zUQq dN5szqjAVRIJl9blcr/vAovo7epfTD62iH78ocxFL8UeAr08IxvMPlGTfH0Rsc1a 3aTFspf1WoeFTpRoHnEl10CWOFyAhpQAbjaapG/GkzlpZjPZqNae+FhZ9DwYNVD4 k8U7bTDA6wiWwc1o/f9uGy3ir4N1Lg88Ro3g9V5BQ84JJBfDmfBAM/puQ/7V2p/P B0OdJYxQVy/j8A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=Vkr3jx7qXqXnFwaO24lIDtjNkUwdC QzkgBHMfa7xGIQ=; b=SLcqtrBWFKiO6h1yVhZBts3r2YFxOtoQyIqPVQBjiErMa lxKcBbYlbsueNICUgA2GEwcNCYh9XQRWc7CB55dQWukwZXz8d1KJGq1qg8naRy4/ Hw+o4QVQuhPrqIBWyCAEJavVqhC9S6sglo2D4JdetVrm7+V/b6dC152vIrZv3oTq 5b0gpGOZgY6OqpcM2S3h5/wDf0RwxnnqK9UnRoWrNIV9jq5GCfl4AAkwyQmWuz3k fdyN/40009EcZvN/yMzDdHFXxv6ezJtjHA/fQcjxbQ9EkKre4Qn8S+cmIKagRvdt JmLgmXL+oxCKqXq6or5wE2yOU+39XO1FphcFg6Ldw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrkeehgdegiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkfffhvffutgesmhdtreerre ertdenucfhrhhomhepfdetlhgvgicuifhrihhffhhinhdfuceorgesrghjghhrfhdrtgho mheqnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg esrghjghhrfhdrtghomh X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 062DE140301; Fri, 21 Feb 2020 21:23:38 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.1.7-802-g7a41c81-fmstable-20200203v1 Mime-Version: 1.0 Message-Id: <8a993434-b1ea-4c71-9432-e124278b380a@www.fastmail.com> Date: Sat, 22 Feb 2020 02:22:57 +0000 From: "Alex Griffin" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches This patch adds GSConnect, an implementation of KDE Connect for GNOME Shell, for controlling and sharing content with an Android device. From 104cf686c091fc02584ddb041771831e6e2d81bf Mon Sep 17 00:00:00 2001 From: Alex Griffin Date: Fri, 21 Feb 2020 16:25:27 -0600 Subject: [PATCH] gnu: Add gnome-shell-extension-gsconnect. * gnu/packages/gnome-xyz.scm (gnome-shell-extension-gsconnect): New variable. --- gnu/packages/gnome-xyz.scm | 99 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 99 insertions(+) diff --git a/gnu/packages/gnome-xyz.scm b/gnu/packages/gnome-xyz.scm index cd334abb53..a3074288de 100644 --- a/gnu/packages/gnome-xyz.scm +++ b/gnu/packages/gnome-xyz.scm @@ -24,15 +24,20 @@ #:use-module (guix build-system trivial) #:use-module (guix build-system gnu) #:use-module (guix build-system copy) + #:use-module (guix build-system meson) #:use-module (guix git-download) #:use-module (guix packages) #:use-module ((guix licenses) #:prefix license:) #:use-module (gnu packages base) #:use-module (gnu packages bash) + #:use-module (gnu packages gettext) #:use-module (gnu packages glib) #:use-module (gnu packages gnome) #:use-module (gnu packages gtk) #:use-module (gnu packages pkg-config) + #:use-module (gnu packages python-xyz) + #:use-module (gnu packages ssh) + #:use-module (gnu packages tls) #:use-module (gnu packages ruby) #:use-module (gnu packages xml)) @@ -188,6 +193,100 @@ faster window switching.") (home-page "https://micheleg.github.io/dash-to-dock/") (license license:gpl2+))) +(define-public gnome-shell-extension-gsconnect + (package + (name "gnome-shell-extension-gsconnect") + ;; v28 is the last version to support GNOME 3.32 + (version "28") + (source (origin + (method git-fetch) + (uri (git-reference + (url (string-append "https://github.com/andyholmes" + "/gnome-shell-extension-gsconnect.git")) + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0grqkzqm7mlkbzin4nx9w7bh5cgygph8pn0cvim4a4gg99nfcp5z")))) + (build-system meson-build-system) + (arguments + `(#:configure-flags + (let* ((out (assoc-ref %outputs "out")) + (name+version (strip-store-file-name out)) + (gschema-dir (string-append out + "/share/gsettings-schemas/" + name+version + "/glib-2.0/schemas")) + (gnome-shell (assoc-ref %build-inputs "gnome-shell")) + (openssh (assoc-ref %build-inputs "openssh")) + (openssl (assoc-ref %build-inputs "openssl"))) + (list + (string-append "-Dgnome_shell_libdir=" gnome-shell "/lib") + (string-append "-Dgsettings_schemadir=" gschema-dir) + (string-append "-Dopenssl_path=" openssl "/bin/openssl") + (string-append "-Dsshadd_path=" openssh "/bin/ssh-add") + (string-append "-Dsshkeygen_path=" openssh "/bin/ssh-keygen") + (string-append "-Dsession_bus_services_dir=" out "/share/dbus-1/services") + "-Dpost_install=true")) + #:phases + (modify-phases %standard-phases + (add-before 'configure 'fix-paths + (lambda* (#:key inputs #:allow-other-keys) + (let* ((glib (assoc-ref inputs "glib:bin")) + (gapplication (string-append glib "/bin/gapplication")) + (gi-typelib-path (getenv "GI_TYPELIB_PATH"))) + (substitute* "data/org.gnome.Shell.Extensions.GSConnect.desktop" + (("gapplication") gapplication)) + (for-each + (lambda (file) + (substitute* file + (("'use strict';") + (string-append "'use strict';\n\n" + "'" gi-typelib-path "'.split(':').forEach(" + "path => imports.gi.GIRepository.Repository." + "prepend_search_path(path));")))) + '("src/extension.js" "src/prefs.js")) + #t))) + (add-after 'install 'wrap-daemons + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (service-dir + (string-append out "/share/gnome-shell/extensions" + "/gsconnect@andyholmes.github.io/service")) + (gi-typelib-path (getenv "GI_TYPELIB_PATH"))) + (wrap-program (string-append service-dir "/daemon.js") + `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))) + #t)))))) + (inputs + `(("at-spi2-core" ,at-spi2-core) + ("caribou" ,caribou) + ("evolution-data-server" ,evolution-data-server) + ("folks" ,folks) + ("gjs" ,gjs) + ("glib" ,glib) + ("glib:bin" ,glib "bin") + ("gsound" ,gsound) + ("gnome-shell" ,gnome-shell) + ("gtk+" ,gtk+) + ("nautilus" ,nautilus) + ("openssh" ,openssh) + ("openssl" ,openssl) + ("python-nautilus" ,python-nautilus) + ("python-pygobject" ,python-pygobject) + ("upower" ,upower))) + (native-inputs + `(("gettext" ,gettext-minimal) + ("gobject-introspection" ,gobject-introspection) + ("libxml2" ,libxml2) + ("pkg-config" ,pkg-config))) + (home-page "https://github.com/andyholmes/gnome-shell-extension-gsconnect/wiki") + (synopsis "Connect GNOME Shell with your Android phone") + (description "GSConnect is a complete implementation of KDE Connect +especially for GNOME Shell, allowing devices to securely share content, like +notifications or files, and other features like SMS messaging and remote +control.") + (license license:gpl2))) + (define-public gnome-shell-extension-hide-app-icon (let ((commit "4188aa5f4ba24901a053a0c3eb0d83baa8625eab") (revision "0")) -- 2.25.0