1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
| | (define-module (gnu packages lua-lpeg)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix build-system gnu)
#:use-module (guix licenses)
#:use-module (gnu packages lua))
(define-public lua-lpeg
(package
(name "lua-lpeg")
(version "1.0.0")
(source (origin
(method url-fetch)
(uri "http://www.inf.puc-rio.br/~roberto/lpeg/lpeg-1.0.0.tar.gz")
(sha256
(base32 "13mz18s359wlkwm9d9iqlyyrrwjc6iqfpa99ai0icam2b3khl68h"))))
(build-system gnu-build-system)
(arguments '(
#:make-flags '("LUADIR=/usr/include")
#:phases (modify-phases %standard-phases
(delete 'configure)
(replace 'install (lambda _
(let* ((out (assoc-ref %outputs "out")))
(install-file "lpeg.so" (string-append out "/usr/lib/lua/5.3"))
(install-file "re.lua" (string-append out "/usr/share/lua/5.3"))))))
#:tests? #f))
(inputs `(("lua", lua)))
(synopsis "Keyboard entry processing libary for terminal-based programs")
(description (string-append
"lua-lpeg handles all the necessary logic to recognise special keys, "
"UTF-8 combining, and so on, with a simple interface."))
(home-page "http://www.inf.puc-rio.br/~roberto/lpeg")
(license expat)))
|