From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id uOdcMCYALGPsiQAAbAwnHQ (envelope-from ) for ; Thu, 22 Sep 2022 08:26:46 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id QB2HLyYALGMwrwAAG6o9tA (envelope-from ) for ; Thu, 22 Sep 2022 08:26:46 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 1F294281C4 for ; Thu, 22 Sep 2022 08:26:46 +0200 (CEST) Received: from localhost ([::1]:40084 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1obFfZ-0008W9-7U for larch@yhetil.org; Thu, 22 Sep 2022 02:26:45 -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 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: Sughosha X-ACL-Warn: , Sughosha via Guix-patches From: Sughosha via Guix-patches via X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1663828006; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=C2gbrrc5+w+Biu4r3vANfIRF9WUF/2nB7ZljFYhZ82k=; b=WAWSI3PmjYOlDpDhWF3lUuW7hyRJxFPdP2qjVx1ext0+jybTKMycIRxpyMa+82suTRpoAo jdfBzGNc60moCaFNzXShP0Lza1btB2+FH0GIrKvkckcNTUIQR/B9XrC9+73my7Ah8mI5kH rLZ7MsI2POR4qgCNNj7Cae0YF7x1FS1q5KAQkxbS/wqNP58BXWwBT37av4do5zfEq404FB 6JGfcqWwg76vKdjIN3NXsWd39hi60f/28AvMOk9tRBz3maimaOg30L8HKgvH8HlxaRNUzc Akpx1PL39jTiRBTcmKFTFWtWVj1eLPGqeDaZcYgt/aqtsfGt3d/fE4Kfs3RY3Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1663828006; a=rsa-sha256; cv=none; b=FdEcGNqyX+NnCQx9xJECxJsD2zL8hzOnvSexeV5+07rcZIo4OSlwWBjY2SwNqwcUf/Enp2 7wzcxnQEZa2KWp5P+4F8h0YDdJtbdkm4sDWyNEpup/WzDHVIepb4JcBOwqBjxffffZCs8y A93muOyG15sBAI1ZM/Z1L7+XpYJ32Eai5qkxYL0eZ4jHTWE4sDIIqFqizUpj7sBkVLy4ck VbcrMLrvpZfBGsRYMdweX7ZRsh+98xdCQlEvscLA9sa9AQiUXtyj5zwRr5x3skDbd9vP0d nB6vurxB20egLZuQaOUyh6icENJCX5rfvoKpq9ao76dS48Uxqg6p6iI/g8oyXQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=proton.me header.s=protonmail header.b=ni6mKb3F; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.14 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=proton.me header.s=protonmail header.b=ni6mKb3F; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 1F294281C4 X-Spam-Score: -4.14 X-Migadu-Scanner: scn0.migadu.com X-TUID: dT/hNNkuBr3l 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))) --=20 2.37.3