diff options
author | Sam James <sam@gentoo.org> | 2022-03-22 01:45:37 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-03-22 01:45:37 +0000 |
commit | 3c8dac4c0282e5003ec8a5a3b77870afeb515a4b (patch) | |
tree | 551a2de73af1d91cbc8d63d99d9bbca815c72d7e /dev-cpp/folly/folly-2022.03.21.00.ebuild | |
parent | media-libs/dav1d: drop 0.8.0, 0.8.2, 0.9.0, 0.9.1 (diff) | |
download | gentoo-3c8dac4c0282e5003ec8a5a3b77870afeb515a4b.tar.gz gentoo-3c8dac4c0282e5003ec8a5a3b77870afeb515a4b.tar.bz2 gentoo-3c8dac4c0282e5003ec8a5a3b77870afeb515a4b.zip |
dev-cpp/folly: add 2022.03.21.00
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-cpp/folly/folly-2022.03.21.00.ebuild')
-rw-r--r-- | dev-cpp/folly/folly-2022.03.21.00.ebuild | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/dev-cpp/folly/folly-2022.03.21.00.ebuild b/dev-cpp/folly/folly-2022.03.21.00.ebuild new file mode 100644 index 000000000000..b644181fecc6 --- /dev/null +++ b/dev-cpp/folly/folly-2022.03.21.00.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake toolchain-funcs + +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/${PV}" +KEYWORDS="~amd64" +IUSE="llvm-libunwind test" +RESTRICT="!test? ( test )" + +RDEPEND="app-arch/bzip2 + app-arch/lz4:= + app-arch/snappy:= + app-arch/xz-utils + app-arch/zstd:= + dev-cpp/gflags:= + dev-cpp/glog[gflags] + dev-libs/boost:=[context,threads(+)] + dev-libs/double-conversion:= + dev-libs/libaio + dev-libs/libevent:= + dev-libs/libfmt:= + dev-libs/libsodium:= + dev-libs/openssl:= + sys-libs/liburing:= + sys-libs/zlib + llvm-libunwind? ( sys-libs/llvm-libunwind:= ) + !llvm-libunwind? ( sys-libs/libunwind:= )" +# libiberty is linked statically +DEPEND="${RDEPEND} + sys-libs/binutils-libs" +BDEPEND="test? ( sys-devel/clang )" + +pkg_setup() { + if use test && [[ ${BUILD_TYPE} != "binary" ]] && ! tc-is-clang ; then + ewarn "Forcing build with Clang due to GCC bug (because tests are enabled)" + ewarn "(https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104008)" + + export CC=${CHOST}-clang + export CXX=${CHOST}-clang++ + fi +} + +src_configure() { + # TODO: liburing could in theory be optional but fails to link + + local mycmakeargs=( + -DLIB_INSTALL_DIR="$(get_libdir)" + + -DBUILD_TESTS=$(usex test) + ) + + cmake_src_configure +} |