summaryrefslogtreecommitdiff
path: root/dev-libs/sirit/sirit-1.0.5.ebuild
blob: f50dc3d79b1c29987e0753d569dd152a26df3e7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit cmake

DESCRIPTION="A runtime SPIR-V assembler"
HOMEPAGE="https://github.com/eden-emulator/sirit"
SRC_URI="https://github.com/eden-emulator/sirit/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="AGPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~ppc64"
IUSE="test"
RESTRICT="!test? ( test )"

DEPEND="dev-util/spirv-headers"
RDEPEND="${DEPEND}"

src_configure() {
	local mycmakeargs=(
		-DSIRIT_USE_SYSTEM_SPIRV_HEADERS=ON

		-DSIRIT_TESTS=$(usex test)
	)
	cmake_src_configure
}

src_install() {
	cmake_src_install
	dodoc LICENSE
}