Diff spirv-tools-2019.10_pre20191027-r1 with a spirv-tools-2020.1

/usr/portage/dev-util/spirv-tools/spirv-tools-2020.1.ebuild 2020-03-16 00:39:00.000000000 +0300
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=7
5
PYTHON_COMPAT=( python3_{6,7} )
6 5

  
7
inherit cmake-multilib cmake-utils python-any-r1
6
MY_PN=SPIRV-Tools
7
CMAKE_ECLASS="cmake"
8
PYTHON_COMPAT=( python3_{6,7,8} )
9
inherit cmake-multilib python-any-r1
10

  
11
if [[ ${PV} == *9999* ]]; then
12
	EGIT_REPO_URI="https://github.com/KhronosGroup/${MY_PN}.git"
13
	inherit git-r3
14
else
15
	SRC_URI="https://github.com/KhronosGroup/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
16
	KEYWORDS="~amd64 ~ppc64 ~x86"
17
	S="${WORKDIR}"/${MY_PN}-${PV}
18
fi
8 19

  
9 20
DESCRIPTION="Provides an API and commands for processing SPIR-V modules"
10 21
HOMEPAGE="https://github.com/KhronosGroup/SPIRV-Tools"
11
EGIT_COMMIT="ec12de9131244a076c34ddca2e8d7451288be7e1"
12
SRC_URI="https://github.com/KhronosGroup/SPIRV-Tools/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
13 22

  
14 23
LICENSE="Apache-2.0"
15 24
SLOT="0"
16
KEYWORDS="amd64 ~ppc64 x86"
17 25
# Tests fail upon finding symbols that do not match a regular expression
18 26
# in the generated library. Easily hit with non-standard compiler flags
19 27
RESTRICT="test"
20

  
21 28
COMMON_DEPEND=">=dev-util/spirv-headers-1.5.1"
22 29
DEPEND="${COMMON_DEPEND}"
23 30
RDEPEND=""
24 31
BDEPEND="${PYTHON_DEPS}
25 32
	${COMMON_DEPEND}"
26 33

  
27
PATCHES=( "${FILESDIR}/${P}-Respect-CMAKE_INSTALL_LIBDIR-in-installed-CMake-files.patch" )
28

  
29
S="${WORKDIR}/SPIRV-Tools-${EGIT_COMMIT}"
30

  
31 34
multilib_src_configure() {
32 35
	local mycmakeargs=(
33 36
		"-DSPIRV-Headers_SOURCE_DIR=/usr/"
34 37
		"-DSPIRV_WERROR=OFF"
35 38
	)
36 39

  
37
	cmake-utils_src_configure
38
}
39

  
40
multilib_src_install() {
41
	cmake-utils_src_install
42
	echo "${EGIT_COMMIT}" > "${PN}-commit.h" || die
43
	insinto /usr/include/"${PN}"
44
	doins  "${PN}-commit.h"
40
	cmake_src_configure
45 41
}
Thank you!