From patchwork Mon May 24 19:10:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gabriel Wicki X-Patchwork-Id: 29562 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 4599A27BC81; Mon, 24 May 2021 20:12:32 +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_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 F1CC327BC78 for ; Mon, 24 May 2021 20:12:31 +0100 (BST) Received: from localhost ([::1]:51576 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1llG07-0005Ki-3n for patchwork@mira.cbaines.net; Mon, 24 May 2021 15:12:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49390) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1llFze-0005Gl-7M for guix-patches@gnu.org; Mon, 24 May 2021 15:12:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:60588) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1llFzd-0000S1-W4 for guix-patches@gnu.org; Mon, 24 May 2021 15:12:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1llFzd-00061a-Pu for guix-patches@gnu.org; Mon, 24 May 2021 15:12: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: Mon, 24 May 2021 19:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 48630 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 48630@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.162188348523111 (code B ref -1); Mon, 24 May 2021 19:12:01 +0000 Received: (at submit) by debbugs.gnu.org; 24 May 2021 19:11:25 +0000 Received: from localhost ([127.0.0.1]:43901 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1llFz2-00060g-ON for submit@debbugs.gnu.org; Mon, 24 May 2021 15:11:25 -0400 Received: from lists.gnu.org ([209.51.188.17]:39020) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1llFz0-00060Z-No for submit@debbugs.gnu.org; Mon, 24 May 2021 15:11:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49166) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1llFyy-0005D5-Ip for guix-patches@gnu.org; Mon, 24 May 2021 15:11:21 -0400 Received: from chimborazo.ee.ethz.ch ([129.132.2.15]:44415) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1llFym-0008E3-P1 for guix-patches@gnu.org; Mon, 24 May 2021 15:11:20 -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 1BE60401A4 for ; Mon, 24 May 2021 21:10:58 +0200 (CEST) Date: Mon, 24 May 2021 21:10:54 +0200 From: Gabriel Wicki Message-ID: <20210524191054.7wtb4wopstgx2c77@silver> MIME-Version: 1.0 Content-Disposition: inline Received-SPF: none client-ip=129.132.2.15; envelope-from=gabriel@erlikon.ch; helo=chimborazo.ee.ethz.ch X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_NONE=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-Mailman-Approved-At: Mon, 24 May 2021 15:12:25 -0400 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 modified: gnu/packages/perl.scm - adds package `perl-file-next' (module File::Next) modified: gnu/packages/textutils.scm - adds package `ack' with disabled tests --- gnu/packages/perl.scm | 20 ++++++++++++++++++++ gnu/packages/textutils.scm | 26 ++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm index d35508112f..87d541783e 100644 --- a/gnu/packages/perl.scm +++ b/gnu/packages/perl.scm @@ -4578,6 +4578,26 @@ that arise trying to find them consistently across a wide variety of platforms.") (license (package-license perl)))) +(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 "perl-next-file") + (sha256 + (base32 + "0zdrxk409qxkbbv4fl4wi285kfzyrpaja9wfl00vrxc078rs4afm")))) + (build-system perl-build-system) + (synopsis "File::Next is a lightweight, taint-safe file-finding Perl module") + (description "A Perl CPAN module for finding files. It has no non-core +prerequisites") + (home-page "https://metacpan.org/pod/File::Next") + (license license:artistic2.0))) + (define-public perl-file-path (package (name "perl-file-path") diff --git a/gnu/packages/textutils.scm b/gnu/packages/textutils.scm index ab34373705..7dd7ee80e2 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) @@ -1304,3 +1305,28 @@ 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 (format #nil "v~a" version)))) + (file-name "ack") + (sha256 + (base32 "00131vqjbzcn6w22m0h3j6x9kp59dimfnnqhpmi78vbcj0jws1dv")))) + (build-system perl-build-system) + (arguments '(#:tests? #f)) + (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)))