aboutsummaryrefslogtreecommitdiff
blob: 43f91e47672572dc4eabc101b90aed3c6f4fc821 (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
41
42
43
44
45
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=5

inherit eutils git-r3

DESCRIPTION="A library that provides an embeddable, persistent key-value store for fast storage"
HOMEPAGE="http://rocksdb.org"
EGIT_REPO_URI="https://github.com/facebook/rocksdb.git"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+java"

RDEPEND="
	dev-cpp/gflags
	app-arch/snappy
	sys-libs/zlib
	app-arch/bzip2
	java? ( virtual/jdk )
"
DEPEND="
		${RDEPEND}
"

src_compile() {
	emake shared_lib all

	if use java ; then
		emake -j1 rocksdbjava
	fi
}

src_install() {
	emake INSTALL_PATH="${D}/usr" install
	dodoc README.md

	if use java ; then
		insinto /usr/lib/${PN}
		doins java/target/rocksdbjni-*-linux$(getconf LONG_BIT).jar
	fi
}