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 1033815808B for ; Mon, 7 Mar 2022 03:24:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3DA34E089A; Mon, 7 Mar 2022 03:24:04 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 EFA64E076B for ; Mon, 7 Mar 2022 03:24:03 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 05E79342DCF for ; Mon, 7 Mar 2022 03:24:03 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 93D4B30C for ; Mon, 7 Mar 2022 03:24:01 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1646623427.5d106a66c955d3e8b9119f1deea5e5a0993a3985.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-cpp/folly/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-cpp/folly/Manifest dev-cpp/folly/folly-2022.02.28.00.ebuild dev-cpp/folly/metadata.xml X-VCS-Directories: dev-cpp/folly/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 5d106a66c955d3e8b9119f1deea5e5a0993a3985 X-VCS-Branch: master Date: Mon, 7 Mar 2022 03:24:01 +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: dfef898e-9832-46b4-97dd-952532f1f100 X-Archives-Hash: e0f471e41d380ebb1cc75d4581a4e1ee commit: 5d106a66c955d3e8b9119f1deea5e5a0993a3985 Author: Sam James gentoo org> AuthorDate: Sun Feb 27 19:39:38 2022 +0000 Commit: Sam James gentoo org> CommitDate: Mon Mar 7 03:23:47 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d106a66 dev-cpp/folly: initial import (2022.02.28.00) Needed for dev-util/watchman. Closes: https://bugs.gentoo.org/787719 Closes: https://bugs.gentoo.org/419599 Signed-off-by: Sam James gentoo.org> dev-cpp/folly/Manifest | 1 + dev-cpp/folly/folly-2022.02.28.00.ebuild | 60 ++++++++++++++++++++++++++++++++ dev-cpp/folly/metadata.xml | 11 ++++++ 3 files changed, 72 insertions(+) diff --git a/dev-cpp/folly/Manifest b/dev-cpp/folly/Manifest new file mode 100644 index 000000000000..22ba1e56a8d7 --- /dev/null +++ b/dev-cpp/folly/Manifest @@ -0,0 +1 @@ +DIST folly-2022.02.28.00.tar.gz 3600258 BLAKE2B 5943b0e4b6178c8293714f673ed289daed26b1dad22dcb52dc80475f385961cf0a690accc44139f245f2df5cf10c0bdb5638c8bed52cb97fefd3ad6d8dc147b8 SHA512 91ee21e463ffc6eee3b0e5e0244721a9612337b9afe92645556a154f521aec1070f4f381962247bb9bf11592efb5b8bb01f70d1a66acd3444967538062dfe826 diff --git a/dev-cpp/folly/folly-2022.02.28.00.ebuild b/dev-cpp/folly/folly-2022.02.28.00.ebuild new file mode 100644 index 000000000000..d9c4c5003e07 --- /dev/null +++ b/dev-cpp/folly/folly-2022.02.28.00.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake toolchain-funcs + +DESCRIPTION="An open-source C++ library developed and used at Facebook" +HOMEPAGE="https://github.com/facebook/folly" +SRC_URI="https://github.com/facebook/folly/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0/${PV}" +KEYWORDS="~amd64" +IUSE="llvm-libunwind test" +RESTRICT="!test? ( test )" + +RDEPEND="app-arch/bzip2 + app-arch/lz4:= + app-arch/snappy:= + app-arch/xz-utils + app-arch/zstd:= + dev-cpp/gflags:= + dev-cpp/glog[gflags] + dev-libs/boost:=[context,threads(+)] + dev-libs/double-conversion:= + dev-libs/libaio + dev-libs/libevent:= + dev-libs/libfmt:= + dev-libs/libsodium:= + dev-libs/openssl:= + sys-libs/liburing:= + sys-libs/zlib + llvm-libunwind? ( sys-libs/llvm-libunwind:= ) + !llvm-libunwind? ( sys-libs/libunwind:= )" +# libiberty is linked statically +DEPEND="${RDEPEND} + sys-libs/binutils-libs" + +pkg_setup() { + if use test && [[ ${BUILD_TYPE} != "binary" ]] && ! tc-is-clang ; then + ewarn "Forcing build with Clang due to GCC bug (because tests are enabled)" + ewarn "(https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104008)" + + export CC=${CHOST}-clang + export CXX=${CHOST}-clang++ + fi +} + +src_configure() { + # TODO: liburing could in theory be optional but fails to link + + local mycmakeargs=( + -DLIB_INSTALL_DIR="$(get_libdir)" + + -DBUILD_TESTS=$(usex test) + ) + + cmake_src_configure +} diff --git a/dev-cpp/folly/metadata.xml b/dev-cpp/folly/metadata.xml new file mode 100644 index 000000000000..a512b80f6fcb --- /dev/null +++ b/dev-cpp/folly/metadata.xml @@ -0,0 +1,11 @@ + + + + + sam@gentoo.org + Sam James + + + facebook/folly + +