| 1 |
patrick |
1.1 |
# Copyright 1999-2012 Gentoo Foundation |
| 2 |
|
|
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
patrick |
1.2 |
# $Header: /var/cvsroot/gentoo-x86/dev-db/hyperdex/hyperdex-0.4.0.ebuild,v 1.1 2012/08/18 14:22:54 patrick Exp $ |
| 4 |
patrick |
1.1 |
EAPI=4 |
| 5 |
|
|
|
| 6 |
|
|
inherit eutils python |
| 7 |
|
|
|
| 8 |
|
|
DESCRIPTION="A searchable distributed Key-Value Store" |
| 9 |
|
|
|
| 10 |
|
|
HOMEPAGE="http://hyperdex.org" |
| 11 |
|
|
SRC_URI="http://hyperdex.org/src/${P}.tar.gz" |
| 12 |
|
|
LICENSE="BSD" |
| 13 |
|
|
SLOT="0" |
| 14 |
|
|
KEYWORDS="~amd64" |
| 15 |
|
|
|
| 16 |
|
|
IUSE="trace-player +python" |
| 17 |
|
|
# need to add coverage and java useflags too |
| 18 |
|
|
|
| 19 |
|
|
DEPEND="dev-cpp/glog |
| 20 |
|
|
dev-libs/cityhash |
| 21 |
|
|
dev-libs/libpo6 |
| 22 |
|
|
dev-libs/libe |
| 23 |
|
|
dev-libs/busybee |
| 24 |
|
|
dev-libs/popt |
| 25 |
|
|
trace-player? ( dev-libs/libbsd )" |
| 26 |
|
|
RDEPEND="${DEPEND}" |
| 27 |
|
|
|
| 28 |
patrick |
1.2 |
src_prepare() { |
| 29 |
|
|
# file has moved |
| 30 |
|
|
sed -i -e 's:vis.h:bsd/vis.h:' trace-player.cc || die "Failed to fix include file path" |
| 31 |
|
|
} |
| 32 |
|
|
|
| 33 |
patrick |
1.1 |
src_configure() { |
| 34 |
|
|
econf \ |
| 35 |
|
|
$(use_enable trace-player) |
| 36 |
|
|
$(use_enable python) |
| 37 |
|
|
} |
| 38 |
|
|
|
| 39 |
|
|
src_install() { |
| 40 |
|
|
emake DESTDIR="${D}" install || die "Failed to install" |
| 41 |
|
|
newinitd "${FILESDIR}/hyperdex.initd" hyperdex || die "Failed to install init script" |
| 42 |
|
|
newconfd "${FILESDIR}/hyperdex.confd" hyperdex || die "Failed to install config file" |
| 43 |
|
|
} |