From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id GH+lDtCfrWCyrAAAgWs5BA (envelope-from ) for ; Wed, 26 May 2021 03:09:36 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id OB9dCtCfrWASZAAAB5/wlQ (envelope-from ) for ; Wed, 26 May 2021 01:09:36 +0000 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 C3C371EF01 for ; Wed, 26 May 2021 03:09:35 +0200 (CEST) Received: from localhost ([::1]:57244 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lli3C-00045l-Qq for larch@yhetil.org; Tue, 25 May 2021 21:09:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44536) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1llfJK-0007nh-SQ for guix-patches@gnu.org; Tue, 25 May 2021 18:14:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:35717) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1llfJK-0002MF-Kc for guix-patches@gnu.org; Tue, 25 May 2021 18:14:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1llfJK-0004LO-FN for guix-patches@gnu.org; Tue, 25 May 2021 18:14:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48630] [PATCH] adds `ack' package and it's perl module dependency File::Next References: <20210524191054.7wtb4wopstgx2c77@silver> In-Reply-To: <20210524191054.7wtb4wopstgx2c77@silver> Resent-From: Gabriel Wicki Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 25 May 2021 22:14:02 +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: 48630@debbugs.gnu.org Received: via spool by 48630-submit@debbugs.gnu.org id=B48630.162198082216664 (code B ref 48630); Tue, 25 May 2021 22:14:02 +0000 Received: (at 48630) by debbugs.gnu.org; 25 May 2021 22:13:42 +0000 Received: from localhost ([127.0.0.1]:47263 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1llfJ0-0004Ki-AN for submit@debbugs.gnu.org; Tue, 25 May 2021 18:13:42 -0400 Received: from chimborazo.ee.ethz.ch ([129.132.2.15]:33853) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1llfIw-0004KQ-KG for 48630@debbugs.gnu.org; Tue, 25 May 2021 18:13:41 -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 DB6E64024D for <48630@debbugs.gnu.org>; Wed, 26 May 2021 00:13:29 +0200 (CEST) Date: Wed, 26 May 2021 00:13:26 +0200 From: Gabriel Wicki Message-ID: <20210525221326.tadqgibhes4bbyyl@silver> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Tue, 25 May 2021 21:09:18 -0400 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-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1621991375; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post; bh=Mm1SvSxnitS671olPqElbjbS+//t7k+P9UoU1xspZRI=; b=crJyo/l58Zguc0vIJQe3B+HGRMGfPMCRVJhR52amo+zWOooGdYTiGd5XRv/whjQJ7oQPv1 AuLax2mX/RzbYc+1N+DauTjv+fW6X1gtt8pVSDrB0QuvGjxH7bFHhaLZSFTE0C8JtX5efp Y/HMpJoEWkanVpjadJS8MgP7I4FCJgTI34e4GdCpVcwydEPJpiRx1c0xVqu/Y/F8nLfkeC 5uEvufxHqCcHJuBni0hTNYyEBwm0UDNP2ozloo3RWLYLrkQrODEdo/eNawCnc5ks5GgA4Z 7MPO7Lj4KG3g9gv5Fm0zMqZZlfSvM/9xhecHKx/ohNhcacxAy89Fvzgh91WT/Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1621991375; a=rsa-sha256; cv=none; b=QP817WrZzO/6RfEwTvoXqp9A26s6ExWXYaAY18Q6eaOyaERXL4ZvMrTdhWieoKCUW5YlPh uZuigZQ9+m3TIssc/6WVjVNc5Ize6rGw8I8/X0AJFjQdrRBRc7f1D/nCVPRR8plWHRZW5S FpWhCYpPV0bAYtyG/cquqfV7Xxf2rIoGdPsHvoZ3srelic8p/668aEC/HoqhXs0UbIDFJk JD2NJ9eQtePqUFFCht4RALN76sILUZ1HcTrCkp3MKTe5ydpHMit1S642Ae80zaSBwKTr2+ 4irbepI138cNJ3OHA30P3Q703MXMI2itm6sRJeRJyiSLoNC+JYX/lkoCxqWucw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -1.93 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: C3C371EF01 X-Spam-Score: -1.93 X-Migadu-Scanner: scn0.migadu.com X-TUID: 4U8ujnaxosCM >From 2c708fcb56bdb7549a9de7535a0aaf936a18e8a0 Mon Sep 17 00:00:00 2001 From: Gabriel Wicki Date: Wed, 26 May 2021 00:08:09 +0200 Subject: [PATCH] add package ack to (gnu packages textutils) modified: gnu/packages/textutils.scm - add package ack - add (guix build-system perl) and (gnu packages perl) to imports --- 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))) -- 2.30.2