gnu: emacs-consult: Fix grammar.
[jackhill/guix/guix.git] / gnu / packages / ed.scm
CommitLineData
233e7676
LC
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2012 Nikita Karetnikov <nikita@karetnikov.org>
3f5497ee 3;;; Copyright © 2013, 2014 Ludovic Courtès <ludo@gnu.org>
f478ff86 4;;; Copyright © 2016, 2019 Efraim Flashner <efraim@flashner.co.il>
0aa94f0c 5;;;
233e7676 6;;; This file is part of GNU Guix.
0aa94f0c 7;;;
233e7676 8;;; GNU Guix is free software; you can redistribute it and/or modify it
0aa94f0c
NK
9;;; under the terms of the GNU General Public License as published by
10;;; the Free Software Foundation; either version 3 of the License, or (at
11;;; your option) any later version.
12;;;
233e7676 13;;; GNU Guix is distributed in the hope that it will be useful, but
0aa94f0c
NK
14;;; WITHOUT ANY WARRANTY; without even the implied warranty of
15;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16;;; GNU General Public License for more details.
17;;;
18;;; You should have received a copy of the GNU General Public License
233e7676 19;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
0aa94f0c 20
1ffa7090 21(define-module (gnu packages ed)
4a44e743 22 #:use-module (guix licenses)
0aa94f0c
NK
23 #:use-module (guix packages)
24 #:use-module (guix download)
3f5497ee
LC
25 #:use-module (guix build-system gnu)
26 #:use-module (gnu packages compression))
0aa94f0c
NK
27
28(define-public ed
29 (package
30 (name "ed")
4a50e983 31 (version "1.16")
b39a48ad
LC
32 (source (origin
33 (method url-fetch)
34 (uri (string-append "mirror://gnu/ed/ed-"
3f5497ee 35 version ".tar.lz"))
b39a48ad
LC
36 (sha256
37 (base32
4a50e983 38 "0b4b1lwizvng9bvpcjnmpj2i80xz9xw2w8nfff27b2h4mca7mh6g"))))
0aa94f0c 39 (build-system gnu-build-system)
3f5497ee 40 (native-inputs `(("lzip" ,lzip)))
9589eecb
LC
41 (arguments
42 '(#:configure-flags '("CC=gcc")
ff0c8476
EF
43 #:phases
44 (modify-phases %standard-phases
45 (add-before 'patch-source-shebangs 'patch-test-suite
46 (lambda _
47 (substitute* "testsuite/check.sh"
e9384e3b
MB
48 (("/bin/sh") (which "sh")))
49 #t)))))
50 (home-page "https://www.gnu.org/software/ed/")
f50d2669 51 (synopsis "Line-oriented text editor")
0aa94f0c 52 (description
a22dc0c4 53 "Ed is a line-oriented text editor: rather than offering an overview of
79c311b8 54a document, ed performs editing one line at a time. It can be executed both
a22dc0c4 55interactively and via shell scripts. Its method of command input allows
c5779c93 56complex tasks to be performed in an automated way. GNU ed offers several
79c311b8 57extensions over the standard utility.")
4a44e743 58 (license gpl3+)))