blob: 26d42753a07cc882f2a6ae6f26363fc70219eee1 (
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
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libmemcache/libmemcache-1.4.0_rc2-r1.ebuild,v 1.9 2011/03/30 10:50:00 xmw Exp $
EAPI=3
inherit autotools eutils toolchain-funcs
MY_P=${PN}-${PV/_/.}
DESCRIPTION="C API for memcached"
HOMEPAGE="http://people.freebsd.org/~seanc/libmemcache/"
SRC_URI="http://people.freebsd.org/~seanc/libmemcache/${MY_P}.tar.bz2"
LICENSE="MIT"
SLOT="0"
KEYWORDS="alpha amd64 arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~sparc-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
IUSE=""
S=${WORKDIR}/${MY_P}
src_prepare() {
epatch "${FILESDIR}"/${P}-inline.patch
epatch "${FILESDIR}"/${P}-implicit_pointer.patch
rm -rf test/unit || die
sed -i -e '/DIR/s,unit,,g' test/Makefile.am || die
sed -i \
-e 's,test/unit/Makefile,,g' \
-e '/^CFLAGS=.*Wall.*pipe/s,-Wall,${CFLAGS} -Wall,g' \
-e '/^OPTIMIZE=/d' \
-e '/^PROFILE=/d' \
configure.ac || die
eautoreconf
}
src_install() {
emake DESTDIR="${D}" install || die
dodoc ChangeLog
}
|