Commit | Line | Data |
---|---|---|
233e7676 LC |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2012 Nikita Karetnikov <nikita@karetnikov.org> | |
9589eecb | 3 | ;;; Copyright © 2013 Ludovic Courtès <ludo@gnu.org> |
0aa94f0c | 4 | ;;; |
233e7676 | 5 | ;;; This file is part of GNU Guix. |
0aa94f0c | 6 | ;;; |
233e7676 | 7 | ;;; GNU Guix is free software; you can redistribute it and/or modify it |
0aa94f0c NK |
8 | ;;; under the terms of the GNU General Public License as published by |
9 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
10 | ;;; your option) any later version. | |
11 | ;;; | |
233e7676 | 12 | ;;; GNU Guix is distributed in the hope that it will be useful, but |
0aa94f0c NK |
13 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of |
14 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | ;;; GNU General Public License for more details. | |
16 | ;;; | |
17 | ;;; You should have received a copy of the GNU General Public License | |
233e7676 | 18 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. |
0aa94f0c | 19 | |
1ffa7090 | 20 | (define-module (gnu packages ed) |
4a44e743 | 21 | #:use-module (guix licenses) |
0aa94f0c NK |
22 | #:use-module (guix packages) |
23 | #:use-module (guix download) | |
24 | #:use-module (guix build-system gnu)) | |
25 | ||
26 | (define-public ed | |
27 | (package | |
28 | (name "ed") | |
29 | (version "1.5") | |
30 | (source | |
31 | (origin | |
32 | (method url-fetch) | |
33 | (uri (string-append | |
34 | "mirror://gnu/ed/ed-" | |
35 | version | |
36 | ".tar.gz")) | |
37 | (sha256 | |
38 | (base32 | |
39 | "18gvhyhwpabmgv4lh21lg8vl3z7acdyhh2mr2kj9g75wksj39pcp")))) | |
40 | (build-system gnu-build-system) | |
9589eecb LC |
41 | (arguments |
42 | '(#:configure-flags '("CC=gcc") | |
43 | #:phases (alist-cons-before 'patch-source-shebangs 'patch-test-suite | |
44 | (lambda _ | |
45 | (substitute* "testsuite/check.sh" | |
46 | (("/bin/sh") (which "sh")))) | |
47 | %standard-phases))) | |
0aa94f0c NK |
48 | (home-page "http://www.gnu.org/software/ed/") |
49 | (synopsis | |
50 | "GNU ed, an implementation of the standard Unix editor") | |
51 | (description | |
52 | "GNU ed is a line-oriented text editor. It is used to create, | |
53 | display, modify and otherwise manipulate text files, both | |
54 | interactively and via shell scripts. A restricted version of ed, | |
55 | red, can only edit files in the current directory and cannot | |
56 | execute shell commands. Ed is the \"standard\" text editor in the | |
57 | sense that it is the original editor for Unix, and thus widely | |
58 | available. For most purposes, however, it is superseded by | |
59 | full-screen editors such as GNU Emacs or GNU Moe.") | |
4a44e743 | 60 | (license gpl3+))) |