summaryrefslogtreecommitdiff
path: root/dev-lua/lua-tui/lua-tui-0_pre20190215.ebuild
blob: f18f5e3f1ae7545e7c2d8bae6988c7cbe80b5efa (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
45
46
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

# lua-bit32 dependency does not yet support newer Lua implementations
LUA_COMPAT=( lua5-{1,3,4} luajit )

inherit lua

DESCRIPTION="Lua library for creating a terminal UI "
HOMEPAGE="https://github.com/daurnimator/lua-tui"
EGIT_COMMIT="9e854fc22074d73a26fbf25cf24690c60b042b11"
SRC_URI="https://github.com/daurnimator/lua-tui/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"

S="${WORKDIR}/${PN}-${EGIT_COMMIT}"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"

IUSE="examples"
REQUIRED_USE="${LUA_REQUIRED_USE}"

DEPEND="
       dev-lua/lua-bit32[${LUA_USEDEP}]
       ${LUA_DEPS}
"
RDEPEND="${DEPEND}"

lua_enable_tests busted

lua_src_install() {
	insinto "$(lua_get_lmod_dir)"
	doins -r tui
}

src_install() {
	lua_foreach_impl lua_src_install
	dodoc README.md BUGS.md
	if use examples; then
		docinto examples
		dodoc examples/*.lua
		docompress -x /usr/share/doc/${PF}/examples
	fi
}