summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuilherme Amadio <amadio@gentoo.org>2023-12-13 15:28:38 +0100
committerGuilherme Amadio <amadio@gentoo.org>2023-12-13 15:39:30 +0100
commit6f1df373eb964bd8d658772bdff891dd48af3e7d (patch)
treee36e1bbb30202973cda47a906cc35014da2eeccc /dev-libs
parentdev-util/idea-community: drop 2023.3.0 (diff)
downloadgentoo-6f1df373eb964bd8d658772bdff891dd48af3e7d.tar.gz
gentoo-6f1df373eb964bd8d658772bdff891dd48af3e7d.tar.bz2
gentoo-6f1df373eb964bd8d658772bdff891dd48af3e7d.zip
dev-libs/rocksdb: add 8.9.1
Signed-off-by: Guilherme Amadio <amadio@gentoo.org>
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/rocksdb/Manifest1
-rw-r--r--dev-libs/rocksdb/rocksdb-8.9.1.ebuild72
2 files changed, 73 insertions, 0 deletions
diff --git a/dev-libs/rocksdb/Manifest b/dev-libs/rocksdb/Manifest
index a470a43a76e9..bb37bca4eaf3 100644
--- a/dev-libs/rocksdb/Manifest
+++ b/dev-libs/rocksdb/Manifest
@@ -4,3 +4,4 @@ DIST rocksdb-6.17.3.tar.gz 6651009 BLAKE2B c032bdf61d93a35e84c65146ad6d1f8639e9f
DIST rocksdb-6.29.5.tar.gz 9508915 BLAKE2B 45d6f48a4db8881ad1f6e027017d7a680dc8f22067ba2270211f8def14b827a0facf0165b71320c530561a5464b7beb94a26664f563552bbba0699b122a1add2 SHA512 f5b33cc8954408d8c37c93a873bb3664637720a94f81f001c63db173e2dda3913029d7c46bc0e80b0c3171d9666ddfa2ee918d3ff7e0c4a575731e41ac3bcb51
DIST rocksdb-7.9.2.tar.gz 12058713 BLAKE2B 76a840565fccdc800eaad055da7698f7a5fc6e217187e078d60420c61cde1236c427cc4ae7d557c69ee5c358cd1ebc7fc4ed52063c04965fcc2c3c35774e9f59 SHA512 9cf2a359cedb21ca70fc921e54f19c406fd9aa2a739ad1627842fad2dec0e7dedbfe52aa8e85fbfbe7005c00ca1e7e7013f728d4d9938f3cebdf794504b431cb
DIST rocksdb-8.6.7.tar.gz 12806059 BLAKE2B 66d1c4f23f690e2379c59f449833374496ebe924456cf202b021a4f9bc7dd6dde16976afae131540fb8bc02eea45ac4897cb1b31edb5f8469e3f50596aeb03f5 SHA512 a8f55e2d218cbe68196456fcf2a8fc0b10df6e8160d11bb4db3651c3b6e3e83223ed36ffe70b39b295ba8d76698e2120f81060f8b6b26f2086a79dae5d29a1f3
+DIST rocksdb-8.9.1.tar.gz 13293245 BLAKE2B 8d0f5481f965512144a8d73dd219519145cf070d075697d9b623ae996a2925ff9f673c2985b961e07ecf475ac86294017ecef86734c299c11994c40f8935bc34 SHA512 a93720ef2ecafe2e3d51594b8a8bf6b5d36b0dfeae571cec650ee9d7b3d0c166bd6d9fbe2acb6e57cf34e73b58a2277a6465cce56a5274dd68b03bc9009e0323
diff --git a/dev-libs/rocksdb/rocksdb-8.9.1.ebuild b/dev-libs/rocksdb/rocksdb-8.9.1.ebuild
new file mode 100644
index 000000000000..283a918f7c75
--- /dev/null
+++ b/dev-libs/rocksdb/rocksdb-8.9.1.ebuild
@@ -0,0 +1,72 @@
+# Copyright 2020-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="Embeddable, persistent key-value store for fast storage"
+HOMEPAGE="http://rocksdb.org https://github.com/facebook/rocksdb/"
+SRC_URI="https://github.com/facebook/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86"
+IUSE="jemalloc numa static-libs tbb test"
+
+RESTRICT="!test? ( test )"
+
+DEPEND="
+ app-arch/bzip2:=
+ app-arch/lz4:=
+ app-arch/snappy:=
+ app-arch/zstd:=
+ dev-cpp/gflags:=
+ sys-libs/liburing:=
+ sys-libs/zlib:=
+ sys-process/numactl
+ jemalloc? ( dev-libs/jemalloc:= )
+ tbb? ( dev-cpp/tbb:= )
+"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ sed -i -e 's/liburing.a/uring/' cmake/modules/Finduring.cmake || die
+ sed -i -e '/find_program(CCACHE_FOUND ccache)/d' CMakeLists.txt || die
+ cmake_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DFAIL_ON_WARNINGS=OFF
+ -DPORTABLE=1
+ -DWITH_BZ2=ON
+ -DWITH_CORE_TOOLS=ON
+ -DWITH_DYNAMIC_EXTENSION=ON
+ -DWITH_GFLAGS=ON
+ -DWITH_JEMALLOC=$(usex jemalloc ON OFF)
+ -DWITH_JNI=OFF
+ -DWITH_LIBURING=ON
+ -DWITH_LZ4=ON
+ -DWITH_MD_LIBRARY=ON
+ -DWITH_NUMA=$(usex numa)
+ -DWITH_SNAPPY=ON
+ -DWITH_TBB=$(usex tbb)
+ -DWITH_ALL_TESTS=$(usex test)
+ -DWITH_TESTS=$(usex test)
+ -DWITH_TOOLS=ON
+ -DWITH_ZLIB=ON
+ -DWITH_ZSTD=ON
+ )
+ # -DWITH_TESTS option works only with debug build, needs to be set here
+ # to not be overriden by cmake.eclass
+ CMAKE_BUILD_TYPE=$(usex test Debug RelWithDebInfo) cmake_src_configure
+}
+
+src_install() {
+ cmake_src_install
+
+ if ! use static-libs; then
+ rm "${ED}"/usr/$(get_libdir)/*.a || die
+ fi
+}