Commit | Line | Data |
---|---|---|
d9112589 | 1 | ;;; GNU Guix --- Functional package management for GNU |
e85ff3e2 EF |
2 | ;;; Copyright © 2013, 2014 Eric Bavier <bavier@member.fsf.org> |
3 | ;;; Copyright © 2015, 2016 Efraim Flashner <efraim@flashner.co.il> | |
1584b9d6 | 4 | ;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr> |
d9112589 EB |
5 | ;;; |
6 | ;;; This file is part of GNU Guix. | |
7 | ;;; | |
8 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
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 | ;;; | |
13 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
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 | |
19 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
20 | ||
21 | (define-module (gnu packages autogen) | |
22 | #:use-module (guix packages) | |
23 | #:use-module (guix licenses) | |
24 | #:use-module (guix download) | |
25 | #:use-module (guix build-system gnu) | |
26 | #:use-module (gnu packages) | |
98caed03 | 27 | #:use-module (gnu packages perl) |
fb8ebb83 | 28 | #:use-module (gnu packages pkg-config) |
ce0614dd | 29 | #:use-module (gnu packages base) |
d9112589 EB |
30 | #:use-module (gnu packages guile)) |
31 | ||
32 | (define-public autogen | |
33 | (package | |
34 | (name "autogen") | |
1584b9d6 | 35 | (version "5.18.16") |
d9112589 EB |
36 | (source |
37 | (origin | |
1584b9d6 TGR |
38 | (method url-fetch) |
39 | (uri (string-append "mirror://gnu/autogen/rel" version | |
40 | "/autogen-" version ".tar.xz")) | |
41 | (sha256 | |
42 | (base32 "16mlbdys8q4ckxlvxyhwkdnh1ay9f6g0cyp1kylkpalgnik398gq")))) | |
d9112589 | 43 | (build-system gnu-build-system) |
11c8a649 TGR |
44 | (native-inputs `(("pkg-config" ,pkg-config) |
45 | ("which" ,which))) | |
1584b9d6 | 46 | (inputs `(("guile" ,guile-2.2) |
11c8a649 | 47 | ("perl" ,perl))) ; for doc generator mdoc |
d9112589 | 48 | (arguments |
1584b9d6 TGR |
49 | '(#:configure-flags |
50 | ;; XXX Needed to build 5.18.16. ./configure fails without it: | |
51 | ;; “Something went wrong bootstrapping makefile fragments for | |
52 | ;; automatic dependency tracking. Try re-running configure with […]” | |
53 | (list "--disable-dependency-tracking") | |
54 | #:phases | |
99e4aa54 EF |
55 | (modify-phases %standard-phases |
56 | (add-before 'patch-source-shebangs 'patch-test-scripts | |
57 | (lambda _ | |
58 | (let ((sh (which "sh"))) | |
59 | (substitute* | |
1584b9d6 TGR |
60 | (append (find-files "agen5/test" "\\.test$") |
61 | (find-files "autoopts/test" "\\.(test|in)$")) | |
11c8a649 | 62 | (("/bin/sh") sh)) |
0c4944f0 EF |
63 | #t)))))) |
64 | (home-page "https://www.gnu.org/software/autogen/") | |
d9112589 EB |
65 | (synopsis "Automated program generator") |
66 | (description | |
67 | "AutoGen is a program to ease the maintenance of programs that contain | |
68 | large amounts of repetitive text. It automates the construction of these | |
69 | sections of the code, simplifying the task of keeping the text in sync. It | |
70 | also includes an add-on package called AutoOpts, which is specialized for the | |
71 | maintenance and documentation of program options.") | |
72 | (license gpl3+))) |