mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-19 12:03:02 -04:00
dev-cpp/folly: build exception_tracer
Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
10
dev-cpp/folly/files/build-exception_tracer.patch
Normal file
10
dev-cpp/folly/files/build-exception_tracer.patch
Normal file
@@ -0,0 +1,10 @@
|
||||
--- a/CMakeLists.txt 2021-05-01 23:33:32.935741973 +0200
|
||||
+++ b/CMakeLists.txt 2021-05-01 23:34:35.369443062 +0200
|
||||
@@ -149,7 +149,6 @@
|
||||
REMOVE_MATCHES_FROM_LISTS(files hfiles
|
||||
MATCHES
|
||||
"^${FOLLY_DIR}/build/"
|
||||
- "^${FOLLY_DIR}/experimental/exception_tracer/"
|
||||
"^${FOLLY_DIR}/logging/example/"
|
||||
"^${FOLLY_DIR}/(.*/)?test/"
|
||||
"^${FOLLY_DIR}/tools/"
|
||||
38
dev-cpp/folly/folly-2021.04.19.00-r1.ebuild
Normal file
38
dev-cpp/folly/folly-2021.04.19.00-r1.ebuild
Normal file
@@ -0,0 +1,38 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit cmake
|
||||
|
||||
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"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
PATCHES=( "${FILESDIR}/build-exception_tracer.patch" )
|
||||
|
||||
DEPEND="
|
||||
app-arch/lz4
|
||||
app-arch/snappy
|
||||
app-arch/zstd
|
||||
dev-cpp/gflags
|
||||
dev-cpp/glog[gflags]
|
||||
dev-libs/boost[context,threads]
|
||||
dev-libs/double-conversion
|
||||
dev-libs/libevent
|
||||
dev-libs/libfmt
|
||||
sys-libs/binutils-libs
|
||||
sys-libs/zlib
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
cmake_src_prepare
|
||||
sed \
|
||||
-e "s/lib CACHE/$(get_libdir) CACHE/" \
|
||||
-e "s/lib\/cmake\/folly CACHE/$(get_libdir)\/cmake\/folly CACHE/" \
|
||||
-i CMakeLists.txt || die
|
||||
}
|
||||
Reference in New Issue
Block a user