gnu: zile: Fix references to /bin/sh.
* gnu/packages/zile.scm (zile): Add 'patch-/bin/sh' phase. Move Perl and help2man to 'native-inputs'.
This commit is contained in:
parent
349746dfcd
commit
834b5c8076
|
@ -1,5 +1,5 @@
|
||||||
;;; GNU Guix --- Functional package management for GNU
|
;;; GNU Guix --- Functional package management for GNU
|
||||||
;;; Copyright © 2012 Ludovic Courtès <ludo@gnu.org>
|
;;; Copyright © 2012, 2013 Ludovic Courtès <ludo@gnu.org>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -24,14 +24,14 @@
|
||||||
#:use-module (gnu packages bdw-gc)
|
#:use-module (gnu packages bdw-gc)
|
||||||
#:use-module (gnu packages perl)
|
#:use-module (gnu packages perl)
|
||||||
#:use-module (gnu packages help2man)
|
#:use-module (gnu packages help2man)
|
||||||
#:use-module (gnu packages ncurses))
|
#:use-module (gnu packages ncurses)
|
||||||
|
#:use-module (gnu packages bash))
|
||||||
|
|
||||||
(define-public zile
|
(define-public zile
|
||||||
(package
|
(package
|
||||||
(name "zile")
|
(name "zile")
|
||||||
(version "2.4.9")
|
(version "2.4.9")
|
||||||
(source
|
(source (origin
|
||||||
(origin
|
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (string-append "mirror://gnu/zile/zile-"
|
(uri (string-append "mirror://gnu/zile/zile-"
|
||||||
version ".tar.gz"))
|
version ".tar.gz"))
|
||||||
|
@ -39,10 +39,22 @@
|
||||||
(base32
|
(base32
|
||||||
"0j801c28ypm924rw3lqyb6khxyslg6ycrv16wmmwcam0mk3mj6f7"))))
|
"0j801c28ypm924rw3lqyb6khxyslg6ycrv16wmmwcam0mk3mj6f7"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
|
(arguments
|
||||||
|
'(#:phases (alist-cons-before
|
||||||
|
'configure 'patch-/bin/sh
|
||||||
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
|
(let ((bash (assoc-ref inputs "bash")))
|
||||||
|
;; Refer to the actual shell.
|
||||||
|
(substitute* '("lib/spawni.c" "src/funcs.c")
|
||||||
|
(("/bin/sh")
|
||||||
|
(string-append bash "/bin/sh")))))
|
||||||
|
%standard-phases)))
|
||||||
(inputs
|
(inputs
|
||||||
`(("boehm-gc" ,libgc)
|
`(("boehm-gc" ,libgc)
|
||||||
("ncurses" ,ncurses)
|
("ncurses" ,ncurses)
|
||||||
("perl" ,perl)
|
("bash" ,bash)))
|
||||||
|
(native-inputs
|
||||||
|
`(("perl" ,perl)
|
||||||
("help2man" ,help2man)))
|
("help2man" ,help2man)))
|
||||||
(home-page "http://www.gnu.org/software/zile/")
|
(home-page "http://www.gnu.org/software/zile/")
|
||||||
(synopsis "Zile is lossy Emacs, a lightweight Emacs clone")
|
(synopsis "Zile is lossy Emacs, a lightweight Emacs clone")
|
||||||
|
|
Loading…
Reference in New Issue