commit: 05eae05ce0468781662cef7db3676bdfaa56588b
parent f0ce667604b0acd75352299d35635ff1a036545b
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Mon, 13 Jun 2022 06:17:11 +0200
dev-util/glslang: Improve python support
Diffstat:
2 files changed, 21 insertions(+), 20 deletions(-)
diff --git a/dev-util/glslang/glslang-11.2.0-r1.ebuild b/dev-util/glslang/glslang-11.2.0-r1.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+CMAKE_ECLASS="cmake"
+PYTHON_COMPAT=( python3_{8..10} )
+inherit cmake-multilib python-any-r1
+
+# https://bugs.gentoo.org/show_bug.cgi?id=760777
+MYCMAKEARGS="-DENABLE_PCH=OFF"
+
+DESCRIPTION="Khronos reference front-end for GLSL and ESSL, and sample SPIR-V generator"
+HOMEPAGE="https://www.khronos.org/opengles/sdk/tools/Reference-Compiler/ https://github.com/KhronosGroup/glslang"
+SRC_URI="https://github.com/KhronosGroup/glslang/archive/${PV}.tar.gz -> ${P}.tar.gz"
+KEYWORDS="~amd64 ~x86"
+
+LICENSE="BSD"
+SLOT="0"
+
+BDEPEND="${PYTHON_DEPS}"
diff --git a/dev-util/glslang/glslang-11.2.0.ebuild b/dev-util/glslang/glslang-11.2.0.ebuild
@@ -1,20 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-CMAKE_ECLASS="cmake"
-inherit cmake-multilib
-
-# https://bugs.gentoo.org/show_bug.cgi?id=760777
-MYCMAKEARGS="-DENABLE_PCH=OFF"
-
-DESCRIPTION="Khronos reference front-end for GLSL and ESSL, and sample SPIR-V generator"
-HOMEPAGE="https://www.khronos.org/opengles/sdk/tools/Reference-Compiler/ https://github.com/KhronosGroup/glslang"
-SRC_URI="https://github.com/KhronosGroup/glslang/archive/${PV}.tar.gz -> ${P}.tar.gz"
-KEYWORDS="~amd64 ~x86"
-LICENSE="BSD"
-SLOT="0"
-DEPENDS="
- >=dev-lang/python-3.0
-"