You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
1.5 KiB

# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
# Tests fail, still
RESTRICT="test"
PYTHON_COMPAT=( python2_7)
inherit eutils python-single-r1 autotools
DESCRIPTION="A searchable distributed Key-Value Store"
HOMEPAGE="http://hyperdex.org"
SRC_URI="http://hyperdex.org/src/${P}.tar.gz
http://dev.gentooexperimental.org/~patrick/autotools-java.tar"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test +python"
# need to add ruby and java useflags too
DEPEND="dev-cpp/glog
dev-cpp/sparsehash
dev-libs/cityhash
>=dev-libs/hyperleveldb-1.2
>=dev-libs/libpo6-0.8
>=dev-libs/libe-0.11
>=dev-libs/busybee-0.7
dev-libs/popt
>=dev-libs/replicant-0.8
>=dev-libs/libmacaroons-0.3
>=dev-libs/libtreadstone-0.2
dev-libs/json-c"
RDEPEND="${DEPEND}"
REQUIRED_USE="test? ( python )"
src_prepare() {
cp "${WORKDIR}/"*.m4 m4/
sed -i -e 's~json/json.h~json-c/json.h~' configure.ac common/datatype_document.cc daemon/index_document.cc || die "Blergh!"
eautoreconf
use python && python-single-r1_pkg_setup
}
src_configure() {
econf --disable-static \
$(use_enable python python-bindings)
}
src_install() {
emake DESTDIR="${D}" install || die "Failed to install"
newinitd "${FILESDIR}/hyperdex.initd" hyperdex || die "Failed to install init script"
newconfd "${FILESDIR}/hyperdex.confd" hyperdex || die "Failed to install config file"
find "${D}" -name '*.la' -exec rm {} \; # bad buildsystem! bad!
}
src_test() {
emake -j1 check
}