summaryrefslogtreecommitdiff
blob: a2974050617d764eb6719c946e5d5075b3fc54a4 (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-2019 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

VCS="git"
GITHUB_A="dawnangel"
GITHUB_PN="lua-${PN}"

inherit lua

DESCRIPTION="Lua client for NATS messaging system"
HOMEPAGE="https://github.com/dawnangel/lua-nats"

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

RDEPEND="
	dev-lua/lua-cjson
	dev-lua/luasocket
	dev-lua/uuid
"
DEPEND="
	${RDEPEND}
"

DOCS=(README.md)
#HTML_DOCS=(docs/.)
EXAMPLES=({examples,tests}/.)

#all_lua_compile() {
#	use doc && ldoc .
#}
#
#each_lua_compile() { :; }
# Makefile is only used to run tests
# and ldoc is currently broken
src_compile() { :; }

each_lua_install() {
	dolua "src/${PN}.lua"
}