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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id F2E66138359 for ; Thu, 19 Nov 2020 07:29:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 32DDEE0815; Thu, 19 Nov 2020 07:29:45 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1811EE0815 for ; Thu, 19 Nov 2020 07:29:44 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2374234107A for ; Thu, 19 Nov 2020 07:29:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9E6B23FB for ; Thu, 19 Nov 2020 07:29:42 +0000 (UTC) From: "Patrick McLean" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Patrick McLean" Message-ID: <1605770975.891c13747804e97d0e70e6e89c0bf81c943d344d.chutzpah@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/rocksdb/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/rocksdb/Manifest dev-libs/rocksdb/metadata.xml dev-libs/rocksdb/rocksdb-6.14.5.ebuild X-VCS-Directories: dev-libs/rocksdb/ X-VCS-Committer: chutzpah X-VCS-Committer-Name: Patrick McLean X-VCS-Revision: 891c13747804e97d0e70e6e89c0bf81c943d344d X-VCS-Branch: master Date: Thu, 19 Nov 2020 07:29:42 +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: 089b8a7f-7d46-4551-9fa7-f2fb72e15afd X-Archives-Hash: c67a43b5b02d72aedcfcffe608569805 commit: 891c13747804e97d0e70e6e89c0bf81c943d344d Author: Patrick McLean sony com> AuthorDate: Thu Nov 19 05:58:31 2020 +0000 Commit: Patrick McLean gentoo org> CommitDate: Thu Nov 19 07:29:35 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=891c1374 dev-libs/rocksdb: New package Copyright: Sony Interactive Entertainment Inc. Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Patrick McLean gentoo.org> dev-libs/rocksdb/Manifest | 1 + dev-libs/rocksdb/metadata.xml | 8 ++++++ dev-libs/rocksdb/rocksdb-6.14.5.ebuild | 49 ++++++++++++++++++++++++++++++++++ 3 files changed, 58 insertions(+) diff --git a/dev-libs/rocksdb/Manifest b/dev-libs/rocksdb/Manifest new file mode 100644 index 00000000000..ea754e39314 --- /dev/null +++ b/dev-libs/rocksdb/Manifest @@ -0,0 +1 @@ +DIST rocksdb-6.14.5.tar.gz 6396476 BLAKE2B c5fc6e9e306ad428285d2c42958804ff403e14fc6b0c2f1231f49197a98937c0703422e1c14f357fb2b3c138fc038ce46c57cce1d184e4babec3c094b00e5180 SHA512 76e4a5b8a7061e42e9d010d04204429a446c857b29a199456db1f207a4849bedc98c7368346b87fa3a69ee5a3d68abedc943248b960273194a9e71634c767258 diff --git a/dev-libs/rocksdb/metadata.xml b/dev-libs/rocksdb/metadata.xml new file mode 100644 index 00000000000..cee379b1540 --- /dev/null +++ b/dev-libs/rocksdb/metadata.xml @@ -0,0 +1,8 @@ + + + + + chutzpah@gentoo.org + Patrick McLean + + diff --git a/dev-libs/rocksdb/rocksdb-6.14.5.ebuild b/dev-libs/rocksdb/rocksdb-6.14.5.ebuild new file mode 100644 index 00000000000..a1c12d2cf0b --- /dev/null +++ b/dev-libs/rocksdb/rocksdb-6.14.5.ebuild @@ -0,0 +1,49 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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 ~x86" +IUSE="cpu_flags_x86_avx cpu_flags_x86_avx2 cpu_flags_x86_sse4_2 jemalloc static-libs" + +COMMON_DEPEND=" + app-arch/bzip2:= + app-arch/lz4:= + app-arch/snappy:= + dev-python/zstandard:= + sys-libs/zlib:= + jemalloc? ( dev-libs/jemalloc:= ) +" +DEPEND="${COMMON_DEPEND} + dev-cpp/gflags +" +RDEPEND="${COMMON_DEPEND}" + +src_configure() { + mycmakeargs=( + -DFAIL_ON_WARNINGS=OFF + -DFORCE_AVX2=$(usex cpu_flags_x86_avx2 ON OFF) + -DFORCE_AVX=$(usex cpu_flags_x86_avx ON OFF) + -DFORCE_SSE42=$(usex cpu_flags_x86_sse4_2 ON OFF) + -DPORTABLE=ON + -DWITH_JEMALLOC=$(usex jemalloc ON OFF) + -DWITH_TESTS=OFF + ) + cmake_src_configure +} + +src_install() { + cmake_src_install + + if ! use static-libs; then + rm ${ED}/usr/$(get_libdir)/*.a || die + fi +}