mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-29 07:42:23 -05:00
gnu: oil: Update to 0.8.pre5.
* gnu/packages/shells.scm (oil): Update to 0.8.pre5. [arguments]: Perform ‘patch-compiler-invocation’ phase as part of 'configure. Remove ‘make-destination’ phase. Run a basic smoke test. [synopsis, description]: Update. Signed-off-by: Tobias Geerinckx-Rice <me@tobias.gr>
This commit is contained in:
parent
ed67c4998c
commit
bd6eed4c36
1 changed files with 26 additions and 28 deletions
|
@ -14,6 +14,7 @@
|
||||||
;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com>
|
;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com>
|
||||||
;;; Copyright © 2019, 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
|
;;; Copyright © 2019, 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
|
||||||
;;; Copyright © 2020 Brice Waegeneire <brice@waegenei.re>
|
;;; Copyright © 2020 Brice Waegeneire <brice@waegenei.re>
|
||||||
|
;;; Copyright © 2020 Ryan Prior <rprior@protonmail.com>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -793,47 +794,44 @@ (define-public mksh
|
||||||
(define-public oil
|
(define-public oil
|
||||||
(package
|
(package
|
||||||
(name "oil")
|
(name "oil")
|
||||||
(version "0.7.0")
|
;; https://www.oilshell.org/blog/2020/04/release-0.8.pre4.html#comment-on-version-numbering
|
||||||
(source (origin
|
(version "0.8.pre5")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (string-append "https://www.oilshell.org/download/oil-"
|
(uri (string-append "https://www.oilshell.org/download/oil-"
|
||||||
version ".tar.xz"))
|
version ".tar.gz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32 "02llxx10izxpv1y32qn8k6r0y7al01rzxjirc8h6x8nd9kiaqknl"))))
|
||||||
"12c9s462879adb6mwd3fqafk0dnqsm16s18rhym6cmzfzy8v8zm3"))))
|
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:tests? #f ; the tests are not distributed in the tarballs
|
`(#:strip-binaries? #f ; strip breaks the binary
|
||||||
#:strip-binaries? #f ; the binaries cannot be stripped
|
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'patch-compiler-invocation
|
|
||||||
(lambda _
|
|
||||||
(substitute* "configure"
|
|
||||||
((" cc ") " gcc "))
|
|
||||||
#t))
|
|
||||||
(replace 'configure
|
(replace 'configure
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(let ((out (assoc-ref outputs "out")))
|
(let ((out (assoc-ref outputs "out")))
|
||||||
(setenv "CC" "gcc")
|
(setenv "CC" "gcc")
|
||||||
;; The configure script doesn't recognize CONFIG_SHELL.
|
(substitute* "configure"
|
||||||
(setenv "CONFIG_SHELL" (which "sh"))
|
((" cc ") " $CC "))
|
||||||
(invoke "./configure" (string-append "--prefix=" out)
|
(invoke "./configure" (string-append "--prefix=" out)
|
||||||
"--with-readline"))))
|
"--with-readline"))))
|
||||||
(add-before 'install 'make-destination
|
(replace 'check
|
||||||
|
;; The tests are not distributed in the tarballs but upstream
|
||||||
|
;; recommends running this smoke test.
|
||||||
|
;; https://github.com/oilshell/oil/blob/release/0.8.pre5/INSTALL.txt#L38-L48
|
||||||
(lambda _
|
(lambda _
|
||||||
;; The build scripts don't create the destination directory.
|
(let* ((oil "_bin/oil.ovm"))
|
||||||
(mkdir-p (string-append (assoc-ref %outputs "out") "/bin")))))))
|
(invoke/quiet oil "osh" "-c" "echo hi")
|
||||||
|
(invoke/quiet oil "osh" "-n" "configure")))))))
|
||||||
(inputs
|
(inputs
|
||||||
`(("readline" ,readline)))
|
`(("readline" ,readline)))
|
||||||
(synopsis "Bash-compatible Unix shell")
|
(home-page "https://www.oilshell.org")
|
||||||
(description "Oil is a Unix / POSIX shell, compatible with Bash. It
|
(synopsis "Programming language and Bash-compatible Unix shell")
|
||||||
implements the Oil language, which is a new shell language to which Bash can be
|
(description "Oil is a programming language with automatic translation for
|
||||||
automatically translated. The Oil language is a superset of Bash. It also
|
Bash. It includes osh, a Unix/POSIX shell that runs unmodified Bash
|
||||||
implements the OSH language, a statically-parseable language based on Bash as it
|
scripts.")
|
||||||
is commonly written.")
|
(license (list psfl ; tarball includes python2.7
|
||||||
(home-page "https://www.oilshell.org/")
|
|
||||||
(license (list psfl ; The Oil sources include a patched Python 2 source tree
|
|
||||||
asl2.0))))
|
asl2.0))))
|
||||||
|
|
||||||
(define-public oil-shell
|
(define-public oil-shell
|
||||||
|
|
Loading…
Reference in a new issue