gnu: Add lua-filesystem and lua5.2-filesystem.
* gnu/packages/lua.scm (lua-filesystem, lua5.2-filesystem): New variables. (make-lua-filesystem): New procedure. (lua-filesystem, lua5.1-filesystem, lua5.2-filesystem): Call it.master
parent
253aab77c5
commit
d994325747
|
@ -244,9 +244,9 @@ handy.")
|
||||||
(define-public lua5.2-socket
|
(define-public lua5.2-socket
|
||||||
(make-lua-socket "lua5.2-socket" lua-5.2))
|
(make-lua-socket "lua5.2-socket" lua-5.2))
|
||||||
|
|
||||||
(define-public lua5.1-filesystem
|
(define (make-lua-filesystem name lua)
|
||||||
(package
|
(package
|
||||||
(name "lua5.1-filesystem")
|
(name name)
|
||||||
(version "1.6.3")
|
(version "1.6.3")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
|
@ -260,13 +260,16 @@ handy.")
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:make-flags
|
`(#:make-flags
|
||||||
(list (string-append "PREFIX=" (assoc-ref %outputs "out")))
|
(let ((out (assoc-ref %outputs "out"))
|
||||||
|
(lua-version ,(version-major+minor (package-version lua))))
|
||||||
|
(list (string-append "PREFIX=" out)
|
||||||
|
(string-append "LUA_LIBDIR=" out "/lib/lua/" lua-version)))
|
||||||
#:test-target "test"
|
#:test-target "test"
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(delete 'configure))))
|
(delete 'configure))))
|
||||||
(inputs
|
(inputs
|
||||||
`(("lua" ,lua-5.1)))
|
`(("lua" ,lua)))
|
||||||
(home-page "https://keplerproject.github.io/luafilesystem/index.html")
|
(home-page "https://keplerproject.github.io/luafilesystem/index.html")
|
||||||
(synopsis "File system library for Lua")
|
(synopsis "File system library for Lua")
|
||||||
(description "LuaFileSystem is a Lua library developed to complement the
|
(description "LuaFileSystem is a Lua library developed to complement the
|
||||||
|
@ -275,6 +278,15 @@ distribution. LuaFileSystem offers a portable way to access the underlying
|
||||||
directory structure and file attributes.")
|
directory structure and file attributes.")
|
||||||
(license (package-license lua-5.1))))
|
(license (package-license lua-5.1))))
|
||||||
|
|
||||||
|
(define-public lua-filesystem
|
||||||
|
(make-lua-filesystem "lua-filesystem" lua))
|
||||||
|
|
||||||
|
(define-public lua5.1-filesystem
|
||||||
|
(make-lua-filesystem "lua5.1-filesystem" lua-5.1))
|
||||||
|
|
||||||
|
(define-public lua5.2-filesystem
|
||||||
|
(make-lua-filesystem "lua5.2-filesystem" lua-5.2))
|
||||||
|
|
||||||
(define-public lua5.1-sec
|
(define-public lua5.1-sec
|
||||||
(package
|
(package
|
||||||
(name "lua5.1-sec")
|
(name "lua5.1-sec")
|
||||||
|
|
Reference in New Issue