From patchwork Wed Nov 23 22:30:24 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: 44788 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 720C527BBED; Wed, 23 Nov 2022 22:31:19 +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 9C6D527BBE9 for ; Wed, 23 Nov 2022 22:31:18 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oxyGp-0004J7-C2; Wed, 23 Nov 2022 17:31:07 -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 1oxyGl-0004Ie-3f for guix-patches@gnu.org; Wed, 23 Nov 2022 17:31:04 -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 1oxyGk-0003qI-O7 for guix-patches@gnu.org; Wed, 23 Nov 2022 17:31:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oxyGk-0001tM-58 for guix-patches@gnu.org; Wed, 23 Nov 2022 17:31:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#59525] [PATCH v3] gnu: Add portfolio. Resent-From: conses Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 23 Nov 2022 22:31:02 +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 Received: via spool by 59525-submit@debbugs.gnu.org id=B59525.16692426387241 (code B ref 59525); Wed, 23 Nov 2022 22:31:02 +0000 Received: (at 59525) by debbugs.gnu.org; 23 Nov 2022 22:30:38 +0000 Received: from localhost ([127.0.0.1]:56507 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oxyGL-0001sj-HH for submit@debbugs.gnu.org; Wed, 23 Nov 2022 17:30:37 -0500 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:34721) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oxyGF-0001sR-VI for 59525@debbugs.gnu.org; Wed, 23 Nov 2022 17:30:36 -0500 Received: (Authenticated sender: contact@conses.eu) by mail.gandi.net (Postfix) with ESMTPSA id 6645140003 for <59525@debbugs.gnu.org>; Wed, 23 Nov 2022 22:30:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=conses.eu; s=gm1; t=1669242625; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=s+rq3P9kgNS1qu3JpVlhfE7e/mre4Fnun3Ezw/DxhCg=; b=Az2AQHVs49m7cuFzx2IpOxk3Tmh3MFSvqlQsQxZA5djAbZNPCujLpdTu1V5OZHK24YQOmA PgJUGTWZsOCxAOsNHPIO3NRR82hSQKKlV9gnNWYcc0hLWZsAVTFP2Wh2QzlPgWJpFUB6/m QhqW2WpOhmCm0EHO1uV5QBIEbfjSdlCohW3AcTclhBo1ve9k5ez7k3KyjYSHFouAnuwSKZ pCLB4WLwTf0FGg2VntrYI5pzgYYDuZIR7uRtsD8KgnEMhP5YKEoh0Byv2zRnGrzdZO+wEx TLbUj1GjaTmJQecybRitj6pYeVIsNHw6vwxpiGK0sFb93eFJrnx3n3wERHPxwQ== From: conses In-Reply-To: <59525@debbugs.gnu.org> References: <59525@debbugs.gnu.org> Date: Wed, 23 Nov 2022 23:30:24 +0100 Message-ID: <86r0xt9udb.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. --- 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..6f499e567e 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) @@ -224,6 +225,59 @@ (define-public papirus-icon-theme and a few extra features.") (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") + (rename-file "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/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 `(,glib "bin") + desktop-file-utils + gettext-minimal + python + `(,gtk+ "bin"))) + (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-plots (package (name "gnome-plots")