gnu: luajit: Make available as ‘luajit’.
* gnu/packages/lua.scm (luajit)[arguments]: Add a ‘create-luajit-symlink’ phase to make the interpreter available simply as ‘luajit’.
This commit is contained in:
parent
906f1b48e2
commit
a093bb6967
|
@ -127,8 +127,18 @@ for configuration, scripting, and rapid prototyping.")
|
||||||
(patches (search-patches "luajit-no_ldconfig.patch"))))
|
(patches (search-patches "luajit-no_ldconfig.patch"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:tests? #f ;luajit is distributed without tests
|
`(#:tests? #f ; luajit is distributed without tests
|
||||||
#:phases (modify-phases %standard-phases (delete 'configure))
|
#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(delete 'configure) ; no configure script
|
||||||
|
(add-after 'install 'create-luajit-symlink
|
||||||
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
(let* ((out (assoc-ref outputs "out"))
|
||||||
|
(bin (string-append out "/bin")))
|
||||||
|
(with-directory-excursion bin
|
||||||
|
(symlink ,(string-append name "-" version)
|
||||||
|
,name)
|
||||||
|
#t)))))
|
||||||
#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))))
|
#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))))
|
||||||
(home-page "http://www.luajit.org/")
|
(home-page "http://www.luajit.org/")
|
||||||
(synopsis "Just in time compiler for Lua programming language version 5.1")
|
(synopsis "Just in time compiler for Lua programming language version 5.1")
|
||||||
|
|
Loading…
Reference in New Issue