dev-cpp/edencommon: add 2025.04.14.00

RDEPEND fixed via qa-vdb. gtest no longer needs to be unconditionally
linked.

Bug: https://bugs.gentoo.org/946922
Signed-off-by: sin-ack <sin-ack@protonmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
sin-ack
2025-04-21 16:04:43 +00:00
committed by Sam James
parent 077bef3536
commit 4e22358483
2 changed files with 68 additions and 0 deletions

View File

@@ -1,2 +1,3 @@
DIST edencommon-2023.06.19.00.gh.tar.gz 146697 BLAKE2B 8b2419671c50eea43aa4b8d5d85eee75ed24ff9745a71c2d11b1994605552ffc288b55520639585631aed0e2528482a01daa9b47ef676fed7c14b4c7d75d018f SHA512 47b37a6acf93a6c6f2903f3113021aa1d54230cf3e31a8071aa7f276601a8eae56bd95767ec23c3027695367261d4db1483b637513c72ce220778f1f1a4c42ce
DIST edencommon-2024.11.04.00.gh.tar.gz 311977 BLAKE2B 2b152c3cc243c684b8b802981494816b5114e100bc31cc07a96d000dae2be70da4e205d52a30776e930c7c01d63e01baa102cb49a431c961ef133ed936c5eb76 SHA512 c1c428d7392d279e1b0c4348b0fd41ef9a53e50d8a65ff513a56919a7834c118af4adb1145153d10821efb7c8b30b62c1c6d6365b368b90cd567e350c8be0e81
DIST edencommon-2025.04.14.00.gh.tar.gz 321818 BLAKE2B da50e90bfa6f020ac9b41b4214b52359500e6b8c60e6a5794749b4a87724940aada0493c56e1d6a9b42a0d4d2363b13084a3dee02527fb52defc4fdcf845c326 SHA512 ebf66941d622443a439e3c40ba891e60d274ba259e795b6e046a342be57c0d3c3cdb70f9cada11086b51c2b7f64a4593ba6ab8bc33380aba4976a91d793d0326

View File

@@ -0,0 +1,67 @@
# Copyright 2022-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
# These must be bumped together:
# dev-cpp/edencommon
# dev-cpp/fb303
# dev-cpp/fbthrift
# dev-cpp/fizz
# dev-cpp/folly
# dev-cpp/mvfst
# dev-cpp/wangle
# dev-util/watchman
inherit cmake toolchain-funcs
DESCRIPTION="Shared library for Watchman and Eden projects"
HOMEPAGE="https://github.com/facebookexperimental/edencommon"
SRC_URI="https://github.com/facebookexperimental/edencommon/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
LICENSE="MIT"
SLOT="0/${PV}"
KEYWORDS="~amd64 ~arm64"
IUSE="llvm-libunwind test"
RESTRICT="!test? ( test )"
RDEPEND="
dev-cpp/glog:=
~dev-cpp/folly-${PV}:=
~dev-cpp/fb303-${PV}:=
dev-libs/boost:=
dev-libs/libfmt:=
llvm-libunwind? ( llvm-runtimes/libunwind:= )
!llvm-libunwind? ( sys-libs/libunwind:= )
"
DEPEND="
${RDEPEND}
test? ( dev-cpp/gtest )
"
src_configure() {
local mycmakeargs=(
-DCMAKE_INSTALL_DIR="$(get_libdir)/cmake/${PN}"
-DLIB_INSTALL_DIR="$(get_libdir)"
)
cmake_src_configure
}
src_test() {
CMAKE_SKIP_TESTS=(
# Tests fail because they try to obtain the real UID/username,
# which is different from the test runner (portage).
# https://github.com/facebookexperimental/edencommon/issues/25
"ProcessInfoTest.readUserInfoForCurrentProcess"
"ProcessInfoTest.testUidToUsername"
)
# This test fails on GCC 13.
# https://github.com/facebookexperimental/edencommon/issues/22
if tc-is-gcc && ver_test $(gcc-version) -lt 14.0.0; then
CMAKE_SKIP_TESTS+=(PathFuncs.move_or_copy)
fi
cmake_src_test
}