summaryrefslogtreecommitdiff
blob: ddb5ba6aa9d69fd4fe98f6ea0b72eae285907385 (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
39
40
41
42
43
44
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

VCS="git"
GITHUB_A="stevedonovan"

inherit lua

DESCRIPTION="Libraries for input handling, functional programming and OS path management."
HOMEPAGE="https://github.com/stevedonovan/Penlight"

LICENSE="MIT"
SLOT="0"
KEYWORDS=""
IUSE="doc examples test luajit"

# TODO: Lua 5.2 handling

DEPEND="
	${RDEPEND}
	doc? ( dev-lua/ldoc )
"

#HTML_DOCS=(html/.)
DOCS=(README.md CONTRIBUTING.md)
EXAMPLES=(examples/.)

all_lua_compile() {
	use doc && (
		pushd doc &>/dev/null
		ldoc . -d ../html
		popd
	)
}

each_lua_test() {
	${LUA} run.lua tests
}

each_lua_install() {
	dolua lua/pl
}