diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-04-13 12:04:20 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-04-13 12:04:20 +0100 |
commit | d993571e2ee444d08f4e9e90d493ee37338657e3 (patch) | |
tree | 5a49a1d4ceffe800051e363f64571c3b6735d2f7 /dev-libs/leveldb/leveldb-1.23-r6.ebuild | |
parent | 266d65d0cceeb55ab2cc3bf4e465d7f35502a900 (diff) |
gentoo auto-resync : 13:04:2024 - 12:04:19
Diffstat (limited to 'dev-libs/leveldb/leveldb-1.23-r6.ebuild')
-rw-r--r-- | dev-libs/leveldb/leveldb-1.23-r6.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/dev-libs/leveldb/leveldb-1.23-r6.ebuild b/dev-libs/leveldb/leveldb-1.23-r6.ebuild new file mode 100644 index 000000000000..c963638d5fd9 --- /dev/null +++ b/dev-libs/leveldb/leveldb-1.23-r6.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="A fast key-value storage library written at Google" +HOMEPAGE="https://github.com/google/leveldb" +SRC_URI="https://github.com/google/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0/1" +KEYWORDS="amd64 arm arm64 ~loong ~mips ppc ppc64 ~riscv ~sparc x86 ~amd64-linux ~x86-linux" +IUSE="+snappy +tcmalloc test" +RESTRICT="!test? ( test )" + +DEPEND=" + dev-libs/crc32c + snappy? ( app-arch/snappy:= ) + tcmalloc? ( dev-util/google-perftools:=[-minimal] ) +" +RDEPEND="${DEPEND}" +BDEPEND="test? ( dev-cpp/gtest )" + +PATCHES=( + "${FILESDIR}"/${PN}-1.23-system-testdeps.patch + "${FILESDIR}"/${PN}-1.23-remove-benchmark-dep.patch +) + +src_prepare() { + sed -e '/fno-rtti/d' -i CMakeLists.txt || die + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DCMAKE_CXX_STANDARD=14 # C++14 or later required for >=gtest-1.13.0 + -DHAVE_CRC32C=ON + -DLEVELDB_BUILD_BENCHMARKS=OFF + -DHAVE_SNAPPY=$(usex snappy) + -DHAVE_TCMALLOC=$(usex tcmalloc) + -DLEVELDB_BUILD_TESTS=$(usex test) + -DHAVE_CLANG_THREAD_SAFETY=OFF # adds -Werror to current build and all revdeps + ) + cmake_src_configure +} + +src_test() { + TEST_TMPDIR="${T}" TEMP="${T}" cmake_src_test +} |