blob: 3d7b0e2ccd22ba1a02df5018c3be68a0faead614 (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libmemcached/libmemcached-0.39.ebuild,v 1.6 2010/07/26 01:46:17 jer Exp $
EAPI=2
inherit eutils
DESCRIPTION="a C client library to the memcached server"
HOMEPAGE="http://tangent.org/552/libmemcached.html"
SRC_URI="http://download.tangent.org/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha amd64 arm hppa ~ia64 ~mips ~ppc ppc64 ~sh ~sparc x86 ~sparc-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
IUSE="debug hsieh"
DEPEND="net-misc/memcached"
RDEPEND="${DEPEND}"
src_prepare() {
EPATCH_OPTS="-F 40" epatch "${FILESDIR}/${PN}-0.39-runtestsasuser.patch"
sed -r -i \
-e 's,(context)(__attribute__),\1 \2,g' \
libhashkit/hsieh.c || die "Failed to fix upstream typo"
}
src_configure() {
econf \
$(use_with debug debug) \
$(use_enable hsieh hsieh_hash)
}
src_install() {
emake DESTDIR="${D}" install || die "Install failed"
dodoc AUTHORS ChangeLog NEWS README THANKS TODO
# remove manpage to avoid collision, see bug #299330
rm -f "${D}"/usr/share/man/man1/memdump.* || die "Install failed"
newman docs/memdump.1 memcached_memdump.1
}
src_test() {
emake -j1 test-docs test-mem test-hash test-plus || die "Tests failed"
}
|