From patchwork Thu May 27 16:45:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gabriel Wicki X-Patchwork-Id: 29630 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 3C5B127BC81; Thu, 27 May 2021 17:47:15 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id B56C227BC78 for ; Thu, 27 May 2021 17:47:14 +0100 (BST) Received: from localhost ([::1]:40094 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lmJA9-0004zn-Tp for patchwork@mira.cbaines.net; Thu, 27 May 2021 12:47:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43018) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lmJ9y-0004zU-4X for guix-patches@gnu.org; Thu, 27 May 2021 12:47:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41158) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lmJ9x-0003wl-RN for guix-patches@gnu.org; Thu, 27 May 2021 12:47:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lmJ9x-0004U2-OS for guix-patches@gnu.org; Thu, 27 May 2021 12:47:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48630] [PATCH] adds `ack' package and it's perl module dependency File::Next Resent-From: Gabriel Wicki Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 27 May 2021 16:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48630 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Xinglu Chen Cc: 48630@debbugs.gnu.org Received: via spool by 48630-submit@debbugs.gnu.org id=B48630.162213397214762 (code B ref 48630); Thu, 27 May 2021 16:47:01 +0000 Received: (at 48630) by debbugs.gnu.org; 27 May 2021 16:46:12 +0000 Received: from localhost ([127.0.0.1]:52704 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lmJ99-0003pR-T5 for submit@debbugs.gnu.org; Thu, 27 May 2021 12:46:12 -0400 Received: from chimborazo.ee.ethz.ch ([129.132.2.15]:47975) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lmJ94-0003ej-T3 for 48630@debbugs.gnu.org; Thu, 27 May 2021 12:46:10 -0400 Received: from silver (212-51-128-14.fiber7.init7.net [212.51.128.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: gabriel) by chimborazo.ee.ethz.ch (Postfix) with ESMTPSA id 12AAE40315; Thu, 27 May 2021 18:46:00 +0200 (CEST) Date: Thu, 27 May 2021 18:45:55 +0200 From: Gabriel Wicki Message-ID: <20210527164555.vg2xqiaafkii4x4o@silver> References: <20210524191054.7wtb4wopstgx2c77@silver> <20210525221326.tadqgibhes4bbyyl@silver> <875yz43ca3.fsf@yoctocell.xyz> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <875yz43ca3.fsf@yoctocell.xyz> 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" X-getmail-retrieved-from-mailbox: Patches On Thu, May 27, 2021 at 08:45:40AM +0200, Xinglu Chen wrote: > Apart from the commit message not conforming to the ChangeLog format[1], > looks good to me. Sorry for that! I hope i got it right, now :) From 6bd756812bfc684ca92c4aa9c9d3d573b6bb5717 Mon Sep 17 00:00:00 2001 From: Gabriel Wicki Date: Thu, 27 May 2021 18:33:19 +0200 Subject: [PATCH] add package perl-file-next * gnu/packages/perl.scm (perl-file-next): New variable. --- gnu/packages/perl.scm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm index d35508112f..4f36fc3e44 100644 --- a/gnu/packages/perl.scm +++ b/gnu/packages/perl.scm @@ -4654,6 +4654,25 @@ provided base directory and can return files (and/or directories if desired) matching a regular expression.") (home-page "https://metacpan.org/release/File-List"))) +(define-public perl-file-next + (package + (name "perl-file-next") + (version "1.18") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/petdance/file-next") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0zdrxk409qxkbbv4fl4wi285kfzyrpaja9wfl00vrxc078rs4afm")))) + (build-system perl-build-system) + (synopsis "Lightweight, taint-safe file-finding Perl module") + (description "File::Next is a Perl CPAN module for finding files.") + (home-page "https://metacpan.org/pod/File::Next") + (license license:artistic2.0))) + (define-public perl-file-readbackwards (package (name "perl-file-readbackwards") -- 2.30.2 From 499cf536648320a628cc7aef2606b8817220f27d Mon Sep 17 00:00:00 2001 From: Gabriel Wicki Date: Thu, 27 May 2021 18:40:56 +0200 Subject: [PATCH] add package ack * gnu/packages/textutils.scm (ack): New variable. --- gnu/packages/textutils.scm | 39 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/gnu/packages/textutils.scm b/gnu/packages/textutils.scm index ab34373705..1df5050f30 100644 --- a/gnu/packages/textutils.scm +++ b/gnu/packages/textutils.scm @@ -45,6 +45,7 @@ #:use-module (guix build-system gnu) #:use-module (guix build-system go) #:use-module (guix build-system cmake) + #:use-module (guix build-system perl) #:use-module (guix build-system python) #:use-module (guix utils) #:use-module (gnu packages) @@ -59,6 +60,7 @@ #:use-module (gnu packages pcre) #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) + #:use-module (gnu packages perl) #:use-module (gnu packages python) #:use-module (gnu packages python-build) #:use-module (gnu packages python-xyz) @@ -1304,3 +1306,40 @@ languages such as HTML, Markdown, Asciidoc, and reStructuredText. The community around it also has a list of style guides implemented with Vale in @url{https://github.com/errata-ai/styles, their styles repo}.") (license license:expat))) + +(define-public ack + (package + (name "ack") + (version "3.5.0") + (source (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/beyondgrep/ack3") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "00131vqjbzcn6w22m0h3j6x9kp59dimfnnqhpmi78vbcj0jws1dv")))) + (build-system perl-build-system) + (arguments '(#:tests? #t + #:phases (modify-phases + %standard-phases + (add-after 'patch-generated-file-shebangs 'patch-more-shebangs + (lambda* (#:key inputs #:allow-other-keys) + (let ((perl (string-append + (assoc-ref inputs "perl") + "/bin/perl"))) + (substitute* "t/ack-type.t" + (("/usr/bin/perl") + perl) + (("/usr/bin/env perl") + perl)))))))) + (propagated-inputs `(("perl-file-next" ,perl-file-next))) + (synopsis "Code-searching tool optimized for programmers with large trees +of source code") + (description "ack is a tool for finding text inside files. It is designed for +hackers and programmers by being fast, ignoring VCS directories, letting a user +easily specify file types, match highlighting, Perl-Compatible Regular +Expressions, and being faster to type than grep.") + (home-page "https://beyondgrep.com/") + (license license:artistic2.0)))