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

EAPI=6

LUA_COMPAT="lua52 lua53 luajit2"

VCS="git"
GITHUB_A="giuseppeM99"

inherit cmake-utils lua

DESCRIPTION="A basic interface between tdlib and lua"
HOMEPAGE="https://github.com/giuseppeM99/tdlua"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS=""
IUSE="doc examples"

DOCS=(README.md)
EXAMPLES=(examples/.)

RDEPEND="
	dev-libs/openssl:0
	media-libs/opus:0
	net-libs/tdlib:0
"

each_lua_configure() {
	mycmakeargs=(
		-DLUA_INCLUDE_DIR=$(lua_get_incdir)
	)
	cmake-utils_src_configure
}

each_lua_install() {
	dolua "${PN}".so
}