/[gentoo-x86]/dev-libs/libmemcached/libmemcached-0.39.ebuild
Gentoo

Contents of /dev-libs/libmemcached/libmemcached-0.39.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Sun Jul 31 20:03:00 2011 UTC (9 years, 4 months ago) by mattst88
Branch: MAIN
Changes since 1.10: +3 -3 lines
Drop ~mips keywords. No reverse dependency has mips keywords.

(Portage version: 2.1.10.3/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-libs/libmemcached/libmemcached-0.39.ebuild,v 1.10 2010/10/15 12:41:32 ranger Exp $
4
5 EAPI=2
6
7 inherit eutils
8
9 DESCRIPTION="a C client library to the memcached server"
10 HOMEPAGE="http://tangent.org/552/libmemcached.html"
11 SRC_URI="http://download.tangent.org/${P}.tar.gz"
12
13 LICENSE="BSD"
14 SLOT="0"
15 KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sh sparc x86 ~sparc-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
16 IUSE="debug hsieh"
17
18 DEPEND="net-misc/memcached
19 virtual/perl-PodParser"
20 RDEPEND="${DEPEND}"
21
22 src_prepare() {
23 EPATCH_OPTS="-F 40" epatch "${FILESDIR}/${PN}-0.39-runtestsasuser.patch"
24 sed -r -i \
25 -e 's,(context)(__attribute__),\1 \2,g' \
26 libhashkit/hsieh.c || die "Failed to fix upstream typo"
27 }
28
29 src_configure() {
30 econf \
31 $(use_with debug debug) \
32 $(use_enable hsieh hsieh_hash)
33 }
34
35 src_install() {
36 emake DESTDIR="${D}" install || die "Install failed"
37 dodoc AUTHORS ChangeLog NEWS README THANKS TODO
38 # remove manpage to avoid collision, see bug #299330
39 rm -f "${D}"/usr/share/man/man1/memdump.* || die "Install failed"
40 newman docs/memdump.1 memcached_memdump.1
41 }
42
43 src_test() {
44 emake -j1 test-docs test-mem test-hash test-plus || die "Tests failed"
45 }

  ViewVC Help
Powered by ViewVC 1.1.20