Archived
1
0
Fork 0

gnu: dash: Update to 0.5.9.1.

* gnu/packages/shells.scm (dash): Update to 0.5.9.1.
[source]: Use git-fetch.
[native-inputs]: Add autoconf and automake.
[arguments]: Add 'bootstrap' phase.
This commit is contained in:
Leo Famulari 2017-03-30 03:30:26 -04:00
parent 755c5ba85c
commit 06e8d0c8e5
No known key found for this signature in database
GPG key ID: 2646FA30BACA7F08

View file

@ -7,6 +7,7 @@
;;; Copyright © 2016 Stefan Reichör <stefan@xsteve.at> ;;; Copyright © 2016 Stefan Reichör <stefan@xsteve.at>
;;; Copyright © 2017 Ricardo Wurmus <rekado@elephly.net> ;;; Copyright © 2017 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2017 ng0 <contact.ng0@cryptolab.net> ;;; Copyright © 2017 ng0 <contact.ng0@cryptolab.net>
;;; Copyright © 2017 Leo Famulari <leo@famulari.name>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -48,15 +49,20 @@
(define-public dash (define-public dash
(package (package
(name "dash") (name "dash")
(version "0.5.9") (version "0.5.9.1")
(source (source
(origin (origin
(method url-fetch) ;; The canonical source is offline, so we fetch the source code
(uri (string-append "http://gondor.apana.org.au/~herbert/dash/files/" ;; from the Git repository. See:
name "-" version ".tar.gz")) ;; https://www.mail-archive.com/dash@vger.kernel.org/msg01323.html
(method git-fetch)
(uri (git-reference
(url "https://git.kernel.org/pub/scm/utils/dash/dash.git/")
(commit (string-append "v" version))))
(file-name (string-append name "-" version "-checkout"))
(sha256 (sha256
(base32 (base32
"17328wd9n5krr5wd37smrk0y7fdf8aa3hmhm02br5mqpq0a3nycj")) "0p01vx7rbyf5hyyaff7h8cbhq81bm5fmq1m933484lncl9rafcai"))
(modules '((guix build utils))) (modules '((guix build utils)))
(snippet (snippet
'(begin '(begin
@ -67,10 +73,17 @@
"a command interpreter based on the original Bourne shell")) "a command interpreter based on the original Bourne shell"))
#t)))) #t))))
(build-system gnu-build-system) (build-system gnu-build-system)
(native-inputs
`(("autoconf" ,autoconf)
("automake" ,automake)))
(inputs (inputs
`(("libedit" ,libedit))) `(("libedit" ,libedit)))
(arguments (arguments
`(#:configure-flags '("--with-libedit"))) `(#:phases
(modify-phases %standard-phases
(add-before 'configure 'bootstrap
(lambda _ (zero? (system* "autoreconf" "-vfi")))))
#:configure-flags '("--with-libedit")))
(home-page "http://gondor.apana.org.au/~herbert/dash") (home-page "http://gondor.apana.org.au/~herbert/dash")
(synopsis "POSIX-compliant shell optimised for size") (synopsis "POSIX-compliant shell optimised for size")
(description (description