blob: 17d9f52d0c4aadf69af37cbc693b05a9661ab096 (
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
50
51
52
53
|
# Copyright 1999-2019 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
VCS="git"
IS_MULTILIB=true
GITHUB_A="mwild1"
inherit lua
DESCRIPTION="Lua driver for LDAP"
HOMEPAGE="https://github.com/mwild1/lualdap/"
LICENSE="MIT"
SLOT="0"
KEYWORDS=""
IUSE="doc examples"
RDEPEND="
net-nds/openldap
"
DEPEND="${RDEPEND}"
DOCS=(README)
EXAMPLES=(tests/.)
HTML_DOCS=(doc/us/.)
all_lua_prepare() {
sed -i -e 'd' config
lua_default
}
each_lua_configure() {
local luav="$(lua_get_abi)"
luav="${luav//./0}"
myeconfargs=(
OPENLDAP_LIB="-lldap"
LUA_VERSION_LUM="${luav}"
LIBNAME="${PN}.so"
LIB_OPTION='$(LDFLAGS)'
)
lua_default
}
#each_lua_test() {
# Requires LDAP server
# ${LUA} tests/test.lua <hostname>[:port] <base> [<who> [<password>]]
#}
each_lua_install() {
dolua src/${PN}.so
}
|