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

EAPI=6

VCS="mercurial"
LUA_COMPAT="lua51 luajit2"
CUSTOM_ECONF=true
inherit lua

DESCRIPTION="XMPP client library written in Lua."
HOMEPAGE="http://code.matthewwild.co.uk/"
EHG_REPO_URI="http://code.matthewwild.co.uk/${PN}/"

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

RDEPEND="
	dev-lua/squish
	dev-lua/luasocket
	dev-lua/luaexpat
	dev-lua/luafilesystem
	virtual/lua[bit]
"
DEPEND="
	${RDEPEND}
"

EXAMPLES=(doc/.)

each_lua_prepare() {
	local impl="$(lua_get_lua)"
	sed -r \
		-e "s@^(PREFIX)=.*@\1=/usr@" \
		-e "s@^(LUA_VERSION)=.*@\1=${impl##lua}@" \
		-i configure
	lua_default
}

each_lua_configure() {
	./configure
	lua_default
}

each_lua_install() {
	dolua verse.lua
}