media-libs/vulkan-layers: version bump to 1.2.133
authorGuilherme Amadio <amadio@gentoo.org>
Tue, 11 Feb 2020 21:06:28 +0000 (22:06 +0100)
committerGuilherme Amadio <amadio@gentoo.org>
Thu, 5 Mar 2020 07:19:56 +0000 (08:19 +0100)
Package-Manager: Portage-2.3.87, Repoman-2.3.20
Acked-by: Nick Sarnie <sarnex@gentoo.org>
Signed-off-by: Guilherme Amadio <amadio@gentoo.org>
media-libs/vulkan-layers/Manifest
media-libs/vulkan-layers/vulkan-layers-1.2.133.ebuild [new file with mode: 0644]

index c6f0e1ed244818c1e550f44edce22b1845c31656..eded2fbca37f3f2077b917f13652b330b2b0b8bf 100644 (file)
@@ -1 +1,2 @@
 DIST vulkan-layers-1.1.125.tar.gz 1763589 BLAKE2B e6db1c8b2469afcc9565a55e3977443952cf8a176b6b2b2f5747fbfdb887074e014138b4626f58ddb5c24f87260af32c0c589aef237366aee5acfd3b31ad06ee SHA512 07fcfa9737711671a1a537285f69b63b1a14cf9201dcc169fbe99e19febe612ba8a1e7b448d18bfd01a35d90fb99a261ada0ae9b8facb36d04079bcf3c5c72e0
+DIST vulkan-layers-1.2.133.tar.gz 1763589 BLAKE2B e6db1c8b2469afcc9565a55e3977443952cf8a176b6b2b2f5747fbfdb887074e014138b4626f58ddb5c24f87260af32c0c589aef237366aee5acfd3b31ad06ee SHA512 07fcfa9737711671a1a537285f69b63b1a14cf9201dcc169fbe99e19febe612ba8a1e7b448d18bfd01a35d90fb99a261ada0ae9b8facb36d04079bcf3c5c72e0
diff --git a/media-libs/vulkan-layers/vulkan-layers-1.2.133.ebuild b/media-libs/vulkan-layers/vulkan-layers-1.2.133.ebuild
new file mode 100644 (file)
index 0000000..2658a30
--- /dev/null
@@ -0,0 +1,49 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+PYTHON_COMPAT=( python3_{6,7} )
+
+if [[ "${PV}" == "9999" ]]; then
+       EGIT_REPO_URI="https://github.com/KhronosGroup/Vulkan-ValidationLayers.git"
+       EGIT_SUBMODULES=()
+       inherit git-r3
+else
+       EGIT_COMMIT="237d818e81fbffa073d29d94f53a2cbac4f25b9f"
+       KEYWORDS="~amd64 ~ppc64 ~x86"
+       SRC_URI="https://github.com/KhronosGroup/Vulkan-ValidationLayers/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
+       S="${WORKDIR}/Vulkan-ValidationLayers-${EGIT_COMMIT}"
+fi
+
+inherit python-any-r1 cmake-multilib
+
+DESCRIPTION="Vulkan Validation Layers"
+HOMEPAGE="https://github.com/KhronosGroup/Vulkan-ValidationLayers"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE="X wayland"
+
+DEPEND="${PYTHON_DEPS}
+               >=dev-util/glslang-7.12.3353_pre20191027-r1:=[${MULTILIB_USEDEP}]
+               ~dev-util/spirv-tools-2019.10_pre20191027:=[${MULTILIB_USEDEP}]
+               >=dev-util/vulkan-headers-${PV}
+               wayland? ( dev-libs/wayland:=[${MULTILIB_USEDEP}] )
+               X? (
+                       x11-libs/libX11:=[${MULTILIB_USEDEP}]
+                       x11-libs/libXrandr:=[${MULTILIB_USEDEP}]
+               )"
+
+multilib_src_configure() {
+       local mycmakeargs=(
+               -DCMAKE_SKIP_RPATH=True
+               -DBUILD_LAYER_SUPPORT_FILES=True
+               -DBUILD_WSI_WAYLAND_SUPPORT=$(usex wayland)
+               -DBUILD_WSI_XCB_SUPPORT=$(usex X)
+               -DBUILD_WSI_XLIB_SUPPORT=$(usex X)
+               -DBUILD_TESTS=False
+               -DGLSLANG_INSTALL_DIR="/usr"
+               -DCMAKE_INSTALL_INCLUDEDIR="/usr/include/vulkan/"
+       )
+       cmake-utils_src_configure
+}