-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaerospike-client-c-4.3.18.ebuild
47 lines (33 loc) · 1.05 KB
/
aerospike-client-c-4.3.18.ebuild
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
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit git-r3
DESCRIPTION="C client for Aerospike"
HOMEPAGE="http://www.aerospike.com"
EGIT_REPO_URI="https://github.com/aerospike/aerospike-client-c.git"
EGIT_SUBMODULES=( '*' )
EGIT_COMMIT="${PV}"
KEYWORDS="~amd64"
SLOT="0"
RDEPEND="libev? ( dev-libs/libev )
libuv? ( dev-libs/libuv )
libevent? ( dev-libs/libevent )"
DEPEND="${RDEPEND}"
IUSE="libuv libev libevent"
REQUIRED_USE="?? ( libuv libev libevent )"
src_compile() {
if use libev ; then
EV_LIB=libev
elif use libev ; then
EV_LIB=libuv
elif use libevent ; then
EV_LIB=libevent
fi
# emake -j1 EVENT_LIB=${EV_LIB} USE_LUAMOD=0
# Looks like the PHP client cant handle external lua...
emake -j1 EVENT_LIB=${EV_LIB}
}
src_install() {
# emake install INSTALL_PREFIX="${D}/usr/" EVENT_LIB=${EV_LIB} USE_LUAMOD=0
emake install INSTALL_PREFIX="${D}/usr/" EVENT_LIB=${EV_LIB}
}