Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-cpp/folly/
Date: Fri, 01 Apr 2022 03:54:04
Message-Id: 1648785217.1511e1562c7de7d8044027c6af14aa8a8e343de6.sam@gentoo
1 commit: 1511e1562c7de7d8044027c6af14aa8a8e343de6
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 1 02:04:38 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 1 03:53:37 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1511e156
7
8 dev-cpp/folly: add 2022.03.28.00
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 dev-cpp/folly/Manifest | 1 +
13 dev-cpp/folly/folly-2022.03.28.00.ebuild | 61 ++++++++++++++++++++++++++++++++
14 2 files changed, 62 insertions(+)
15
16 diff --git a/dev-cpp/folly/Manifest b/dev-cpp/folly/Manifest
17 index fe0814329b76..513994b2adfb 100644
18 --- a/dev-cpp/folly/Manifest
19 +++ b/dev-cpp/folly/Manifest
20 @@ -2,3 +2,4 @@ DIST folly-2022.02.28.00.tar.gz 3600258 BLAKE2B 5943b0e4b6178c8293714f673ed289da
21 DIST folly-2022.03.07.00.tar.gz 3604306 BLAKE2B fe255678d6f827c82ada3e136742d07bd62dfb81c1250ca6bae9a4f3e1f015904032da8de1488342da1326fa520b448c63a59ef7e0139ecb0844a1ae19c1dfed SHA512 e63eff137711ca71b5a78469e4feff1b4e7b65465413eefb91b7c0cb26b94e1d581a305a9df9937ce05bcd8af3dc465adb816ad95538689811d8ab5b5b9f269f
22 DIST folly-2022.03.14.00.tar.gz 3605018 BLAKE2B 11a58e3c23c1e1299c16821e552d500f8215d2fb2fbdee3699b8487e1073196dfc322461e7670d3968c703d84b0b526d2479bcb74005b763f195ce48f04a419d SHA512 0b3710862360788eb55dc40703e3862f57819acf217287f13ce125b56692c4e5b1de12289f02520ecca9007fa872a69e8936df0ec9260adf974a88286489a9b1
23 DIST folly-2022.03.21.00.tar.gz 3611725 BLAKE2B 6b0d3431810a26484b2c15a8ba4b245e720d717364a4305269b3adabaa2d005466dfd7ad086b38cb06ee2a2d5908e903e68486aadc62834a32b4fe59cd313095 SHA512 4e0fda55f007179883af30024fe1d389642159b1b4c915f7ef1a3c1003c8c52e2370f53ffa79d5fa75533d33becfb946d2bcbb2abdc62b9a297f977403d13dd7
24 +DIST folly-2022.03.28.00.tar.gz 3616507 BLAKE2B da003701abe599f20ac87a2785fe9a4cd4a8896d182737eb1eac6384f3d75a792225b426febea7cc4ea99aac1a1f31eb7330e0a297f43ae7d5aafccd93784560 SHA512 6eee07b3e82247c3c8672442503e9a69a1c4607604269fc0760e11a2d0e5595029e6995fbe7c970d2052a7f228f6b92112630e6d5c624369fc52e5ad1823ef74
25
26 diff --git a/dev-cpp/folly/folly-2022.03.28.00.ebuild b/dev-cpp/folly/folly-2022.03.28.00.ebuild
27 new file mode 100644
28 index 000000000000..b644181fecc6
29 --- /dev/null
30 +++ b/dev-cpp/folly/folly-2022.03.28.00.ebuild
31 @@ -0,0 +1,61 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +inherit cmake toolchain-funcs
38 +
39 +DESCRIPTION="An open-source C++ library developed and used at Facebook"
40 +HOMEPAGE="https://github.com/facebook/folly"
41 +SRC_URI="https://github.com/facebook/folly/archive/v${PV}.tar.gz -> ${P}.tar.gz"
42 +
43 +LICENSE="Apache-2.0"
44 +SLOT="0/${PV}"
45 +KEYWORDS="~amd64"
46 +IUSE="llvm-libunwind test"
47 +RESTRICT="!test? ( test )"
48 +
49 +RDEPEND="app-arch/bzip2
50 + app-arch/lz4:=
51 + app-arch/snappy:=
52 + app-arch/xz-utils
53 + app-arch/zstd:=
54 + dev-cpp/gflags:=
55 + dev-cpp/glog[gflags]
56 + dev-libs/boost:=[context,threads(+)]
57 + dev-libs/double-conversion:=
58 + dev-libs/libaio
59 + dev-libs/libevent:=
60 + dev-libs/libfmt:=
61 + dev-libs/libsodium:=
62 + dev-libs/openssl:=
63 + sys-libs/liburing:=
64 + sys-libs/zlib
65 + llvm-libunwind? ( sys-libs/llvm-libunwind:= )
66 + !llvm-libunwind? ( sys-libs/libunwind:= )"
67 +# libiberty is linked statically
68 +DEPEND="${RDEPEND}
69 + sys-libs/binutils-libs"
70 +BDEPEND="test? ( sys-devel/clang )"
71 +
72 +pkg_setup() {
73 + if use test && [[ ${BUILD_TYPE} != "binary" ]] && ! tc-is-clang ; then
74 + ewarn "Forcing build with Clang due to GCC bug (because tests are enabled)"
75 + ewarn "(https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104008)"
76 +
77 + export CC=${CHOST}-clang
78 + export CXX=${CHOST}-clang++
79 + fi
80 +}
81 +
82 +src_configure() {
83 + # TODO: liburing could in theory be optional but fails to link
84 +
85 + local mycmakeargs=(
86 + -DLIB_INSTALL_DIR="$(get_libdir)"
87 +
88 + -DBUILD_TESTS=$(usex test)
89 + )
90 +
91 + cmake_src_configure
92 +}