aboutsummaryrefslogtreecommitdiff
blob: 9efde90d4b4a5698aef41ac9adc5e2d27f3d3870 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# 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"

DEPEND="
	app-arch/lz4
	<app-arch/snappy-1.1.9
	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
}