Files
guru/dev-cpp/folly/folly-2020.11.30.00.ebuild
Theo Anderson 6eba7d3168 dev-cpp/folly: add || die on sed commands
Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Theo Anderson <telans@posteo.de>
2021-01-05 22:18:18 +13:00

39 lines
914 B
Bash

# 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"
KEYWORDS="~amd64 ~arm64 ~x86"
LICENSE="Apache-2.0"
SLOT="0"
IUSE=""
DEPEND="app-arch/lz4
app-arch/snappy
app-arch/xz-utils
app-arch/zstd
dev-libs/double-conversion
dev-libs/libevent
dev-libs/libfmt
dev-cpp/gflags
dev-cpp/glog[gflags]
dev-libs/boost[context,threads]
sys-libs/binutils-libs
sys-libs/zlib
sys-devel/binutils:*"
RDEPEND="${DEPEND}"
src_prepare(){
einfo $(get_libdir)
sed "s/lib CACHE/$(get_libdir) CACHE/" -i CMakeLists.txt || die
sed "s/lib\/cmake\/folly CACHE/$(get_libdir)\/cmake\/folly CACHE/" -i CMakeLists.txt || die
cmake_src_prepare
}