[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/06: gnu: Add lua5.2-bitop.
From: |
Ricardo Wurmus |
Subject: |
04/06: gnu: Add lua5.2-bitop. |
Date: |
Tue, 31 Jan 2017 20:02:11 +0000 (UTC) |
rekado pushed a commit to branch master
in repository guix.
commit cf9a788d93166da262cdeb1a08ec59b481e0eb2c
Author: Ricardo Wurmus <address@hidden>
Date: Tue Jan 24 15:40:13 2017 +0100
gnu: Add lua5.2-bitop.
* gnu/packages/lua.scm (lua5.2-bitop): New variable.
---
gnu/packages/lua.scm | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/gnu/packages/lua.scm b/gnu/packages/lua.scm
index 721eced..28f66a5 100644
--- a/gnu/packages/lua.scm
+++ b/gnu/packages/lua.scm
@@ -401,3 +401,36 @@ Notable examples are GTK+, GStreamer and Webkit.")
Grammars (PEGs).")
(home-page "http://www.inf.puc-rio.br/~roberto/lpeg")
(license license:expat)))
+
+;; Lua 5.3 is not supported.
+(define-public lua5.2-bitop
+ (package
+ (name "lua5.2-bitop")
+ (version "1.0.2")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "http://bitop.luajit.org/download/"
+ "LuaBitOp-" version ".tar.gz"))
+ (sha256
+ (base32
+ "16fffbrgfcw40kskh2bn9q7m3gajffwd2f35rafynlnd7llwj1qj"))))
+ (build-system gnu-build-system)
+ (arguments
+ `(#:test-target "test"
+ #:make-flags
+ (list "INSTALL=install -pD"
+ (string-append "INSTALLPATH=printf "
+ (assoc-ref %outputs "out")
+ "/lib/lua/"
+ ,(version-major+minor (package-version lua-5.2))
+ "/bit/bit.so"))
+ #:phases
+ (modify-phases %standard-phases
+ (delete 'configure))))
+ (inputs `(("lua", lua-5.2)))
+ (home-page "http://bitop.luajit.org/index.html")
+ (synopsis "Bitwise operations on numbers for Lua")
+ (description
+ "Lua BitOp is a C extension module for Lua which adds bitwise operations
+on numbers.")
+ (license license:expat)))
- branch master updated (8a4d14f -> 9b11eee), Ricardo Wurmus, 2017/01/31
- 02/06: gnu: Add lua-libmpack., Ricardo Wurmus, 2017/01/31
- 05/06: gnu: Add lua5.2-lpeg., Ricardo Wurmus, 2017/01/31
- 06/06: gnu: Add neovim., Ricardo Wurmus, 2017/01/31
- 04/06: gnu: Add lua5.2-bitop.,
Ricardo Wurmus <=
- 01/06: gnu: Add libmpack., Ricardo Wurmus, 2017/01/31
- 03/06: gnu: Add lua5.2-libmpack., Ricardo Wurmus, 2017/01/31