Files
guru/dev-util/webgpu-headers/webgpu-headers-9999.ebuild
Gonçalo Negrier Duarte a24f6f5a1b dev-util/webgpu-headers: remove dev-lang/go depedency
* since the webgpu-headers.h is the only required file for most packages
* including media-libs/imgui[webgpu]
* the go generation of webgpu-headers.yaml is not required to be
  packaged

Closes: https://bugs.gentoo.org/931927
Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte@gmail.com>
2024-05-15 14:18:08 +01:00

30 lines
657 B
Bash

# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
COMMIT="aef5e428a1fdab2ea770581ae7c95d8779984e0a"
if [[ ${PV} == *9999* ]]; then
EGIT_REPO_URI="https://github.com/webgpu-native/${PN}.git"
inherit git-r3
else
SRC_URI="https://github.com/webgpu-native/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
S="${WORKDIR}"/${PN}-${COMMIT}
fi
DESCRIPTION="Webgpu Header files"
HOMEPAGE="https://github.com/webgpu-native/webgpu-headers"
LICENSE="BSD"
SLOT="0"
src_prepare() {
rm ${S}/makefile || die
}
src_install() {
insinto /usr/include/webgpu
doins "${S}"/webgpu.h
}