gentoo/dev-libs/level-zero/level-zero-1.26.0.ebuild
Conrad Kostecki b71ca2b013
dev-libs/level-zero: disable -Werror by CMake
Closes: https://bugs.gentoo.org/965841
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
2025-11-13 22:22:55 +01:00

37 lines
896 B
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="oneAPI Level Zero headers, loader and validation layer"
HOMEPAGE="https://github.com/oneapi-src/level-zero"
SRC_URI="https://github.com/oneapi-src/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0/${PV}"
KEYWORDS="~amd64"
RDEPEND="dev-libs/spdlog:="
DEPEND="${RDEPEND}"
src_prepare() {
# Don't hardcore -Werror
sed -e 's/-Werror//g' -e '/CMAKE_COMPILE_WARNING_AS_ERROR/ s/ON/OFF/' -i CMakeLists.txt || die
cmake_src_prepare
# According to upstream, release tarballs should contain this file but at least
# some of them do not. Fortunately it is trivial to make one ourselves.
echo "$(ver_cut 3)" > "${S}"/VERSION_PATCH || die
}
src_configure() {
local mycmakeargs=(
-DSYSTEM_SPDLOG="ON"
)
cmake_src_configure
}