From patchwork Thu Sep 22 06:23:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosha X-Patchwork-Id: 42843 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 77BE727BBEA; Thu, 22 Sep 2022 07:26:55 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable 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 00C0A27BBE9 for ; Thu, 22 Sep 2022 07:26:55 +0100 (BST) Received: from localhost ([::1]:40084 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1obFfi-0008W9-42 for patchwork@mira.cbaines.net; Thu, 22 Sep 2022 02:26:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45356) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1obFcy-00083C-07 for guix-patches@gnu.org; Thu, 22 Sep 2022 02:24:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36866) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1obFcx-0005Xn-D0 for guix-patches@gnu.org; Thu, 22 Sep 2022 02:24:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1obFcx-0007Lw-7R for guix-patches@gnu.org; Thu, 22 Sep 2022 02:24:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57999] [PATCH] gnu: Add textpieces Resent-From: Sughosha Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 22 Sep 2022 06:24:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57999 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57999@debbugs.gnu.org X-Debbugs-Original-To: "guix-patches@gnu.org" Received: via spool by submit@debbugs.gnu.org id=B.166382782228207 (code B ref -1); Thu, 22 Sep 2022 06:24:03 +0000 Received: (at submit) by debbugs.gnu.org; 22 Sep 2022 06:23:42 +0000 Received: from localhost ([127.0.0.1]:35938 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1obFcc-0007Kt-CJ for submit@debbugs.gnu.org; Thu, 22 Sep 2022 02:23:42 -0400 Received: from lists.gnu.org ([209.51.188.17]:44864) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1obFcb-0007Kl-5i for submit@debbugs.gnu.org; Thu, 22 Sep 2022 02:23:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42396) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1obFcR-0007zb-Rj for guix-patches@gnu.org; Thu, 22 Sep 2022 02:23:40 -0400 Received: from mail-4027.protonmail.ch ([185.70.40.27]:60245) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1obFcL-0005TR-Ov for guix-patches@gnu.org; Thu, 22 Sep 2022 02:23:30 -0400 Date: Thu, 22 Sep 2022 06:23:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1663827802; x=1664087002; bh=C2gbrrc5+w+Biu4r3vANfIRF9WUF/2nB7ZljFYhZ82k=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID; b=ni6mKb3FfnSX1YhElOV3/zyRPZDbPrK58q+UjmzsRJEENdQ7+TlzCP8L70uTMBKzW 4QodzoLG4Edg/juiZSBuGccECVj8Vuh5f78iG4coX3O5WcBZOWTrA7KgEfYO0OkZoj Yn+3nT/OGkt/nBgZjk+LBEuIeC/r+vDxgIuShUWCpDtd3GM8GMB32PtMAT748urXr/ ZlH3GV/4UwQbBnP5DWiQFH2gIJzNxi7lQAhM4ICAFeHZQU+avguxNS3aKOTc8AqjND ytGvzPL+w7Z/6CG2DJA1Sn7dV65e5LfnZw1jW5AOjXKbH+t8xKZXjEDa/UIih1K2H+ nR2ecDHPvxN1Q== Message-ID: Feedback-ID: 45211691:user:proton MIME-Version: 1.0 Received-SPF: pass client-ip=185.70.40.27; envelope-from=Sughosha@proton.me; helo=mail-4027.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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" Reply-to: Sughosha X-ACL-Warn: , Sughosha via Guix-patches X-Patchwork-Original-From: Sughosha via Guix-patches via From: Sughosha X-getmail-retrieved-from-mailbox: Patches From: Sughosha * gnu/packages/text-editors.scm (textpieces): New variable. --- gnu/packages/text-editors.scm | 55 +++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/gnu/packages/text-editors.scm b/gnu/packages/text-editors.scm index 0c30a705b9..8852bbf067 100644 --- a/gnu/packages/text-editors.scm +++ b/gnu/packages/text-editors.scm @@ -45,6 +45,7 @@ (define-module (gnu packages text-editors) #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) #:use-module (guix build-system glib-or-gtk) + #:use-module (guix build-system meson) #:use-module (guix build-system python) #:use-module ((guix licenses) #:prefix license:) #:use-module (gnu packages) @@ -62,6 +63,7 @@ (define-module (gnu packages text-editors) #:use-module (gnu packages freedesktop) #:use-module (gnu packages gettext) #:use-module (gnu packages glib) + #:use-module (gnu packages gnome) #:use-module (gnu packages gtk) #:use-module (gnu packages guile) #:use-module (gnu packages haskell-xyz) @@ -1260,3 +1262,56 @@ (define-public mle splitting, multiple cursors, and integration with various shell commands.") (license license:asl2.0))) + +(define-public textpieces + (package + (name "textpieces") + (version "3.2.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/liferooter/textpieces") + (commit (string-append "v" version)))) + (sha256 + (base32 + "14zq2c7js80m4cq8wpdb3kyz5sw96l8znbz027w8s94gqhm632ff")))) + (arguments + `(#:tests? #f ;fails to validate appstream file + #:glib-or-gtk? #t)) + (build-system meson-build-system) + (native-inputs (list pkg-config + vala + desktop-file-utils + appstream-glib + gettext-minimal + `(,glib "bin") + blueprint-compiler + `(,gtk "bin"))) + (inputs (list gtk + libadwaita + gtksourceview + json-glib + libgee + python + python-pygobject + python-pyyaml)) + (home-page "https://github.com/liferooter/textpieces") + (synopsis "Quick text processor") + (description + "Text Pieces tool for quick text transformations such as checksums, +encoding, decoding and so on. + +The basic features of Text Pieces are: +@itemize +@item Base64 encoding and decoding +@item SHA-1, SHA-2 and MD5 checksums +@item Prettify and minify JSON +@item Covert JSON to YAML and vice versa +@item Count lines, symbols and words +@item Escape and unescape string, URL and HTML +@item Remove leading and trailing whitespaces +@item Sort and reverse sort lines +@item Reverse lines and whole text +@item You can write your own scripts and create custom tools +@end itemize") + (license license:gpl3)))