From: Ryan Sundberg via Guix-patches via <guix-patches@gnu.org>
To: 48893@debbugs.gnu.org
Subject: [bug#48893] [PATCH] New package: ack
Date: Wed, 9 Jun 2021 00:12:30 -0700 [thread overview]
Message-ID: <f82c38c9-f1df-fad0-7034-f5fa17b9a37b@arctype.co> (raw)
In-Reply-To: <20210606235852.26193-1-ryan@arctype.co>
[-- Attachment #1.1.1: Type: text/plain, Size: 2838 bytes --]
Revised ack patch per coding standards.
--
Sincerely,
Ryan Sundberg
On 6/6/21 4:58 PM, Ryan Sundberg wrote:
> ack is a grep-like source code search tool.
>
> (The previous patch had the wrong home-page set.)
>
> Signed-off-by: Ryan Sundberg <ryan@arctype.co>
> ---
> gnu/packages/search.scm | 29 ++++++++++++++++++++++++++++-
> 1 file changed, 28 insertions(+), 1 deletion(-)
>
> diff --git a/gnu/packages/search.scm b/gnu/packages/search.scm
> index 362eb0d95e..e4f48d5906 100644
> --- a/gnu/packages/search.scm
> +++ b/gnu/packages/search.scm
> @@ -6,6 +6,7 @@
> ;;; Copyright © 2018, 2020, 2021 Tobias Geerinckx-Rice <me@tobias.gr>
> ;;; Copyright © 2018 Adam Massmann <massmannak@gmail.com>
> ;;; Copyright © 2020 Hartmut Goebel <h.goebel@crazy-compilers.com>
> +;;; Copyright © 2021 Ryan Sundberg <ryan@arctype.co>
> ;;;
> ;;; This file is part of GNU Guix.
> ;;;
> @@ -24,11 +25,12 @@
>
> (define-module (gnu packages search)
> #:use-module ((guix licenses)
> - #:select (gpl2 gpl2+ gpl3+ lgpl2.1+ bsd-3 x11 perl-license))
> + #:select (gpl2 gpl2+ gpl3+ lgpl2.1+ bsd-3 x11 perl-license artistic2.0))
> #:use-module (guix packages)
> #:use-module (guix download)
> #:use-module (guix git-download)
> #:use-module (guix utils)
> + #:use-module (guix build-system copy)
> #:use-module (guix build-system gnu)
> #:use-module (guix build-system perl)
> #:use-module (guix build-system python)
> @@ -50,6 +52,31 @@
> #:use-module (gnu packages xdisorg)
> #:use-module (gnu packages xml))
>
> +(define-public ack
> + (package
> + (name "ack")
> + (version "3.5.0")
> + (source
> + (origin
> + (method url-fetch)
> + (uri (string-append "https://beyondgrep.com/ack-v" version))
> + (sha256 (base32 "17wq9c1pwisbg4mcmvmdaym8hlawx209iriaxjlw9hwi0v4x6w38"))))
> + (inputs `(("perl" ,perl)))
> + (build-system copy-build-system)
> + (arguments
> + `(#:install-plan '(("ack" "bin/ack"))
> + #:phases
> + (modify-phases %standard-phases
> + (replace 'unpack
> + (lambda* (#:key source #:allow-other-keys)
> + (copy-file source "ack")
> + (chmod "ack" #o0755)
> + #t)))))
> + (home-page "https://beyondgrep.com/")
> + (synopsis "ack is a grep-like source code search tool.")
> + (description "Designed for programmers with large heterogeneous trees of source code, ack is written in portable Perl 5 and takes advantage
of the power of Perl's regular expressions. ack is designed as an alternative to grep for programmers.")
> + (license artistic2.0)))
> +
> (define-public xapian
> (package
> (name "xapian")
>
[-- Attachment #1.1.2: 0001-gnu-Add-ack-version-3.5.0.patch --]
[-- Type: text/x-patch, Size: 2610 bytes --]
From fea54a57b5b4e1cdc6bd642ae499fbaafad5cb62 Mon Sep 17 00:00:00 2001
From: Ryan Sundberg <ryan@arctype.co>
Date: Sun, 31 Jan 2021 10:29:47 -0800
Subject: [PATCH] gnu: Add ack version 3.5.0
* gnu/packages/search.scm (ack): New variable.
Signed-off-by: Ryan Sundberg <ryan@arctype.co>
---
gnu/packages/search.scm | 30 +++++++++++++++++++++++++++++-
1 file changed, 29 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/search.scm b/gnu/packages/search.scm
index 362eb0d95e..d523d3f93f 100644
--- a/gnu/packages/search.scm
+++ b/gnu/packages/search.scm
@@ -6,6 +6,7 @@
;;; Copyright © 2018, 2020, 2021 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2018 Adam Massmann <massmannak@gmail.com>
;;; Copyright © 2020 Hartmut Goebel <h.goebel@crazy-compilers.com>
+;;; Copyright © 2021 Ryan Sundberg <ryan@arctype.co>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -24,11 +25,12 @@
(define-module (gnu packages search)
#:use-module ((guix licenses)
- #:select (gpl2 gpl2+ gpl3+ lgpl2.1+ bsd-3 x11 perl-license))
+ #:select (gpl2 gpl2+ gpl3+ lgpl2.1+ bsd-3 x11 perl-license artistic2.0))
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module (guix utils)
+ #:use-module (guix build-system copy)
#:use-module (guix build-system gnu)
#:use-module (guix build-system perl)
#:use-module (guix build-system python)
@@ -50,6 +52,32 @@
#:use-module (gnu packages xdisorg)
#:use-module (gnu packages xml))
+(define-public ack
+ (package
+ (name "ack")
+ (version "3.5.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "https://beyondgrep.com/ack-v" version))
+ (sha256 (base32 "17wq9c1pwisbg4mcmvmdaym8hlawx209iriaxjlw9hwi0v4x6w38"))))
+ (inputs `(("perl" ,perl)))
+ (build-system copy-build-system)
+ (arguments
+ `(#:install-plan '(("ack" "bin/ack"))
+ #:phases
+ (modify-phases %standard-phases
+ (replace 'unpack
+ (lambda* (#:key source #:allow-other-keys)
+ (copy-file source "ack")
+ (chmod "ack" #o0755)
+ #t)))))
+ (home-page "https://beyondgrep.com/")
+ (synopsis "Grep-like source code search tool")
+ (description "Ack is designed for programmers with large heterogeneous trees of
+source code, as an alternative to grep.")
+ (license artistic2.0)))
+
(define-public xapian
(package
(name "xapian")
--
2.31.1
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 495 bytes --]
next prev parent reply other threads:[~2021-06-09 7:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-06 23:51 [bug#48893] [PATCH] New package: ack Ryan Sundberg via Guix-patches via
2021-06-06 23:58 ` Ryan Sundberg via Guix-patches via
2021-06-09 7:12 ` Ryan Sundberg via Guix-patches via [this message]
2021-06-13 20:46 ` Ludovic Courtès
2023-05-29 11:35 ` bug#48893: " Jelle Licht
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f82c38c9-f1df-fad0-7034-f5fa17b9a37b@arctype.co \
--to=guix-patches@gnu.org \
--cc=48893@debbugs.gnu.org \
--cc=ryan@arctype.co \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).