From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id ocIsDYmmrl57fgAA0tVLHw (envelope-from ) for ; Sun, 03 May 2020 11:10:01 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 8Ai0NJOmrl7XAgAAbx9fmQ (envelope-from ) for ; Sun, 03 May 2020 11:10:11 +0000 Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:470:142::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 C3673941310 for ; Sun, 3 May 2020 11:10:09 +0000 (UTC) Received: from localhost ([::1]:58790 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jVCVc-0007xm-Rq for larch@yhetil.org; Sun, 03 May 2020 07:10:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44228) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jVCVW-0007xU-OD for guix-patches@gnu.org; Sun, 03 May 2020 07:10:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:43237) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jVCVW-0002EC-FH for guix-patches@gnu.org; Sun, 03 May 2020 07:10:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jVCVW-0000mq-5b for guix-patches@gnu.org; Sun, 03 May 2020 07:10:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#41047] [PATCH] gnu: Add lesspipe Resent-From: Michael Rohleder Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 03 May 2020 11:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 41047 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 41047@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15885041712981 (code B ref -1); Sun, 03 May 2020 11:10:02 +0000 Received: (at submit) by debbugs.gnu.org; 3 May 2020 11:09:31 +0000 Received: from localhost ([127.0.0.1]:54783 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jVCV0-0000m1-R9 for submit@debbugs.gnu.org; Sun, 03 May 2020 07:09:31 -0400 Received: from lists.gnu.org ([209.51.188.17]:35672) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jVCUy-0000lt-DF for submit@debbugs.gnu.org; Sun, 03 May 2020 07:09:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44162) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jVCUy-0007s7-5X for guix-patches@gnu.org; Sun, 03 May 2020 07:09:28 -0400 Received: from wp224.webpack.hosteurope.de ([2a01:488:42:1000:50ed:84e7::]:55310) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jVCUw-0001Kc-Mq for guix-patches@gnu.org; Sun, 03 May 2020 07:09:27 -0400 Received: from www.rohleder.de ([37.61.204.227]); authenticated by wp224.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) id 1jVCUs-0003C7-5y; Sun, 03 May 2020 13:09:22 +0200 Received: from [192.168.1.8] (helo=chuwi) by www.rohleder.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1jVCUr-0007R4-Jl for guix-patches@gnu.org; Sun, 03 May 2020 13:09:21 +0200 From: Michael Rohleder X-PGP-Fingerprint: 755E 2DE5 D0D5 85C5 2E78 2830 7C7A FFBE FEF2 CB25 X-PGP-Key: https://www.rohleder.de/~mike/pgpkey.asc Date: Sun, 03 May 2020 13:09:15 +0200 Message-ID: <87mu6p46n8.fsf@rohleder.de> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-bounce-key: webpack.hosteurope.de;mike@rohleder.de;1588504166;963b23d6; X-HE-SMSGID: 1jVCUs-0003C7-5y Received-SPF: permerror client-ip=2a01:488:42:1000:50ed:84e7::; envelope-from=mike@rohleder.de; helo=wp224.webpack.hosteurope.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/03 07:09:22 X-ACL-Warn: Detected OS = ??? X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, T_SPF_PERMERROR=0.01, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -3.3 (---) 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" X-Scanner: scn0 X-Spam-Score: -3.11 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 2001:470:142::17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Scan-Result: default: False [-3.11 / 13.00]; GENERIC_REPUTATION(0.00)[-0.49365482452562]; DWL_DNSWL_FAIL(0.00)[2001:470:142::17:server fail]; R_SPF_ALLOW(-0.20)[+ip6:2001:470:142::/48:c]; IP_REPUTATION_HAM(0.00)[asn: 22989(0.15), country: US(-0.00), ip: 2001:470:142::17(-0.49)]; TO_DN_NONE(0.00)[]; MX_GOOD(-0.50)[cached: eggs.gnu.org]; MAILLIST(-0.20)[mailman]; SIGNED_PGP(-2.00)[]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; RCVD_IN_DNSWL_FAIL(0.00)[2001:470:142::17:server fail]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:22989, ipnet:2001:470:142::/48, country:US]; MID_RHS_MATCH_FROM(0.00)[]; TAGGED_FROM(0.00)[larch=yhetil.org]; ARC_NA(0.00)[]; FROM_NEQ_ENVFROM(0.00)[mike@rohleder.de,guix-patches-bounces@gnu.org]; FROM_HAS_DN(0.00)[]; URIBL_BLOCKED(0.00)[rohleder.de:email,tobias.gr:email,karetnikov.org:email]; MIME_GOOD(-0.20)[multipart/signed,multipart/mixed,text/plain,text/x-patch]; DMARC_NA(0.00)[rohleder.de]; HAS_LIST_UNSUB(-0.01)[]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+,1:+,2:+,3:+,4:+,5:~]; RCVD_COUNT_SEVEN(0.00)[11]; FORGED_SENDER_MAILLIST(0.00)[] X-TUID: xCqmqHGZv1OZ --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain At least debian and gentoo include their own version of lesspipe in the less package. Nor sure if we should do the same or include this package here. I use this since a week or so and it works well so far. I'm not very creative on creating descriptions. Please feel free to change it. ;) --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=0001-gnu-packages-less.scm-lesspipe-New-variable.patch Content-Transfer-Encoding: quoted-printable Content-Description: [PATCH] gnu: Add lesspipe From=209ee7d976ffa6cd6d8375fac2df0f50940f9d4877 Mon Sep 17 00:00:00 2001 From: Michael Rohleder Date: Sun, 3 May 2020 12:31:43 +0200 Subject: [PATCH] gnu: Add lesspipe * gnu/packages/less.scm (lesspipe): New variable. =2D-- gnu/packages/less.scm | 50 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/gnu/packages/less.scm b/gnu/packages/less.scm index 91c269a67e..92e20a3705 100644 =2D-- a/gnu/packages/less.scm +++ b/gnu/packages/less.scm @@ -1,6 +1,7 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright =C2=A9 2012 Nikita Karetnikov ;;; Copyright =C2=A9 2019 Tobias Geerinckx-Rice +;;; Copyright =C2=A9 2020 Michael Rohleder ;;; ;;; This file is part of GNU Guix. ;;; @@ -20,8 +21,11 @@ (define-module (gnu packages less) #:use-module (guix licenses) #:use-module (gnu packages ncurses) + #:use-module (gnu packages perl) + #:use-module (gnu packages file) #:use-module (guix packages) #:use-module (guix download) + #:use-module (guix git-download) #:use-module (guix build-system gnu)) =20 (define-public less @@ -48,3 +52,49 @@ backwards and forwards movement through the document. I= t also does not have to read the entire input file before starting, so it starts faster than mo= st text editors.") (license gpl3+))) ; some files are under GPLv2+ + +(define-public lesspipe + (package + (name "lesspipe") + (version "1.84") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/wofr06/lesspipe.git") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "124ffhzrikr88ab14rk6753n8adxijpmg7q3zx7nmqc52wpkfd8q")))) + (build-system gnu-build-system) + (arguments + '(#:tests? #f ; no tests + #:phases (modify-phases %standard-phases + (replace 'configure + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (delete-file "Makefile") ; force generating + (invoke "./configure" + (string-append "--prefix=3D" out) + "--yes") + #t)))))) + (inputs + `(("file" ,file) + ("ncurses" ,ncurses))) ; for tput + (native-inputs `(("perl" ,perl))) + (home-page "https://github.com/wofr06/lesspipe") + (synopsis "Input filter for less") + (description "To browse files under UNIX the excellent viewer less +can be used. By setting the environment variable LESSOPEN, less can be +enhanced by external filters to become even more powerful. Most Linux +distributions come already with a \"lesspipe.sh\" that covers the most +common situations. +The input filter for less described here is called +\"lesspipe.sh\". It is able to process a wide variety of file +formats. It enables users to deeply inspect archives and to display +the contents of files in archives without having to unpack them +before. That means file contents can be properly interpreted even if +the files are compressed and contained in a hierarchy of +archives (often found in RPM or DEB archives containing source +tarballs). The filter is easily extensible for new formats.") + (license gpl2))) =2D-=20 2.26.2 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable =2D-=20 Murphy was an optimist. --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEdV4t5dDVhcUueCgwfHr/vv7yyyUFAl6uplsACgkQfHr/vv7y yyWnMAf6A6dqzo1Y6D7XPm7FMPT5GS8L1uL6dCfKlL98pCZ+4W3XeACFInp8EzVW oaJqfYPlY7Xdg/9IxnBPTD4qjswSXl3iTANnWmxwvTW2EAmQThiIbN+gvP96FJZh 7y1JmHLgjL05gnD7Md4W1/vbae6wbWu8DnFJVJISaeKF2SSfk3QWHXyqsXpKjSoM Ek9/CHdy75Nla7Bp6rcM3lLeRmiXczn+1xw42EGpxJlJqdan2bqIEW+fV+mgxuhV H22yFX4nPBXt5t/lYH6zwNLi5Hq7jG7V2nvgNqBJO2bP1YrVBILeDintTmKmxKDx mgvpro6rtgkuHHDxtKCNFbw1TTgKzA== =HDBS -----END PGP SIGNATURE----- --==-=-=--