2018-10-08 01:07:22 +03:00
|
|
|
# Copyright 1999-2018 Gentoo Authors
|
2018-07-12 07:27:47 +03:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=6
|
|
|
|
|
|
|
|
inherit cmake-multilib cmake-utils
|
|
|
|
|
|
|
|
DESCRIPTION="Provides an API and commands for processing SPIR-V modules"
|
|
|
|
HOMEPAGE="https://github.com/KhronosGroup/SPIRV-Tools"
|
|
|
|
SRC_URI="https://github.com/KhronosGroup/SPIRV-Tools/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="Apache-2.0"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
# Tests fail upon finding symbols that do not match a regular expression
|
|
|
|
# in the generated library. Easily hit with non-standard compiler flags
|
|
|
|
RESTRICT="test"
|
|
|
|
|
|
|
|
RDEPEND=""
|
2018-07-13 17:00:23 +03:00
|
|
|
DEPEND=">=dev-util/spirv-headers-1.3.1_pre20180710"
|
2018-07-12 07:27:47 +03:00
|
|
|
EGIT_COMMIT="f508896d6487d09f5c9a2a3835595446fec0791a"
|
|
|
|
S="${WORKDIR}/SPIRV-Tools-${PV}"
|
|
|
|
|
|
|
|
multilib_src_configure() {
|
|
|
|
local mycmakeargs=(
|
|
|
|
"-DSPIRV-Headers_SOURCE_DIR=/usr/"
|
2018-10-08 01:07:22 +03:00
|
|
|
"-DSPIRV_WERROR=OFF"
|
2018-07-12 07:27:47 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
cmake-utils_src_configure
|
|
|
|
}
|
|
|
|
|
|
|
|
multilib_src_install() {
|
|
|
|
default
|
|
|
|
echo "${EGIT_COMMIT}" > "${PN}-commit.h" || die
|
|
|
|
insinto /usr/include/"${PN}"
|
|
|
|
doins "${PN}-commit.h"
|
|
|
|
}
|