blob: c64c8c09cb1bd343ba0a53c5f535b3b3573725e9 (
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
34
35
36
37
38
|
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
IS_MULTILIB=true
inherit lua
DESCRIPTION="Parsing Expression Grammars for Lua"
HOMEPAGE="http://www.inf.puc-rio.br/~roberto/lpeg/"
SRC_URI="http://www.inf.puc-rio.br/~roberto/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 ~arm ~hppa ~mips x86"
IUSE="debug doc"
PATCHES=("${FILESDIR}/${P}-makefile.patch")
DOCS=(HISTORY)
HTML_DOCS=({lpeg,re}.html)
all_lua_prepare() {
use debug && append-cflags -DLPEG_DEBUG
lua_default
}
each_lua_compile() {
lua_default DLLFLAGS="${CFLAGS} ${LDFLAGS}" lpeg.so
}
each_lua_test() {
${LUA} test.lua
}
each_lua_install() {
dolua lpeg.so re.lua
}
|