diff options
-rw-r--r-- | dev-libs/leveldb/leveldb-1.23-r3.ebuild (renamed from dev-libs/leveldb/leveldb-1.23-r2.ebuild) | 19 | ||||
-rw-r--r-- | dev-libs/leveldb/metadata.xml | 3 |
2 files changed, 13 insertions, 9 deletions
diff --git a/dev-libs/leveldb/leveldb-1.23-r2.ebuild b/dev-libs/leveldb/leveldb-1.23-r3.ebuild index 9adbd1551ad0..13684bcf2b50 100644 --- a/dev-libs/leveldb/leveldb-1.23-r2.ebuild +++ b/dev-libs/leveldb/leveldb-1.23-r3.ebuild @@ -12,13 +12,14 @@ SRC_URI="https://github.com/google/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}. LICENSE="BSD" SLOT="0/1" KEYWORDS="amd64 arm arm64 ~mips ppc ppc64 ~riscv ~sparc x86 ~amd64-linux ~x86-linux" -IUSE="+crc32c +snappy +tcmalloc test" - +IUSE="+snappy +tcmalloc test" RESTRICT="!test? ( test )" -DEPEND="crc32c? ( dev-libs/crc32c ) - snappy? ( app-arch/snappy ) - tcmalloc? ( dev-util/google-perftools )" +DEPEND=" + dev-libs/crc32c + snappy? ( app-arch/snappy:= ) + tcmalloc? ( dev-util/google-perftools:= ) +" RDEPEND="${DEPEND}" BDEPEND="test? ( dev-cpp/gtest )" @@ -34,9 +35,15 @@ src_prepare() { src_configure() { local mycmakeargs=( - -DBUILD_SHARED_LIBS=ON + -DHAVE_CRC32C=ON -DLEVELDB_BUILD_BENCHMARKS=OFF + -DHAVE_SNAPPY=$(usex snappy) + -DHAVE_TCMALLOC=$(usex tcmalloc) -DLEVELDB_BUILD_TESTS=$(usex test) ) cmake_src_configure } + +src_test() { + TEST_TMPDIR="${T}" TEMP="${T}" cmake_src_test +} diff --git a/dev-libs/leveldb/metadata.xml b/dev-libs/leveldb/metadata.xml index e937f6bb5998..0c3bde759c88 100644 --- a/dev-libs/leveldb/metadata.xml +++ b/dev-libs/leveldb/metadata.xml @@ -9,7 +9,4 @@ <remote-id type="github">google/leveldb</remote-id> <bugs-to>https://github.com/google/leveldb/issues</bugs-to> </upstream> - <use> - <flag name="crc32c">Link against <pkg>dev-libs/crc32c</pkg> for accelerated CRC32C calculation</flag> - </use> </pkgmetadata> |