summaryrefslogtreecommitdiff
blob: 6585aa6cf8ade7b0090ea5348a1858e44e6dce54 (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
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

LUA_COMPAT="luajit2"
VCS="git"
GITHUB_A="jdesgats"
GITHUB_PN="ILuaJIT"

inherit lua

DESCRIPTION="Readline powered shell for LuaJIT"

LICENSE="MIT"
SLOT="0"
KEYWORDS=""
IUSE="doc +completion"

RDEPEND="
	doc? ( dev-lua/luadoc )
	dev-lua/penlight
	sys-libs/readline
	completion? ( dev-lua/luafilesystem )
"
DEPEND="${RDEPEND}"

DOCS=(README.md)
HTML_DOCS=(html/.)

all_lua_prepare() {
	use doc && luadoc . -d html
}

each_lua_install() {
	dolua_jit *.lua
}

all_lua_install() {
	dobin ${FILESDIR}/${PN}
}