blob: ef402d87eff848e36327f9c3ffdd0558eae9c068 (
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
|
# Copyright 2022-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="a C/C++ memcached client library"
HOMEPAGE="https://github.com/awesomized/libmemcached"
SRC_URI="https://github.com/awesomized/libmemcached/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/libmemcached-${PV}"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 arm arm64 x86"
IUSE="+libevent sasl test"
RESTRICT="!test? ( test )"
RDEPEND="!app-forensics/memdump
!dev-libs/libmemcached
libevent? ( dev-libs/libevent:= )
sasl? ( dev-libs/cyrus-sasl:2 )"
DEPEND="${RDEPEND}
test? ( net-misc/memcached )"
BDEPEND="app-alternatives/yacc
app-alternatives/lex
virtual/pkgconfig"
src_configure() {
local mycmakeargs=(
-DBUILD_TESTING=$(usex test)
-DENABLE_DTRACE=OFF
-DENABLE_SASL=$(usex sasl)
)
cmake_src_configure
}
src_test() {
local myctestargs=(
# memcached_regression_lp583031: needs network, bug #845123
# bin/memaslap: tries to use Portage HOMEDIR, bug #845123
-E "(memcached_regression_lp583031|bin/memaslap|memcached_udp)"
)
cmake_src_test
}
|