[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/06: gnu: oil: Update to 0.8.pre5.
From: |
guix-commits |
Subject: |
06/06: gnu: oil: Update to 0.8.pre5. |
Date: |
Fri, 29 May 2020 00:46:37 -0400 (EDT) |
nckx pushed a commit to branch master
in repository guix.
commit bd6eed4c36fb0e6fd12144b414db576da98e8641
Author: Ryan Prior via Guix-patches via <guix-patches@gnu.org>
AuthorDate: Thu May 28 23:38:50 2020 +0000
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>
---
gnu/packages/shells.scm | 54 ++++++++++++++++++++++++-------------------------
1 file changed, 26 insertions(+), 28 deletions(-)
diff --git a/gnu/packages/shells.scm b/gnu/packages/shells.scm
index fa3ecca..a82f1c8 100644
--- a/gnu/packages/shells.scm
+++ b/gnu/packages/shells.scm
@@ -14,6 +14,7 @@
;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com>
;;; Copyright © 2019, 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
;;; Copyright © 2020 Brice Waegeneire <brice@waegenei.re>
+;;; Copyright © 2020 Ryan Prior <rprior@protonmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -793,47 +794,44 @@ Shell (pdksh).")
(define-public oil
(package
(name "oil")
- (version "0.7.0")
- (source (origin
- (method url-fetch)
- (uri (string-append "https://www.oilshell.org/download/oil-"
- version ".tar.xz"))
- (sha256
- (base32
- "12c9s462879adb6mwd3fqafk0dnqsm16s18rhym6cmzfzy8v8zm3"))))
+ ;;
https://www.oilshell.org/blog/2020/04/release-0.8.pre4.html#comment-on-version-numbering
+ (version "0.8.pre5")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "https://www.oilshell.org/download/oil-"
+ version ".tar.gz"))
+ (sha256
+ (base32 "02llxx10izxpv1y32qn8k6r0y7al01rzxjirc8h6x8nd9kiaqknl"))))
(build-system gnu-build-system)
(arguments
- '(#:tests? #f ; the tests are not distributed in the tarballs
- #:strip-binaries? #f ; the binaries cannot be stripped
+ `(#:strip-binaries? #f ; strip breaks the binary
#:phases
(modify-phases %standard-phases
- (add-after 'unpack 'patch-compiler-invocation
- (lambda _
- (substitute* "configure"
- ((" cc ") " gcc "))
- #t))
(replace 'configure
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
(setenv "CC" "gcc")
- ;; The configure script doesn't recognize CONFIG_SHELL.
- (setenv "CONFIG_SHELL" (which "sh"))
+ (substitute* "configure"
+ ((" cc ") " $CC "))
(invoke "./configure" (string-append "--prefix=" out)
"--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 _
- ;; The build scripts don't create the destination directory.
- (mkdir-p (string-append (assoc-ref %outputs "out") "/bin")))))))
+ (let* ((oil "_bin/oil.ovm"))
+ (invoke/quiet oil "osh" "-c" "echo hi")
+ (invoke/quiet oil "osh" "-n" "configure")))))))
(inputs
`(("readline" ,readline)))
- (synopsis "Bash-compatible Unix shell")
- (description "Oil is a Unix / POSIX shell, compatible with Bash. It
-implements the Oil language, which is a new shell language to which Bash can be
-automatically translated. The Oil language is a superset of Bash. It also
-implements the OSH language, a statically-parseable language based on Bash as
it
-is commonly written.")
- (home-page "https://www.oilshell.org/")
- (license (list psfl ; The Oil sources include a patched Python 2 source
tree
+ (home-page "https://www.oilshell.org")
+ (synopsis "Programming language and Bash-compatible Unix shell")
+ (description "Oil is a programming language with automatic translation for
+Bash. It includes osh, a Unix/POSIX shell that runs unmodified Bash
+scripts.")
+ (license (list psfl ; tarball includes python2.7
asl2.0))))
(define-public oil-shell
- branch master updated (3bafa88 -> bd6eed4), guix-commits, 2020/05/29
- 03/06: gnu: font-comic-neue: Update to 2.5., guix-commits, 2020/05/29
- 01/06: gnu: python-flask-sqlalchemy: Update to 2.4.3., guix-commits, 2020/05/29
- 02/06: gnu: rust-version-check: Update to 0.9.2., guix-commits, 2020/05/29
- 04/06: gnu: babl: Update to 0.1.76., guix-commits, 2020/05/29
- 05/06: gnu: fluidsynth: Update to 2.1.3., guix-commits, 2020/05/29
- 06/06: gnu: oil: Update to 0.8.pre5.,
guix-commits <=