mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-02-04 09:16:31 +01:00
gnu: gnulib: Restore shebangs.
* gnu/packages/build-tools.scm (gnulib)[arguments]: Add 'restore-shebangs' phase. [inputs, native-inputs]: Add bash-minimal. [phase let-autogen-execute-gnulib-tool]: Specify a shell to execute gnulib-tool from autogen.sh. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
2135f69dc0
commit
25cad45639
1 changed files with 17 additions and 4 deletions
|
@ -973,12 +973,25 @@ (define (find-ucd-files . names)
|
||||||
("NormalizationTest.txt" . "uninorm")
|
("NormalizationTest.txt" . "uninorm")
|
||||||
("auxiliary/GraphemeBreakTest.txt" . "unigbrk")
|
("auxiliary/GraphemeBreakTest.txt" . "unigbrk")
|
||||||
("auxiliary/WordBreakTest.txt" . "uniwbrk")))
|
("auxiliary/WordBreakTest.txt" . "uniwbrk")))
|
||||||
(delete-file "gen-uni-tables")))))))
|
(delete-file "gen-uni-tables"))))
|
||||||
(inputs ;; Shebangs for some auxiliary build files.
|
(add-after 'install 'restore-shebangs
|
||||||
(list python perl clisp))
|
(lambda _
|
||||||
|
(substitute* (find-files
|
||||||
|
(string-append #$output "/src/gnulib")
|
||||||
|
(lambda (fname stat)
|
||||||
|
(and (not (string-suffix? "/lib/javaversion.class" fname))
|
||||||
|
(not (string-suffix? ".mo" fname)))))
|
||||||
|
(("^#! ?(.*)/bin/sh" _ prefix)
|
||||||
|
"#!/bin/sh")
|
||||||
|
(("^#! ?(.*)/bin/python3" _ prefix)
|
||||||
|
"#!/usr/bin/env python3")
|
||||||
|
(("^#! ?(.*)/bin/([a-zA-Z0-9-]+)" _ prefix program)
|
||||||
|
(string-append "#!/usr/bin/" program))))))))
|
||||||
|
(inputs
|
||||||
|
(list bash-minimal)) ;shebang for gnulib-tool
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list
|
(list
|
||||||
python perl clisp
|
bash-minimal python perl clisp
|
||||||
;; Unicode data:
|
;; Unicode data:
|
||||||
ucd-next
|
ucd-next
|
||||||
;; Programs for the tests:
|
;; Programs for the tests:
|
||||||
|
|
Loading…
Reference in a new issue