[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 4/5] gnu: Use make-flags and modify-phases for lua-5.2.
From: |
Leo Famulari |
Subject: |
[PATCH 4/5] gnu: Use make-flags and modify-phases for lua-5.2. |
Date: |
Mon, 2 Nov 2015 12:46:43 -0500 |
* gnu/packages/lua.scm (lua-5.2)[arguments]: Use make-flags and
modify-phases to control build process, replacing use of
'alist-' procedures.
---
gnu/packages/lua.scm | 27 +++++++++------------------
1 file changed, 9 insertions(+), 18 deletions(-)
diff --git a/gnu/packages/lua.scm b/gnu/packages/lua.scm
index bb65070..1f58751 100644
--- a/gnu/packages/lua.scm
+++ b/gnu/packages/lua.scm
@@ -43,25 +43,16 @@
(build-system gnu-build-system)
(inputs `(("readline", readline)))
(arguments
- '(#:modules ((guix build gnu-build-system)
- (guix build utils)
- (srfi srfi-1))
+ '(#:phases (modify-phases %standard-phases
+ (delete 'configure))
#:test-target "test"
- #:phases (alist-replace
- 'build
- (lambda _ (zero? (system* "make"
- "PLAT=linux"
- "MYCFLAGS=-fPIC"
- "MYLDFLAGS=-fPIC")))
- (alist-replace
- 'install
- (lambda* (#:key outputs #:allow-other-keys)
- (let ((out (assoc-ref outputs "out")))
- (zero? (system* "make" "install"
- (string-append "INSTALL_TOP=" out)
- (string-append "INSTALL_MAN=" out
- "/share/man/man1")))))
- (alist-delete 'configure %standard-phases)))))
+ #:make-flags (list "PLAT= linux"
+ "MYCFLAGS= -fPIC"
+ "MYLDFLAGS= -fPIC"
+ (string-append "INSTALL_TOP= "
+ (assoc-ref %outputs "out"))
+ (string-append "INSTALL_MAN= "
+ (assoc-ref %outputs "out")))))
(home-page "http://www.lua.org/")
(synopsis "Embeddable scripting language")
(description
--
2.6.1