diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-01-04 01:27:12 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-01-04 01:27:12 +0000 |
commit | 3517852e3b8a68d1e997770fc0650c5053bafc6c (patch) | |
tree | 44068672445b1418489aed82de58df3c470289e7 /dev-libs/leveldb/leveldb-1.23-r2.ebuild | |
parent | 0f15659d48c193027158492acb726297501202c5 (diff) |
gentoo resync : 04.01.2022
Diffstat (limited to 'dev-libs/leveldb/leveldb-1.23-r2.ebuild')
-rw-r--r-- | dev-libs/leveldb/leveldb-1.23-r2.ebuild | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/dev-libs/leveldb/leveldb-1.23-r2.ebuild b/dev-libs/leveldb/leveldb-1.23-r2.ebuild new file mode 100644 index 000000000000..a245acc26713 --- /dev/null +++ b/dev-libs/leveldb/leveldb-1.23-r2.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="+crc32c +snappy +tcmalloc test" + +RESTRICT="!test? ( test )" + +DEPEND="crc32c? ( dev-libs/crc32c ) + snappy? ( app-arch/snappy ) + tcmalloc? ( dev-util/google-perftools )" +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=( + -DBUILD_SHARED_LIBS=ON + -DLEVELDB_BUILD_BENCHMARKS=OFF + -DLEVELDB_BUILD_TESTS=$(usex test) + ) + cmake_src_configure +} |