[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/10: gnu: mit-scheme: Convert to the 'modify-phases' syntax.
From: |
Federico Beffa |
Subject: |
05/10: gnu: mit-scheme: Convert to the 'modify-phases' syntax. |
Date: |
Wed, 03 Feb 2016 09:50:36 +0000 |
beffa pushed a commit to branch master
in repository guix.
commit af00e6335207b44056437eecab2e76c957c21a89
Author: Federico Beffa <address@hidden>
Date: Sun Dec 27 19:06:37 2015 +0100
gnu: mit-scheme: Convert to the 'modify-phases' syntax.
* gnu/packages/scheme.scm (mit-scheme): Do it.
---
gnu/packages/scheme.scm | 57 +++++++++++++++++++++-------------------------
1 files changed, 26 insertions(+), 31 deletions(-)
diff --git a/gnu/packages/scheme.scm b/gnu/packages/scheme.scm
index 70b229f..752dae2 100644
--- a/gnu/packages/scheme.scm
+++ b/gnu/packages/scheme.scm
@@ -59,38 +59,33 @@
(arguments
`(#:tests? #f ; no "check" target
#:phases
- (alist-replace
- 'unpack
- (lambda* (#:key inputs #:allow-other-keys)
- (and (zero? (system* "tar" "xzvf"
- (assoc-ref inputs "source")))
- (chdir ,(mit-scheme-source-directory (%current-system)
- version))
- (begin
- ;; Delete these dangling symlinks since they break
- ;; `patch-shebangs'.
- (for-each delete-file
- (append '("src/lib/shim-config.scm")
- (find-files "src/lib/lib" "\\.so$")
- (find-files "src/lib" "^liarc-")
- (find-files "src/compiler" "^make\\.")))
- (chdir "src")
- #t)))
- (alist-replace
- 'build
- (lambda* (#:key system outputs #:allow-other-keys)
- (let ((out (assoc-ref outputs "out")))
- (if (or (string-prefix? "x86_64" system)
- (string-prefix? "i686" system))
- (zero? (system* "make" "compile-microcode"))
- (zero? (system* "./etc/make-liarc.sh"
- (string-append "--prefix=" out))))))
- %standard-phases))))
+ (modify-phases %standard-phases
+ (replace 'unpack
+ (lambda* (#:key inputs #:allow-other-keys)
+ (and (zero? (system* "tar" "xzvf"
+ (assoc-ref inputs "source")))
+ (chdir ,(mit-scheme-source-directory (%current-system)
+ version))
+ (begin
+ ;; Delete these dangling symlinks since they break
+ ;; `patch-shebangs'.
+ (for-each delete-file
+ (append '("src/lib/shim-config.scm")
+ (find-files "src/lib/lib" "\\.so$")
+ (find-files "src/lib" "^liarc-")
+ (find-files "src/compiler" "^make\\.")))
+ (chdir "src")
+ #t))))
+ (replace 'build
+ (lambda* (#:key system outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ (if (or (string-prefix? "x86_64" system)
+ (string-prefix? "i686" system))
+ (zero? (system* "make" "compile-microcode"))
+ (zero? (system* "./etc/make-liarc.sh"
+ (string-append "--prefix=" out))))))))))
(inputs
- `(;; TODO: Build doc when TeX Live is available.
- ;; ("automake" ,automake)
- ;; ("texlive-core" ,texlive-core)
- ("texinfo" ,texinfo)
+ `(("texinfo" ,texinfo)
("m4" ,m4)
("libx11" ,libx11)
- branch master updated (fd9a5b0 -> 3a6a0f6), Federico Beffa, 2016/02/03
- 02/10: gnu: scmutils: Generate 'scmutils-autoloads.el' file., Federico Beffa, 2016/02/03
- 01/10: gnu: Add emacs-scheme-complete., Federico Beffa, 2016/02/03
- 03/10: gnu: Add emacs-mit-scheme-doc., Federico Beffa, 2016/02/03
- 05/10: gnu: mit-scheme: Convert to the 'modify-phases' syntax.,
Federico Beffa <=
- 06/10: gnu: mit-scheme: Generate and install documentation., Federico Beffa, 2016/02/03
- 04/10: gnu: Add emacs-constants., Federico Beffa, 2016/02/03
- 07/10: gnu: Add emacs-slime., Federico Beffa, 2016/02/03
- 10/10: gnu: Add Italian Aspell dictionary., Federico Beffa, 2016/02/03
- 08/10: gnu: sbcl: Convert to the 'modify-phases' syntax., Federico Beffa, 2016/02/03
- 09/10: gnu: sbcl: Generate and install documentation., Federico Beffa, 2016/02/03