| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 |
|
| 23 | (define-module (gnu packages autogen)
|
| 24 | #:use-module (guix packages)
|
| 25 | #:use-module (guix licenses)
|
| 26 | #:use-module (guix download)
|
| 27 | #:use-module (guix build-system gnu)
|
| 28 | #:use-module (gnu packages)
|
| 29 | #:use-module (gnu packages perl)
|
| 30 | #:use-module (gnu packages pkg-config)
|
| 31 | #:use-module (gnu packages base)
|
| 32 | #:use-module (gnu packages guile))
|
| 33 |
|
| 34 | (define-public autogen
|
| 35 | (package
|
| 36 | (name "autogen")
|
| 37 | (version "5.18.16")
|
| 38 | (source
|
| 39 | (origin
|
| 40 | (method url-fetch)
|
| 41 | (uri (string-append "mirror://gnu/autogen/rel" version
|
| 42 | "/autogen-" version ".tar.xz"))
|
| 43 | (sha256
|
| 44 | (base32 "16mlbdys8q4ckxlvxyhwkdnh1ay9f6g0cyp1kylkpalgnik398gq"))
|
| 45 | (modules '((guix build utils)))
|
| 46 | (snippet
|
| 47 | '(begin
|
| 48 | |
| 49 | (substitute* "getdefs/getdefs.c"
|
| 50 | (("def_bf\\[[[:space:]]*MAXNAMELEN[[:space:]]*\\]")
|
| 51 | "def_bf[MAXNAMELEN + 10]"))
|
| 52 | |
| 53 | (substitute* "autoopts/usage.c"
|
| 54 | (("vfmt\\[sizeof\\(vfmtfmt\\)\\]")
|
| 55 | "vfmt[sizeof(vfmtfmt) + 6]"))))))
|
| 56 | (build-system gnu-build-system)
|
| 57 | (native-inputs (list pkg-config which))
|
| 58 | (inputs (list guile-3.0 perl)) |
| 59 | (arguments
|
| 60 | '(#:configure-flags
|
| 61 | |
| 62 | |
| 63 | |
| 64 | (list "--disable-dependency-tracking")
|
| 65 |
|
| 66 | |
| 67 | #:parallel-tests? #f
|
| 68 |
|
| 69 | #:phases
|
| 70 | (modify-phases %standard-phases
|
| 71 | (add-after 'unpack 'support-guile-3.0
|
| 72 | |
| 73 | |
| 74 | |
| 75 | |
| 76 | |
| 77 | (lambda _
|
| 78 | (substitute* "agen5/guile-iface.h"
|
| 79 | (("#elif GUILE_VERSION < 203000") "#elif GUILE_VERSION < 301000"))
|
| 80 | (substitute* "configure"
|
| 81 | (("2.2 2.0 1.8") "3.0 2.2 2.0 1.8"))))
|
| 82 | (add-after 'unpack 'use-numeric-ids-in-tarball
|
| 83 | |
| 84 | |
| 85 | (lambda _
|
| 86 | (substitute* "pkg/libopts/mklibsrc.sh"
|
| 87 | (("--sort=name --format=gnu")
|
| 88 | "--sort=name --format=gnu --owner=0 --group=0 --numeric-owner"))))
|
| 89 | (add-before 'build 'set-man-page-date
|
| 90 | |
| 91 | (lambda _
|
| 92 | (setenv "MAN_PAGE_DATE" "2012-04-18")))
|
| 93 | (add-before 'patch-source-shebangs 'patch-test-scripts
|
| 94 | (lambda _
|
| 95 | (let ((sh (which "sh")))
|
| 96 | (substitute*
|
| 97 | (append (find-files "agen5/test" "\\.test$")
|
| 98 | (find-files "autoopts/test" "\\.(test|in)$"))
|
| 99 | (("/bin/sh") sh))
|
| 100 | #t))))))
|
| 101 | (home-page "https://www.gnu.org/software/autogen/")
|
| 102 | (synopsis "Automated program generator")
|
| 103 | (description
|
| 104 | "AutoGen is a program to ease the maintenance of programs that contain
|
| 105 | large amounts of repetitive text. It automates the construction of these
|
| 106 | sections of the code, simplifying the task of keeping the text in sync. It
|
| 107 | also includes an add-on package called AutoOpts, which is specialized for the
|
| 108 | maintenance and documentation of program options.")
|
| 109 | (license gpl3+)))
|