From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id ADC7F158086 for ; Fri, 31 Dec 2021 16:13:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 890CB2BC031; Fri, 31 Dec 2021 16:13:37 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8B9D32BC031 for ; Fri, 31 Dec 2021 16:13:36 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BAED5342F76 for ; Fri, 31 Dec 2021 16:13:34 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D9C311BF for ; Fri, 31 Dec 2021 16:13:32 +0000 (UTC) From: "Arthur Zamarin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Arthur Zamarin" Message-ID: <1640966953.6f08888b9077ab113eff4c786b3b89c992334bf0.arthurzam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/leveldb/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/leveldb/leveldb-1.23-r2.ebuild X-VCS-Directories: dev-libs/leveldb/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: 6f08888b9077ab113eff4c786b3b89c992334bf0 X-VCS-Branch: master Date: Fri, 31 Dec 2021 16:13:32 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 579e3ec1-0876-4155-bfb2-d4d5eabca095 X-Archives-Hash: ab716618e2bcc973964d9c1638e40e4b commit: 6f08888b9077ab113eff4c786b3b89c992334bf0 Author: Arthur Zamarin gentoo org> AuthorDate: Fri Dec 31 16:09:13 2021 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Fri Dec 31 16:09:13 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f08888b dev-libs/leveldb: enable RTTI for consumers needed for ceph and plyvel and possibly other consumers Arch Linux also enables it https://github.com/google/leveldb/issues/731 Reported-by: Louis Sautier gentoo.org> Signed-off-by: Arthur Zamarin gentoo.org> dev-libs/leveldb/leveldb-1.23-r2.ebuild | 42 +++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) 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 +}