diff options
| author | Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de> | 2017-01-24 15:40:13 +0100 |
|---|---|---|
| committer | Ricardo Wurmus <rekado@elephly.net> | 2017-01-31 20:36:30 +0100 |
| commit | cf9a788d93166da262cdeb1a08ec59b481e0eb2c (patch) | |
| tree | 53675130bd37c886218cfec7f9fe3c80545e07d7 /gnu/packages/lua.scm | |
| parent | 369ee96b6987b2f5f78bcde89f839799dab01a2e (diff) | |
gnu: Add lua5.2-bitop.
* gnu/packages/lua.scm (lua5.2-bitop): New variable.
Diffstat (limited to 'gnu/packages/lua.scm')
| -rw-r--r-- | gnu/packages/lua.scm | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/gnu/packages/lua.scm b/gnu/packages/lua.scm index 721eceddf15..28f66a59602 100644 --- a/gnu/packages/lua.scm +++ b/gnu/packages/lua.scm | |||
| @@ -401,3 +401,36 @@ Notable examples are GTK+, GStreamer and Webkit.") | |||
| 401 | Grammars (PEGs).") | 401 | Grammars (PEGs).") |
| 402 | (home-page "http://www.inf.puc-rio.br/~roberto/lpeg") | 402 | (home-page "http://www.inf.puc-rio.br/~roberto/lpeg") |
| 403 | (license license:expat))) | 403 | (license license:expat))) |
| 404 | |||
| 405 | ;; Lua 5.3 is not supported. | ||
| 406 | (define-public lua5.2-bitop | ||
| 407 | (package | ||
| 408 | (name "lua5.2-bitop") | ||
| 409 | (version "1.0.2") | ||
| 410 | (source (origin | ||
| 411 | (method url-fetch) | ||
| 412 | (uri (string-append "http://bitop.luajit.org/download/" | ||
| 413 | "LuaBitOp-" version ".tar.gz")) | ||
| 414 | (sha256 | ||
| 415 | (base32 | ||
| 416 | "16fffbrgfcw40kskh2bn9q7m3gajffwd2f35rafynlnd7llwj1qj")))) | ||
| 417 | (build-system gnu-build-system) | ||
| 418 | (arguments | ||
| 419 | `(#:test-target "test" | ||
| 420 | #:make-flags | ||
| 421 | (list "INSTALL=install -pD" | ||
| 422 | (string-append "INSTALLPATH=printf " | ||
| 423 | (assoc-ref %outputs "out") | ||
| 424 | "/lib/lua/" | ||
| 425 | ,(version-major+minor (package-version lua-5.2)) | ||
| 426 | "/bit/bit.so")) | ||
| 427 | #:phases | ||
| 428 | (modify-phases %standard-phases | ||
| 429 | (delete 'configure)))) | ||
| 430 | (inputs `(("lua", lua-5.2))) | ||
| 431 | (home-page "http://bitop.luajit.org/index.html") | ||
| 432 | (synopsis "Bitwise operations on numbers for Lua") | ||
| 433 | (description | ||
| 434 | "Lua BitOp is a C extension module for Lua which adds bitwise operations | ||
| 435 | on numbers.") | ||
| 436 | (license license:expat))) | ||
