diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-12-13 17:45:56 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-12-13 17:45:56 +0000 |
commit | ca04d5f1b74639bc2db1e371abbf0182fc431828 (patch) | |
tree | 5e6d2b5341c69d06a6d3e8352c5b8b88a5382302 /dev-libs/rocksdb/rocksdb-8.9.1.ebuild | |
parent | 0ded23e9afc3d3424aef90e5cec3f2ca6d6b4c30 (diff) |
gentoo auto-resync : 13:12:2023 - 17:45:55
Diffstat (limited to 'dev-libs/rocksdb/rocksdb-8.9.1.ebuild')
-rw-r--r-- | dev-libs/rocksdb/rocksdb-8.9.1.ebuild | 72 |
1 files changed, 72 insertions, 0 deletions
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 +} |