Commit | Line | Data |
---|---|---|
d9112589 EB |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2013 Eric Bavier <bavier@member.fsf.org> | |
3 | ;;; | |
4 | ;;; This file is part of GNU Guix. | |
5 | ;;; | |
6 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
7 | ;;; under the terms of the GNU General Public License as published by | |
8 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
9 | ;;; your option) any later version. | |
10 | ;;; | |
11 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
12 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | ;;; GNU General Public License for more details. | |
15 | ;;; | |
16 | ;;; You should have received a copy of the GNU General Public License | |
17 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
18 | ||
19 | (define-module (gnu packages autogen) | |
20 | #:use-module (guix packages) | |
21 | #:use-module (guix licenses) | |
22 | #:use-module (guix download) | |
23 | #:use-module (guix build-system gnu) | |
24 | #:use-module (gnu packages) | |
25 | #:use-module (gnu packages which) | |
26 | #:use-module (gnu packages guile)) | |
27 | ||
28 | (define-public autogen | |
29 | (package | |
30 | (name "autogen") | |
8d9865df | 31 | (version "5.18.2") |
d9112589 EB |
32 | (source |
33 | (origin | |
34 | (method url-fetch) | |
35 | (uri (string-append "mirror://gnu/autogen/rel" | |
36 | version "/autogen-" | |
37 | version ".tar.gz")) | |
38 | (sha256 | |
39 | (base32 | |
8d9865df | 40 | "0s2021bwpq6h199cbbranz96hhm5s7v66lc68h8v198vqbg049yc")))) |
d9112589 EB |
41 | (build-system gnu-build-system) |
42 | (inputs `(("which" ,which) | |
43 | ("guile" ,guile-2.0))) | |
44 | (arguments | |
45 | '(#:phases (alist-cons-before | |
46 | 'patch-source-shebangs 'patch-test-scripts | |
47 | (lambda _ | |
48 | (let ((sh (which "sh"))) | |
49 | (substitute* | |
50 | (append (find-files "agen5/test" "\\.test$") | |
51 | (find-files "autoopts/test" "\\.(test|in)$")) | |
52 | (("/bin/sh") sh) | |
53 | (("/usr/bin/tr") "tr")))) | |
54 | %standard-phases))) | |
55 | (home-page "http://www.gnu.org/software/autogen/") | |
56 | (synopsis "Automated program generator") | |
57 | (description | |
58 | "AutoGen is a program to ease the maintenance of programs that contain | |
59 | large amounts of repetitive text. It automates the construction of these | |
60 | sections of the code, simplifying the task of keeping the text in sync. It | |
61 | also includes an add-on package called AutoOpts, which is specialized for the | |
62 | maintenance and documentation of program options.") | |
63 | (license gpl3+))) |