blob: 030cb98094cd321ed86a859aa357a886439bd74c (
plain)
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
|
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
VCS="git-r3"
inherit lua
DESCRIPTION="A pure Lua port of LPeg, Roberto Ierusalimschy's Parsing Expression Grammars library"
HOMEPAGE="https://github.com/pygy/LuLPeg"
SRC_URI=""
EGIT_REPO_URI="https://github.com/pygy/LuLPeg"
LICENSE="WTFPL"
SLOT="0"
KEYWORDS=""
IUSE="lpeg_replace"
READMES=( README.md TODO.md ABOUT )
each_lua_compile() {
#paranoid mode:
rm "${PN}.lua" && (
cd src
"${LUA}" ../scripts/pack.lua > ../"${PN}.lua"
)
}
each_lua_install() {
dolua "${PN}".lua
use lpeg_replace && newlua "${PN}.lua" lpeg.lua
}
|