gnu: libdvdcss: Update to 1.4.3.
[jackhill/guix/guix.git] / gnu / packages / autogen.scm
CommitLineData
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>
9d89818a 5;;; Copyright © 2020 Marius Bakke <mbakke@fastmail.com>
d9112589
EB
6;;;
7;;; This file is part of GNU Guix.
8;;;
9;;; GNU Guix is free software; you can redistribute it and/or modify it
10;;; under the terms of the GNU General Public License as published by
11;;; the Free Software Foundation; either version 3 of the License, or (at
12;;; your option) any later version.
13;;;
14;;; GNU Guix is distributed in the hope that it will be useful, but
15;;; WITHOUT ANY WARRANTY; without even the implied warranty of
16;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17;;; GNU General Public License for more details.
18;;;
19;;; You should have received a copy of the GNU General Public License
20;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
21
22(define-module (gnu packages autogen)
23 #:use-module (guix packages)
24 #:use-module (guix licenses)
25 #:use-module (guix download)
26 #:use-module (guix build-system gnu)
27 #:use-module (gnu packages)
98caed03 28 #:use-module (gnu packages perl)
fb8ebb83 29 #:use-module (gnu packages pkg-config)
ce0614dd 30 #:use-module (gnu packages base)
d9112589
EB
31 #:use-module (gnu packages guile))
32
33(define-public autogen
34 (package
35 (name "autogen")
1584b9d6 36 (version "5.18.16")
d9112589
EB
37 (source
38 (origin
1584b9d6
TGR
39 (method url-fetch)
40 (uri (string-append "mirror://gnu/autogen/rel" version
41 "/autogen-" version ".tar.xz"))
42 (sha256
43 (base32 "16mlbdys8q4ckxlvxyhwkdnh1ay9f6g0cyp1kylkpalgnik398gq"))))
d9112589 44 (build-system gnu-build-system)
11c8a649
TGR
45 (native-inputs `(("pkg-config" ,pkg-config)
46 ("which" ,which)))
1584b9d6 47 (inputs `(("guile" ,guile-2.2)
11c8a649 48 ("perl" ,perl))) ; for doc generator mdoc
d9112589 49 (arguments
1584b9d6
TGR
50 '(#:configure-flags
51 ;; XXX Needed to build 5.18.16. ./configure fails without it:
52 ;; “Something went wrong bootstrapping makefile fragments for
53 ;; automatic dependency tracking. Try re-running configure with […]”
54 (list "--disable-dependency-tracking")
9d89818a
MB
55
56 ;; XXX: Parallel tests may cause an indefinite hang with GNU Make 4.3.
57 #:parallel-tests? #f
58
1584b9d6 59 #:phases
99e4aa54
EF
60 (modify-phases %standard-phases
61 (add-before 'patch-source-shebangs 'patch-test-scripts
62 (lambda _
63 (let ((sh (which "sh")))
64 (substitute*
1584b9d6
TGR
65 (append (find-files "agen5/test" "\\.test$")
66 (find-files "autoopts/test" "\\.(test|in)$"))
11c8a649 67 (("/bin/sh") sh))
0c4944f0
EF
68 #t))))))
69 (home-page "https://www.gnu.org/software/autogen/")
d9112589
EB
70 (synopsis "Automated program generator")
71 (description
72 "AutoGen is a program to ease the maintenance of programs that contain
73large amounts of repetitive text. It automates the construction of these
74sections of the code, simplifying the task of keeping the text in sync. It
75also includes an add-on package called AutoOpts, which is specialized for the
76maintenance and documentation of program options.")
77 (license gpl3+)))