summaryrefslogtreecommitdiff
blob: 2bc93d6cde11dcf5e8389d7cf4bdf49627fd3391 (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
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: This ebuild is from Lua overlay; Bumped by mva; $

EAPI="5"

inherit mercurial eutils

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="doc luajit"

RDEPEND="
	dev-lua/squish
	dev-lua/luasocket
	dev-lua/luaexpat
	dev-lua/luafilesystem
	!luajit? (
		dev-lua/LuaBitOp
		=dev-lang/lua-5.1*
	)
	luajit? (
		dev-lang/luajit:2
	)
"
DEPEND="${RDEPEND}"

src_compile() {
	squish --use-http
}

src_install() {
	local lua="lua";
	use luajit && lua="luajit"
	insinto "$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD ${lua})"
	doins verse.lua || die
	use doc && {
		dodoc doc/* || ewarn "No documentation found! Please report it to XMPP-conference prosody@conference.prosody.org"
	}
}