dev-libs/metee: add 6.0.2

Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
This commit is contained in:
Conrad Kostecki
2025-09-22 19:13:21 +02:00
parent 484bba65aa
commit e0aff2bafd
2 changed files with 66 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST metee-6.0.0.tar.gz 119025 BLAKE2B e64aa39877079e3104839a28deef0d1d1282a76ae451b0102cf81a2e89ed8aee9d02234db5152a5b7af8d57363c1f4adbdff8600ffbe20a3b42f0a7700d341db SHA512 ee9923aff56341ce058f8d34a5d5781c56cc4d991001f314014b88551cfed56a2e39c2b5e4557532a19386b7bccaf6ad90ee3ee1b467b3979b270ee9b64ac847
DIST metee-6.0.2.tar.gz 119084 BLAKE2B 31ced32744d5c2fe38bc409bb90682d8c66051704c1c3fc5f4abe2947e2272f5d3c1b921a04dbd14935c3260d88154d5e3cd3509e62006b3196d133601152d36 SHA512 a1f8e77c201a4864bd04d9ff4aac5beca451ab77cc57b6ba8164cfdf005c693371c0558dac123b832a62a30929260b9777405dd6732651f0e9361834ac74eca2

View File

@@ -0,0 +1,65 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake edo
DESCRIPTION="Cross-platform access library for Intel CSME HECI interface"
HOMEPAGE="https://github.com/intel/metee"
SRC_URI="https://github.com/intel/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0/${PV}"
KEYWORDS="~amd64"
IUSE="doc test"
RESTRICT="!test? ( test )"
BDEPEND="
doc? ( app-text/doxygen )
test? ( dev-cpp/gtest )
"
PATCHES=(
"${FILESDIR}"/${PN}-5.0.0-system-gtest.patch
)
src_prepare() {
cmake_src_prepare
# Respect users CFLAGS
sed -e 's/-D_FORTIFY_SOURCE=2 -O2//' -e 's/-Werror//' -i linux.cmake || die
}
src_configure() {
local mycmakeargs=(
-DBUILD_DOCS="$(usex doc)"
-DBUILD_SAMPLES="NO"
-DBUILD_SHARED_LIBS="YES"
-DBUILD_TEST="$(usex test)"
-DCONSOLE_OUTPUT="NO"
)
cmake_src_configure
}
src_test() {
local skip_tests=(
MeTeeTESTInstance/MeTeeTEST.PROD_N_TestGetMeiKind/PCH
MeTeePPTESTInstance/MeTeePPTEST.PROD_MKHI_MoveSemantics/PCH
)
# The format for disabling test1, test2, and test3 looks like:
# -test1:test2:test3
edo "${BUILD_DIR}"/tests/metee_test \
--gtest_filter=-$(echo $(IFS=:; echo "${skip_tests[*]}"))
}
src_install() {
cmake_src_install
# Don't install test binary
if use test ; then
rm "${ED}"/usr/bin/metee_test || die
fi
}