Revert "dev-cpp/folly: treeclean"

This reverts commit 1612db8d2d.

dev-cpp/{fbthrift,fizz,wangle} still depend on folly.

Signed-off-by: Matthew Smith <matthew@gentoo.org>
This commit is contained in:
Matthew Smith
2022-03-07 17:55:04 +00:00
parent 7b4e3128fa
commit 00a52f629b
4 changed files with 92 additions and 0 deletions

2
dev-cpp/folly/Manifest Normal file
View File

@@ -0,0 +1,2 @@
DIST folly-2021.11.15.00.tar.gz 3523290 BLAKE2B 65c6d407796d64b9eb391f2d21b80293e2487ba592fe92a18ffa426c8d952661b42e43db4e1deed48d5949fc2d0bc005b479475fab162c55157a2cad0a2979c3 SHA512 9c0f5ea072c65927d43ed58d05263e0db6a57e390ea208016e163bd9c6b6a58dfb8b989549d9976cc55b583ee2f7431f6fbca867e4502cabc6989c7caabe92f2
DIST folly-2022.02.28.00.tar.gz 3600258 BLAKE2B 5943b0e4b6178c8293714f673ed289daed26b1dad22dcb52dc80475f385961cf0a690accc44139f245f2df5cf10c0bdb5638c8bed52cb97fefd3ad6d8dc147b8 SHA512 91ee21e463ffc6eee3b0e5e0244721a9612337b9afe92645556a154f521aec1070f4f381962247bb9bf11592efb5b8bb01f70d1a66acd3444967538062dfe826

View File

@@ -0,0 +1,38 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake flag-o-matic
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
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() {
filter-flags "-fno-rtti"
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
}

View File

@@ -0,0 +1,38 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake flag-o-matic
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:=
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() {
filter-flags "-fno-rtti"
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
}

View File

@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM 'http://www.gentoo.org/dtd/metadata.dtd'>
<pkgmetadata>
<maintainer type="person">
<description>co-maintainers welcome</description>
<email>lssndrbarbieri@gmail.com</email>
<name>Alessandro Barbieri</name>
</maintainer>
<longdescription lang="en">
Folly (acronymed loosely after Facebook Open Source Library) is a library of C++14 components designed with practicality and efficiency in mind. Folly contains a variety of core library components used extensively at Facebook. In particular, it's often a dependency of Facebook's other open source C++ efforts and place where those projects can share code.
It complements (as opposed to competing against) offerings such as Boost and of course std. In fact, we embark on defining our own component only when something we need is either not available, or does not meet the needed performance profile. We endeavor to remove things from folly if or when std or Boost obsoletes them.
Performance concerns permeate much of Folly, sometimes leading to designs that are more idiosyncratic than they would otherwise be (see e.g. PackedSyncPtr.h, SmallLocks.h). Good performance at large scale is a unifying theme in all of Folly.
</longdescription>
</pkgmetadata>