diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-db/hyperdex/hyperdex-1.6.0-r1.ebuild | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-db/hyperdex/hyperdex-1.6.0-r1.ebuild')
-rw-r--r-- | dev-db/hyperdex/hyperdex-1.6.0-r1.ebuild | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/dev-db/hyperdex/hyperdex-1.6.0-r1.ebuild b/dev-db/hyperdex/hyperdex-1.6.0-r1.ebuild new file mode 100644 index 000000000000..ba8e0bd4d3de --- /dev/null +++ b/dev-db/hyperdex/hyperdex-1.6.0-r1.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +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 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} ) test? ( python )" + +# Tests fail, still +RESTRICT="test" + +DEPEND=" + dev-cpp/glog + dev-cpp/sparsehash + dev-libs/cityhash + dev-libs/libpo6 + dev-libs/libe + dev-libs/busybee + dev-libs/popt + dev-libs/replicant + dev-libs/libmacaroons + dev-libs/libtreadstone + dev-libs/json-c:= + python? ( ${PYTHON_DEPS} )" +RDEPEND="${DEPEND}" + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +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 +} + +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! +} |