From patchwork Thu Nov 24 16:21:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Miguel_=C3=81ngel_Moreno?= X-Patchwork-Id: 44800 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 485D627BBED; Thu, 24 Nov 2022 16:22:20 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 6756E27BBE9 for ; Thu, 24 Nov 2022 16:22:19 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oyEzF-0002qY-0W; Thu, 24 Nov 2022 11:22:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oyEzC-0002qO-C6 for guix-patches@gnu.org; Thu, 24 Nov 2022 11:22:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oyEzC-0007Wi-2W for guix-patches@gnu.org; Thu, 24 Nov 2022 11:22:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oyEzB-0001SG-JY for guix-patches@gnu.org; Thu, 24 Nov 2022 11:22:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#59525] [PATCH v5] gnu: Add portfolio. Resent-From: conses Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 24 Nov 2022 16:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59525 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 59525@debbugs.gnu.org Cc: contact@conses.eu Received: via spool by 59525-submit@debbugs.gnu.org id=B59525.16693068975559 (code B ref 59525); Thu, 24 Nov 2022 16:22:01 +0000 Received: (at 59525) by debbugs.gnu.org; 24 Nov 2022 16:21:37 +0000 Received: from localhost ([127.0.0.1]:59868 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oyEym-0001Rb-Jv for submit@debbugs.gnu.org; Thu, 24 Nov 2022 11:21:36 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:46425) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oyEyk-0001RM-Hb for 59525@debbugs.gnu.org; Thu, 24 Nov 2022 11:21:35 -0500 Received: (Authenticated sender: contact@conses.eu) by mail.gandi.net (Postfix) with ESMTPSA id 4091460008; Thu, 24 Nov 2022 16:21:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=conses.eu; s=gm1; t=1669306888; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=M+LIiSaZHJOcRQJ/JCNEeKdTNkn877ampnJElR2PBFs=; b=U+M7ZP1pyDt6Iyk+Io9+0J0iDu73TiHe3Vxj2xMlfc/l4ENGomEzZV3bZ4mEb7yEgXkjMw 2kzdE+FrLcNKR1FNT2ZYi5NoFOpwyhhY/s7672GsWHFVCFXMUv4EbyYsymDVdmhDpZYXO8 jIhIhNpbY0OMqL7+JUvoKtU6hb9dBmpZpRyDp1uDGvsQ7xh8haP2nfo2PhCw3sRJlXvS0s k/J8wol9VLwvUWqqdLZ8/X3Bi0MdhQp9/e0I0/LszCd69YZSaE2eHLLVC1KVKSDh5KvNGq tCiQEBiDHVQ66qg5vjLeezZVYO3356WLjcsY9nLpjgcNcVc3LvrqzMMsHTEB1Q== From: conses In-Reply-To: <59525@debbugs.gnu.org> References: <59525@debbugs.gnu.org> Date: Thu, 24 Nov 2022 17:21:26 +0100 Message-ID: <865yf4wcft.fsf@conses.eu> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/gnome-xyz.scm (portfolio): New variable. --- Symlinks executable instead of renaming it. gnu/packages/gnome-xyz.scm | 54 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/gnu/packages/gnome-xyz.scm b/gnu/packages/gnome-xyz.scm index b7e10100fb..9f5843b1a6 100644 --- a/gnu/packages/gnome-xyz.scm +++ b/gnu/packages/gnome-xyz.scm @@ -55,6 +55,7 @@ (define-module (gnu packages gnome-xyz) #:use-module (gnu packages bash) #:use-module (gnu packages build-tools) #:use-module (gnu packages check) + #:use-module (gnu packages freedesktop) #:use-module (gnu packages gettext) #:use-module (gnu packages glib) #:use-module (gnu packages gnome) @@ -304,6 +305,59 @@ (define-public gnome-plots takes advantage of modern hardware using OpenGL.") (license license:gpl3+))) +(define-public portfolio + (package + (name "portfolio") + (version "0.9.14") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/tchx84/Portfolio") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0h09v8lhz3kv6qmwjhx3gr7rp6ccfhrzm54gjnaixl4dcg9zddls")))) + (arguments + (list #:glib-or-gtk? #t + #:imported-modules `(,@%meson-build-system-modules + (guix build python-build-system)) + #:modules '((guix build meson-build-system) + ((guix build python-build-system) + #:prefix python:) + (guix build utils)) + #:phases #~(modify-phases %standard-phases + (add-after 'install 'rename-executable + (lambda _ + (with-directory-excursion (string-append #$output + "/bin") + (symlink "dev.tchx84.Portfolio" "portfolio")))) + (add-after 'glib-or-gtk-wrap 'python-and-gi-wrap + (lambda* (#:key inputs outputs #:allow-other-keys) + (wrap-program (search-input-file outputs + "bin/dev.tchx84.Portfolio") + `("GUIX_PYTHONPATH" = + (,(getenv "GUIX_PYTHONPATH") ,(python:site-packages + inputs + outputs))) + `("GI_TYPELIB_PATH" = + (,(getenv "GI_TYPELIB_PATH"))))))))) + (build-system meson-build-system) + (inputs (list bash-minimal python-pygobject gtk+ libhandy)) + (native-inputs + (list desktop-file-utils + gettext-minimal + `(,glib "bin") + `(,gtk+ "bin") + python)) + (home-page "https://github.com/tchx84/Portfolio") + (synopsis "Minimalist file manager for Linux mobile devices") + (description + "Portfolio is a minimalist file manager for those who want to use Linux +mobile devices. Tap to activate and long press to select, to browse, open, copy, move, +delete, or edit your files.") + (license license:gpl3))) + (define-public gnome-shell-extension-unite-shell (package (name "gnome-shell-extension-unite-shell")