unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Ricardo Wurmus <rekado@elephly.net>
To: Kei Kebreau <kei@openmailbox.org>
Cc: 26890@debbugs.gnu.org
Subject: bug#26890: [PATCH] gnu: Add agrep.
Date: Thu, 11 May 2017 23:14:40 +0200	[thread overview]
Message-ID: <87vap7rt8f.fsf@elephly.net> (raw)
In-Reply-To: <87efvvhzqv.fsf@openmailbox.org>


Kei Kebreau <kei@openmailbox.org> writes:

> Ricardo Wurmus <rekado@elephly.net> writes:
>
>> * gnu/packages/base.scm (agrep): New variable.
>> ---
>>  gnu/packages/base.scm | 33 ++++++++++++++++++++++++++++++++-
>>  1 file changed, 32 insertions(+), 1 deletion(-)
>>
>> diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm
>> index 59a9acd67..a07638c38 100644
>> --- a/gnu/packages/base.scm
>> +++ b/gnu/packages/base.scm
>> @@ -8,6 +8,7 @@
>>  ;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
>>  ;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
>>  ;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com>
>> +;;; Copyright © 2017 Ricardo Wurmus <rekado@elephly.net>
>>  ;;;
>>  ;;; This file is part of GNU Guix.
>>  ;;;
>> @@ -26,7 +27,7 @@
>>  
>>  (define-module (gnu packages base)
>>    #:use-module ((guix licenses)
>> -                #:select (gpl3+ lgpl2.0+ lgpl3+ public-domain))
>> +                #:select (gpl2+ gpl3+ lgpl2.0+ lgpl3+ public-domain))
>>    #:use-module (gnu packages)
>>    #:use-module (gnu packages acl)
>>    #:use-module (gnu packages bash)
>> @@ -116,6 +117,36 @@ including, for example, recursive directory searching.")
>>     (license gpl3+)
>>     (home-page "https://www.gnu.org/software/grep/")))
>>  
>> +(define-public agrep
>> +  (package
>> +    (name "agrep")
>> +    (version "3.41")
>> +    (source (origin
>> +              (method url-fetch)
>> +              (uri (string-append "https://www.tgries.de/agrep/agrep-"
>> +                                  version ".tgz"))
>> +              (sha256
>> +               (base32
>> +                "0ki3gbvc7lh8alks9zm48f216l2gp8r6vssmr5yccpvjz7xfl205"))))
>> +    (build-system gnu-build-system)
>> +    (arguments
>> +     `(#:tests? #f ; no "check" target
>> +       #:phases
>> +       (modify-phases %standard-phases
>> +         (delete 'configure)
>> +         (replace 'install
>> +           (lambda* (#:key outputs #:allow-other-keys)
>> +             (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
>> +               (mkdir-p bin)
>> +               (install-file "agrep" bin)
>> +               #t))))))
>> +    (home-page "https://www.tgries.de/agrep/")
>> +    (synopsis "Approximate grep for fast fuzzy string searching")
>> +    (description "Agrep is a tool for fast searching of files for a string or
>> +regular expression, with approximate matching capabilities and user-definable
>> +records.")
>> +    (license gpl2+)))
>> +
>>  (define-public sed
>>    (package
>>     (name "sed")
>
> Quote from copying.agrep in the source directory:
>   4. Redistribution for profit requires the express, written permission
>      of the authors.
>
> There is a similar clause on the website. Does the GPL or this clause
> take precedence?

Hmm, this is confusing.  The COPYRIGHT and README files in the git
repository say that the license is ICS since Sept 18, 2014, but that’s
not part of the tarball.

:~/ ?

I’m not so happy to put this in base, by the way.  I just added it
there because that’s where grep is.  Any other ideas?

-- 
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net

  reply	other threads:[~2017-05-11 21:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-11 19:30 bug#26890: [PATCH] gnu: Add agrep Ricardo Wurmus
2017-05-11 21:04 ` Kei Kebreau
2017-05-11 21:14   ` Ricardo Wurmus [this message]
2017-05-11 22:03     ` Marius Bakke
2017-05-11 21:24   ` Leo Famulari
2017-05-11 21:36     ` Ricardo Wurmus
2017-06-22 20:10       ` Ludovic Courtès

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=87vap7rt8f.fsf@elephly.net \
    --to=rekado@elephly.net \
    --cc=26890@debbugs.gnu.org \
    --cc=kei@openmailbox.org \
    /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).