summaryrefslogtreecommitdiff
blob: 86fa37d66de9c440edd3f36a55ba5bd44b24cdb5 (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
# 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"
HOMEPAGE="https://github.com/jdesgats/ILuaJIT"

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
	lua_default
}

each_lua_install() {
	dolua_jit *.lua
}

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