From mboxrd@z Thu Jan 1 00:00:00 1970 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 Message-ID: References: Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39697) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZtJC4-00069T-2n for guix-devel@gnu.org; Mon, 02 Nov 2015 12:46:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZtJC0-0003Zy-UC for guix-devel@gnu.org; Mon, 02 Nov 2015 12:46:55 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:40070) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZtJC0-0003Za-Qg for guix-devel@gnu.org; Mon, 02 Nov 2015 12:46:52 -0500 Received: from jasmine.lan (c-69-249-5-231.hsd1.pa.comcast.net [69.249.5.231]) by mail.messagingengine.com (Postfix) with ESMTPA id BB8C5680152 for ; Mon, 2 Nov 2015 12:46:49 -0500 (EST) In-Reply-To: In-Reply-To: References: List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org * 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