blob: f5c7c4c63bd97e7e97f7756a5fcffdcefab4587b (
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=5
VCS="git-r3"
inherit lua
DESCRIPTION="A set of pure Lua libraries focusing on input data handling, functional programming and OS path management."
HOMEPAGE="https://github.com/stevedonovan/Penlight"
SRC_URI=""
EGIT_REPO_URI="https://github.com/stevedonovan/Penlight git://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 CHANGES.md CONTRIBUTING.md )
EXAMPLES=( examples/. )
all_lua_compile() {
use doc && (
cd doc
ldoc . -d ../html
)
}
each_lua_test() {
${LUA} run.lua tests
}
each_lua_install() {
dolua lua/pl
}
|