summaryrefslogtreecommitdiff
path: root/dev-libs/level-zero/level-zero-1.8.5.ebuild
blob: e3c8edfb2762caca4ef220fff2bd9a4b38b18283 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Copyright 1999-2022 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/1.8.5"
KEYWORDS="amd64"

src_prepare() {
	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
}