1 |
commit: 8fc64210595462c76451b564716aa94d179d4b50 |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun May 2 01:55:11 2021 +0000 |
4 |
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
5 |
CommitDate: Sun May 2 02:27:50 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=8fc64210 |
7 |
|
8 |
dev-cpp/folly: build exception_tracer |
9 |
|
10 |
Package-Manager: Portage-3.0.18, Repoman-3.0.3 |
11 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
12 |
|
13 |
dev-cpp/folly/files/build-exception_tracer.patch | 10 +++++++ |
14 |
dev-cpp/folly/folly-2021.04.19.00-r1.ebuild | 38 ++++++++++++++++++++++++ |
15 |
2 files changed, 48 insertions(+) |
16 |
|
17 |
diff --git a/dev-cpp/folly/files/build-exception_tracer.patch b/dev-cpp/folly/files/build-exception_tracer.patch |
18 |
new file mode 100644 |
19 |
index 000000000..f2b6bd50f |
20 |
--- /dev/null |
21 |
+++ b/dev-cpp/folly/files/build-exception_tracer.patch |
22 |
@@ -0,0 +1,10 @@ |
23 |
+--- a/CMakeLists.txt 2021-05-01 23:33:32.935741973 +0200 |
24 |
++++ b/CMakeLists.txt 2021-05-01 23:34:35.369443062 +0200 |
25 |
+@@ -149,7 +149,6 @@ |
26 |
+ REMOVE_MATCHES_FROM_LISTS(files hfiles |
27 |
+ MATCHES |
28 |
+ "^${FOLLY_DIR}/build/" |
29 |
+- "^${FOLLY_DIR}/experimental/exception_tracer/" |
30 |
+ "^${FOLLY_DIR}/logging/example/" |
31 |
+ "^${FOLLY_DIR}/(.*/)?test/" |
32 |
+ "^${FOLLY_DIR}/tools/" |
33 |
|
34 |
diff --git a/dev-cpp/folly/folly-2021.04.19.00-r1.ebuild b/dev-cpp/folly/folly-2021.04.19.00-r1.ebuild |
35 |
new file mode 100644 |
36 |
index 000000000..c6e95d1ac |
37 |
--- /dev/null |
38 |
+++ b/dev-cpp/folly/folly-2021.04.19.00-r1.ebuild |
39 |
@@ -0,0 +1,38 @@ |
40 |
+# Copyright 1999-2021 Gentoo Authors |
41 |
+# Distributed under the terms of the GNU General Public License v2 |
42 |
+ |
43 |
+EAPI=7 |
44 |
+ |
45 |
+inherit cmake |
46 |
+ |
47 |
+DESCRIPTION="An open-source C++ library developed and used at Facebook" |
48 |
+HOMEPAGE="https://github.com/facebook/folly" |
49 |
+SRC_URI="https://github.com/facebook/folly/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
50 |
+ |
51 |
+LICENSE="Apache-2.0" |
52 |
+SLOT="0" |
53 |
+KEYWORDS="~amd64 ~arm64 ~x86" |
54 |
+PATCHES=( "${FILESDIR}/build-exception_tracer.patch" ) |
55 |
+ |
56 |
+DEPEND=" |
57 |
+ app-arch/lz4 |
58 |
+ app-arch/snappy |
59 |
+ app-arch/zstd |
60 |
+ dev-cpp/gflags |
61 |
+ dev-cpp/glog[gflags] |
62 |
+ dev-libs/boost[context,threads] |
63 |
+ dev-libs/double-conversion |
64 |
+ dev-libs/libevent |
65 |
+ dev-libs/libfmt |
66 |
+ sys-libs/binutils-libs |
67 |
+ sys-libs/zlib |
68 |
+" |
69 |
+RDEPEND="${DEPEND}" |
70 |
+ |
71 |
+src_prepare() { |
72 |
+ cmake_src_prepare |
73 |
+ sed \ |
74 |
+ -e "s/lib CACHE/$(get_libdir) CACHE/" \ |
75 |
+ -e "s/lib\/cmake\/folly CACHE/$(get_libdir)\/cmake\/folly CACHE/" \ |
76 |
+ -i CMakeLists.txt || die |
77 |
+} |