Diff vulkan-layers-1.1.125-r2 with a vulkan-layers-1.2.133-r1

/usr/portage/media-libs/vulkan-layers/vulkan-layers-1.2.133-r1.ebuild 2020-03-20 01: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
if [[ "${PV}" == "9999" ]]; then
8
	EGIT_REPO_URI="https://github.com/KhronosGroup/Vulkan-ValidationLayers.git"
6
MY_PN=Vulkan-ValidationLayers
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"
9 13
	EGIT_SUBMODULES=()
10 14
	inherit git-r3
11 15
else
12
	EGIT_COMMIT="237d818e81fbffa073d29d94f53a2cbac4f25b9f"
13
	KEYWORDS="amd64 ~ppc64 x86"
14
	SRC_URI="https://github.com/KhronosGroup/Vulkan-ValidationLayers/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
15
	S="${WORKDIR}/Vulkan-ValidationLayers-${EGIT_COMMIT}"
16
	SRC_URI="https://github.com/KhronosGroup/${MY_PN}/archive/v${PV}.tar.gz -> ${P}a.tar.gz"
17
	KEYWORDS="~amd64 ~ppc64 ~x86"
18
	S="${WORKDIR}"/${MY_PN}-${PV}
16 19
fi
17 20

  
18
inherit python-any-r1 cmake-multilib
19

  
20 21
DESCRIPTION="Vulkan Validation Layers"
21 22
HOMEPAGE="https://github.com/KhronosGroup/Vulkan-ValidationLayers"
22 23

  
23 24
LICENSE="Apache-2.0"
24 25
SLOT="0"
25
IUSE="X wayland"
26
IUSE="wayland X"
26 27

  
28
BDEPEND=">=dev-util/cmake-3.10.2"
27 29
DEPEND="${PYTHON_DEPS}
28
		>=dev-util/glslang-7.12.3353_pre20191027-r1:=[${MULTILIB_USEDEP}]
29
		~dev-util/spirv-tools-2019.10_pre20191027:=[${MULTILIB_USEDEP}]
30
		>=dev-util/vulkan-headers-1.1.125
31
		wayland? ( dev-libs/wayland:=[${MULTILIB_USEDEP}] )
32
		X? (
33
		   x11-libs/libX11:=[${MULTILIB_USEDEP}]
34
		   x11-libs/libXrandr:=[${MULTILIB_USEDEP}]
35
		   )"
30
	>=dev-util/glslang-7.12.3353_pre20191027-r1:=[${MULTILIB_USEDEP}]
31
	>=dev-util/spirv-tools-2020.1:=[${MULTILIB_USEDEP}]
32
	>=dev-util/vulkan-headers-${PV}
33
	wayland? ( dev-libs/wayland:=[${MULTILIB_USEDEP}] )
34
	X? (
35
		x11-libs/libX11:=[${MULTILIB_USEDEP}]
36
		x11-libs/libXrandr:=[${MULTILIB_USEDEP}]
37
	)
38
"
39

  
40
PATCHES=( "${FILESDIR}/${PN}-${PV}-Fix-build.patch" )
36 41

  
37 42
multilib_src_configure() {
38 43
	local mycmakeargs=(
39
		-DCMAKE_SKIP_RPATH=True
40
		-DBUILD_LAYER_SUPPORT_FILES=True
44
		-DCMAKE_SKIP_RPATH=ON
45
		-DBUILD_LAYER_SUPPORT_FILES=ON
41 46
		-DBUILD_WSI_WAYLAND_SUPPORT=$(usex wayland)
42 47
		-DBUILD_WSI_XCB_SUPPORT=$(usex X)
43 48
		-DBUILD_WSI_XLIB_SUPPORT=$(usex X)
44
		-DBUILD_TESTS=False
45
		-DGLSLANG_INSTALL_DIR="/usr"
46
		-DCMAKE_INSTALL_INCLUDEDIR="/usr/include/vulkan/"
49
		-DBUILD_TESTS=OFF
50
		-DGLSLANG_INSTALL_DIR="${EPREFIX}/usr"
51
		-DCMAKE_INSTALL_INCLUDEDIR="${EPREFIX}/usr/include/vulkan/"
47 52
	)
48
	cmake-utils_src_configure
53
	cmake_src_configure
49 54
}
Thank you!