37 lines
1,019 B
Bash
37 lines
1,019 B
Bash
# Copyright 1999-2011 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libmemcached/libmemcached-0.30.ebuild,v 1.3 2011/07/31 20:03:00 mattst88 Exp $
|
|
|
|
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 ~ppc ~ppc64 ~sh ~sparc ~x86 ~sparc-fbsd"
|
|
IUSE="test"
|
|
|
|
DEPEND="net-misc/memcached"
|
|
RDEPEND="${DEPEND}"
|
|
|
|
#RESTRICT="test"
|
|
|
|
src_unpack() {
|
|
unpack ${A}
|
|
cd "${S}"
|
|
epatch "${FILESDIR}"/${PN}-0.28-runtestsasuser.patch
|
|
epatch "${FILESDIR}"/${PN}-0.28-removebogustest.patch
|
|
}
|
|
|
|
src_install() {
|
|
emake DESTDIR="${D}" install || die "emake install failed."
|
|
dodoc AUTHORS ChangeLog NEWS README THANKS TODO
|
|
}
|
|
|
|
src_test() {
|
|
echo ">>> Test phase [test]: ${CATEGORY}/${PF}"
|
|
emake test || die "tests failed"
|
|
echo ">>> Test phase [none]: ${CATEGORY}/${PF}"
|
|
}
|