blob: 3203b919e775285fb0f14208ac26aff825a998a2 (
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
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools
DESCRIPTION="A fast, light-weight proxy for Memcached and Redis. (Twitter's Twemproxy)"
HOMEPAGE="https://github.com/twitter/twemproxy"
SRC_URI="https://github.com/twitter/twemproxy/archive/v${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/twemproxy-${PV}"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="debug doc"
DEPEND=">=dev-libs/libyaml-0.1.4"
RDEPEND="${DEPEND}"
BDEPEND="virtual/pkgconfig"
PATCHES=(
# Let's use system libyaml
"${FILESDIR}"/${PN}-0.3.0-use-system-libyaml.patch
)
src_prepare() {
default
eautoreconf
}
src_configure() {
econf $(use debug)
}
src_install() {
default
insinto /etc/nutcracker
newins conf/nutcracker.yml nutcracker.yml.example
newconfd "${FILESDIR}/nutcracker.confd.2" nutcracker
newinitd "${FILESDIR}/nutcracker.initd.2" nutcracker
if use doc; then
dodoc -r notes
fi
}
|