commit:     a2a7fc48c1d0429e7aed6fc988e801f6316a732f
Author:     Matthew Smith <matthew <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 26 17:30:48 2023 +0000
Commit:     Matthew Smith <matthew <AT> gentoo <DOT> org>
CommitDate: Sun Feb 26 17:30:48 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a2a7fc48

media-gfx/renderdoc: drop 1.21, 1.22, 1.22-r1

These versions are not compatible with Python 3.11.

Closes: https://bugs.gentoo.org/896990
Signed-off-by: Matthew Smith <matthew <AT> gentoo.org>

 media-gfx/renderdoc/Manifest                 |   4 -
 media-gfx/renderdoc/renderdoc-1.21.ebuild    | 202 --------------------------
 media-gfx/renderdoc/renderdoc-1.22-r1.ebuild | 203 ---------------------------
 media-gfx/renderdoc/renderdoc-1.22.ebuild    | 203 ---------------------------
 4 files changed, 612 deletions(-)

diff --git a/media-gfx/renderdoc/Manifest b/media-gfx/renderdoc/Manifest
index 38604bf15bb7..5978148372fd 100644
--- a/media-gfx/renderdoc/Manifest
+++ b/media-gfx/renderdoc/Manifest
@@ -1,7 +1,3 @@
-DIST renderdoc-1.21.tar.gz 46911586 BLAKE2B 
4d4a38de38837c29e005f6c576a3de9edd221eb1dceda7e65fad65ccc6d672f2de0ebb008a9c0440f61647996f30189ffb71f2379aa04a20e68386416b6f4b35
 SHA512 
9386a42a1ceeb4712d43c18c699a0234ef7f55f6ca03c7a0537cd97dc76fa1429220b95d8f66c5007dfc92535ff552fdb8b3b755aa8e6ce159aa1e98c6fbce5b
-DIST renderdoc-1.21.tar.gz.asc 833 BLAKE2B 
baa858de1915a2e4e69bf1fdf21271fe39d0e768100330db3b0a9f312235a0253c8289265dedb6d458a2c829c3058dca74166269b08c8639ecec2d049a7193e5
 SHA512 
a2197421d004aa7b86672824fd61261ed91d802e1eb2319e1d5ba5d0c32c58dd61a7916ec41dc9a3b8661e24bd9d3f6da70d44e6ebe4a8e6a7dafe4f83ae5338
-DIST renderdoc-1.22.tar.gz 46942430 BLAKE2B 
8dfdea0883fd050af2359bb26c7ed2f99109e9ded10251d60ee00c6d14146432d04ebe939559e845a8ebb48a4d35552e0478ce5efe9afbe5b6468abfd53db573
 SHA512 
b2e6d977293ff904e6919f041e6f6148612980ae22bcf19262aa54f8ea32c24510ab8c72be4178ddead91d400423d7a89a2129d04e6c339d4f33151bb1c4249b
-DIST renderdoc-1.22.tar.gz.asc 833 BLAKE2B 
e8281369e602302a56189f81c6a4fc8084d0167de7ca76cb5066653a3697aa0c74ade8565ff98fad64e72ba1e0d3eec6447c7b96974ef7814d512e07ebfa0a9c
 SHA512 
070255fa5ddbcb52c938b9354c6505b9b1c4ba3cade9f066cd938424076f4c475efee061575da111038e9fb7b49487216542a7742048596d9e729160f8d68e9e
 DIST renderdoc-1.24.tar.gz 46998687 BLAKE2B 
34316e81da94eeeb0aff2291563e9bf5c46089746f7dc53f8def2b047d0d377e5c26edd8fee23ff97d77037bcfc8468b7f27f2c82c7f6e80f20cd5278b026d75
 SHA512 
07cc35800c13893bf1b8f8635d5a819f546e458be6a8111d1b40d54e25977c0b88d7c7bc6a89a813dfa353e0fe0a84a334d3796e04c327bf2f42c65a172f9027
 DIST renderdoc-1.24.tar.gz.asc 833 BLAKE2B 
0649f4437c57fee9cd69946cff3be0b2b156656fe648b56504ff241dbd43d37d4f3d6a89ea17bd006a7d4778f3d901e25756c069baeb3d55283d9046d19b3cb0
 SHA512 
fad7ffd3a9538d26b38a9a32a22021063cf9b457cedecb1e40cb7cf7a55e86c290ed1776877612af02205b0f8d35f5331f05e7b2fcdfc00469be21831b62939f
 DIST swig-renderdoc-7.tar.gz 4006241 BLAKE2B 
619f41239f4aef496264d61f44ae042cf80d3ff28491d452cf11ad07e898554c4a32df6119ee0e8e3de36e6bee61855358cd968ad01c9281976e24e9a6cac839
 SHA512 
5285a65924c069cfb9f73104ad8a95251badac4001293a1757b97ebead5953730c03289159741f82da4c5afe4f61f7c826b105eaf82df044ed2fa21810242c86

diff --git a/media-gfx/renderdoc/renderdoc-1.21.ebuild 
b/media-gfx/renderdoc/renderdoc-1.21.ebuild
deleted file mode 100644
index 547e21513366..000000000000
--- a/media-gfx/renderdoc/renderdoc-1.21.ebuild
+++ /dev/null
@@ -1,202 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-# The swig fork is required for compatibility with both provided and
-# 3rd-party Python scripts.  Required patch was sent to upstream in
-# 2014: https://github.com/swig/swig/pull/251
-MY_SWIG_VER=7
-MY_SWIG=swig-${PN}-${MY_SWIG_VER}
-
-AUTOTOOLS_AUTO_DEPEND="no"
-DOCS_BUILDER="sphinx"
-DOCS_DIR="docs"
-PYTHON_COMPAT=( python3_{9,10} )
-inherit autotools cmake flag-o-matic optfeature python-single-r1 docs 
qmake-utils verify-sig xdg
-
-DESCRIPTION="A stand-alone graphics debugging tool"
-HOMEPAGE="https://renderdoc.org https://github.com/baldurk/renderdoc";
-SRC_URI="
-       https://github.com/baldurk/${PN}/archive/refs/tags/v${PV}.tar.gz -> 
${P}.tar.gz
-       qt5? ( 
https://github.com/baldurk/swig/archive/${PN}-modified-${MY_SWIG_VER}.tar.gz -> 
${MY_SWIG}.tar.gz )
-       verify-sig? ( 
https://github.com/baldurk/renderdoc/releases/download/v${PV}/v${PV}.tar.gz.asc 
-> ${P}.tar.gz.asc )
-"
-
-# renderdoc: MIT
-#   + cmdline: BSD (not compatible with upstream lib)
-#   + farm fresh icons: CC-BY-3.0
-#   + half: MIT (not compatible with system dev-libs/half)
-#   + include-bin ZLIB (upstream doesn't exist anymore, maintained in tree)
-#   + md5: public-domain
-#   + plthook: BSD-2
-#   + pugixml: MIT
-#   + radeon gpu analyzer: MIT
-#   + source code pro: OFL-1.1
-#   + stb: public-domain
-#   + tinyfiledialogs: ZLIB
-#   + docs? ( sphinx.paramlinks: MIT )
-# swig: GPL-3+ BSD BSD-2
-LICENSE="BSD BSD-2 CC-BY-3.0 GPL-3+ MIT OFL-1.1 public-domain ZLIB"
-SLOT="0"
-KEYWORDS="amd64"
-IUSE="pyside2 qt5"
-REQUIRED_USE="doc? ( qt5 ) pyside2? ( qt5 ) qt5? ( ${PYTHON_REQUIRED_USE} )"
-
-RDEPEND="
-       app-arch/lz4:=
-       app-arch/zstd:=
-       dev-libs/miniz:=
-       dev-util/glslang
-       x11-libs/libX11
-       x11-libs/libxcb:=
-       x11-libs/xcb-util-keysyms
-       virtual/opengl
-       pyside2? (
-               $(python_gen_cond_dep '
-                       dev-python/pyside2[${PYTHON_USEDEP}]
-               ')
-       )
-       qt5? (
-               ${PYTHON_DEPS}
-               dev-qt/qtcore:5
-               dev-qt/qtgui:5
-               dev-qt/qtnetwork:5[ssl]
-               dev-qt/qtsvg:5
-               dev-qt/qtwidgets:5
-               dev-qt/qtx11extras:5
-       )
-"
-DEPEND="${RDEPEND}"
-# qtcore provides qmake, which is required to build the qrenderdoc gui.
-BDEPEND="
-       x11-base/xorg-proto
-       virtual/pkgconfig
-       qt5? (
-               ${AUTOTOOLS_DEPEND}
-               ${PYTHON_DEPS}
-               dev-libs/libpcre
-               dev-qt/qtcore:5
-               sys-devel/bison
-       )
-       verify-sig? ( sec-keys/openpgp-keys-baldurkarlsson )
-"
-
-PATCHES=(
-       # The analytics seem very reasonable, and even without this patch
-       # they are NOT sent before the user accepts.  But default the
-       # selection to off, just in case.
-       "${FILESDIR}"/${PN}-1.18-analytics-off.patch
-
-       # Only search for PySide2 if pyside2 USE flag is set.
-       # Bug #833627
-       "${FILESDIR}"/${PN}-1.18-conditional-pyside.patch
-
-       # Pass CXXFLAGS and LDFLAGS through to qmake when qrenderdoc is
-       # built.
-       "${FILESDIR}"/${PN}-1.18-system-flags.patch
-
-       # Needed to prevent sandbox violations during build.
-       "${FILESDIR}"/${PN}-1.18-env-home.patch
-
-       "${FILESDIR}"/${PN}-1.20-system-glslang.patch
-       "${FILESDIR}"/${PN}-1.18-system-compress.patch
-)
-
-DOCS=( util/LINUX_DIST_README )
-
-VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/baldurkarlsson.gpg
-
-pkg_setup() {
-       use qt5 && python-single-r1_pkg_setup
-}
-
-src_unpack() {
-       if use verify-sig; then
-          verify-sig_verify_detached "${DISTDIR}"/${P}.tar.gz{,.asc}
-       fi
-
-       # Do not unpack the swig sources here.  CMake will do that if
-       # required.
-       unpack ${P}.tar.gz
-}
-
-src_prepare() {
-       cmake_src_prepare
-
-       # Ensure that we use the system glslang headers instead of the
-       # vendored copy.
-       rm -r renderdoc/3rdparty/glslang || die 'rm vendored glslang failed'
-
-       # Remove the calls to install the documentation files.  Instead,
-       # install them with einstalldocs.
-       sed -i '/share\/doc\/renderdoc/d' \
-               "${S}"/CMakeLists.txt "${S}"/qrenderdoc/CMakeLists.txt \
-               || die 'sed remove doc install failed'
-
-       # Assumes that the build directory is "${S}"/build, which it is not.
-       sed -i "s|../build/lib|${BUILD_DIR}/lib|" \
-               "${S}"/docs/conf.py \
-               || die 'sed patch doc sys.path failed'
-
-       # Bug #836235
-       sed -i '/#include <stdarg/i #include <time.h>' \
-               "${S}"/renderdoc/os/os_specific.h \
-               || die 'sed include time.h failed'
-}
-
-src_configure() {
-       local mycmakeargs=(
-               # Build system does not know that this is a tagged release, as
-               # we just have the tarball and not the git repository.
-               -DBUILD_VERSION_STABLE=ON
-
-               -DENABLE_EGL=ON
-               -DENABLE_GL=ON
-               -DENABLE_GLES=ON
-               -DENABLE_PYRENDERDOC=$(usex qt5)
-               -DENABLE_QRENDERDOC=$(usex qt5)
-               -DENABLE_VULKAN=ON
-
-               # Upstream says that this option is unsupported and should not
-               # be used yet.
-               -DENABLE_WAYLAND=OFF
-
-               -DENABLE_XCB=ON
-               -DENABLE_XLIB=ON
-
-               # Path to glslang*.cmake.
-               -DGLSLANG_TARGET_DIR="${ESYSROOT}"/usr/$(get_libdir)/cmake
-
-               # renderdoc_capture.json is installed here
-               -DVULKAN_LAYER_FOLDER="${EPREFIX}"/etc/vulkan/implicit_layer.d
-       )
-
-       use qt5 && mycmakeargs+=(
-               -DPython3_EXECUTABLE="${PYTHON}"
-               -DRENDERDOC_SWIG_PACKAGE="${DISTDIR}"/${MY_SWIG}.tar.gz
-
-               # Needed after qtchooser removal, bug #836474.
-               -DQMAKE_QT5_COMMAND="$(qt5_get_bindir)"/qmake
-
-               -DQRENDERDOC_ENABLE_PYSIDE2=$(usex pyside2)
-       )
-
-       use pyside2 && mycmakeargs+=( -DPYTHON_CONFIG_SUFFIX=-${EPYTHON} )
-
-       # Lots of type mismatch issues.
-       filter-lto
-
-       cmake_src_configure
-}
-
-src_compile() {
-       cmake_src_compile
-       docs_compile
-}
-
-pkg_postinst() {
-       xdg_pkg_postinst
-       optfeature "android remote contexts" dev-util/android-tools
-       optfeature "vulkan contexts" media-libs/vulkan-loader
-}

diff --git a/media-gfx/renderdoc/renderdoc-1.22-r1.ebuild 
b/media-gfx/renderdoc/renderdoc-1.22-r1.ebuild
deleted file mode 100644
index f89d8865ddb7..000000000000
--- a/media-gfx/renderdoc/renderdoc-1.22-r1.ebuild
+++ /dev/null
@@ -1,203 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-# The swig fork is required for compatibility with both provided and
-# 3rd-party Python scripts.  Required patch was sent to upstream in
-# 2014: https://github.com/swig/swig/pull/251
-MY_SWIG_VER=7
-MY_SWIG=swig-${PN}-${MY_SWIG_VER}
-
-AUTOTOOLS_AUTO_DEPEND="no"
-DOCS_BUILDER="sphinx"
-DOCS_DIR="docs"
-# For Python 3.11, see https://github.com/baldurk/renderdoc/issues/2730
-PYTHON_COMPAT=( python3_{9,10} )
-inherit autotools cmake flag-o-matic optfeature python-single-r1 docs 
qmake-utils verify-sig xdg
-
-DESCRIPTION="A stand-alone graphics debugging tool"
-HOMEPAGE="https://renderdoc.org https://github.com/baldurk/renderdoc";
-SRC_URI="
-       https://github.com/baldurk/${PN}/archive/refs/tags/v${PV}.tar.gz -> 
${P}.tar.gz
-       qt5? ( 
https://github.com/baldurk/swig/archive/${PN}-modified-${MY_SWIG_VER}.tar.gz -> 
${MY_SWIG}.tar.gz )
-       verify-sig? ( 
https://github.com/baldurk/renderdoc/releases/download/v${PV}/v${PV}.tar.gz.asc 
-> ${P}.tar.gz.asc )
-"
-
-# renderdoc: MIT
-#   + cmdline: BSD (not compatible with upstream lib)
-#   + farm fresh icons: CC-BY-3.0
-#   + half: MIT (not compatible with system dev-libs/half)
-#   + include-bin ZLIB (upstream doesn't exist anymore, maintained in tree)
-#   + md5: public-domain
-#   + plthook: BSD-2
-#   + pugixml: MIT
-#   + radeon gpu analyzer: MIT
-#   + source code pro: OFL-1.1
-#   + stb: public-domain
-#   + tinyfiledialogs: ZLIB
-#   + docs? ( sphinx.paramlinks: MIT )
-# swig: GPL-3+ BSD BSD-2
-LICENSE="BSD BSD-2 CC-BY-3.0 GPL-3+ MIT OFL-1.1 public-domain ZLIB"
-SLOT="0"
-KEYWORDS="amd64"
-IUSE="pyside2 qt5"
-REQUIRED_USE="doc? ( qt5 ) pyside2? ( qt5 ) qt5? ( ${PYTHON_REQUIRED_USE} )"
-
-RDEPEND="
-       app-arch/lz4:=
-       app-arch/zstd:=
-       dev-libs/miniz:=
-       >=dev-util/glslang-1.3.231:=
-       x11-libs/libX11
-       x11-libs/libxcb:=
-       x11-libs/xcb-util-keysyms
-       virtual/opengl
-       pyside2? (
-               $(python_gen_cond_dep '
-                       dev-python/pyside2[${PYTHON_USEDEP}]
-               ')
-       )
-       qt5? (
-               ${PYTHON_DEPS}
-               dev-qt/qtcore:5
-               dev-qt/qtgui:5
-               dev-qt/qtnetwork:5[ssl]
-               dev-qt/qtsvg:5
-               dev-qt/qtwidgets:5
-               dev-qt/qtx11extras:5
-       )
-"
-DEPEND="${RDEPEND}"
-# qtcore provides qmake, which is required to build the qrenderdoc gui.
-BDEPEND="
-       x11-base/xorg-proto
-       virtual/pkgconfig
-       qt5? (
-               ${AUTOTOOLS_DEPEND}
-               ${PYTHON_DEPS}
-               dev-libs/libpcre
-               dev-qt/qtcore:5
-               sys-devel/bison
-       )
-       verify-sig? ( sec-keys/openpgp-keys-baldurkarlsson )
-"
-
-PATCHES=(
-       # The analytics seem very reasonable, and even without this patch
-       # they are NOT sent before the user accepts.  But default the
-       # selection to off, just in case.
-       "${FILESDIR}"/${PN}-1.18-analytics-off.patch
-
-       # Only search for PySide2 if pyside2 USE flag is set.
-       # Bug #833627
-       "${FILESDIR}"/${PN}-1.18-conditional-pyside.patch
-
-       # Pass CXXFLAGS and LDFLAGS through to qmake when qrenderdoc is
-       # built.
-       "${FILESDIR}"/${PN}-1.18-system-flags.patch
-
-       # Needed to prevent sandbox violations during build.
-       "${FILESDIR}"/${PN}-1.18-env-home.patch
-
-       "${FILESDIR}"/${PN}-1.22-r1-system-glslang.patch
-       "${FILESDIR}"/${PN}-1.18-system-compress.patch
-)
-
-DOCS=( util/LINUX_DIST_README )
-
-VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/baldurkarlsson.gpg
-
-pkg_setup() {
-       use qt5 && python-single-r1_pkg_setup
-}
-
-src_unpack() {
-       if use verify-sig; then
-          verify-sig_verify_detached "${DISTDIR}"/${P}.tar.gz{,.asc}
-       fi
-
-       # Do not unpack the swig sources here.  CMake will do that if
-       # required.
-       unpack ${P}.tar.gz
-}
-
-src_prepare() {
-       cmake_src_prepare
-
-       # Ensure that we use the system glslang headers instead of the
-       # vendored copy.
-       rm -r renderdoc/3rdparty/glslang || die 'rm vendored glslang failed'
-
-       # Remove the calls to install the documentation files.  Instead,
-       # install them with einstalldocs.
-       sed -i '/share\/doc\/renderdoc/d' \
-               "${S}"/CMakeLists.txt "${S}"/qrenderdoc/CMakeLists.txt \
-               || die 'sed remove doc install failed'
-
-       # Assumes that the build directory is "${S}"/build, which it is not.
-       sed -i "s|../build/lib|${BUILD_DIR}/lib|" \
-               "${S}"/docs/conf.py \
-               || die 'sed patch doc sys.path failed'
-
-       # Bug #836235
-       sed -i '/#include <stdarg/i #include <time.h>' \
-               "${S}"/renderdoc/os/os_specific.h \
-               || die 'sed include time.h failed'
-}
-
-src_configure() {
-       local mycmakeargs=(
-               # Build system does not know that this is a tagged release, as
-               # we just have the tarball and not the git repository.
-               -DBUILD_VERSION_STABLE=ON
-
-               -DENABLE_EGL=ON
-               -DENABLE_GL=ON
-               -DENABLE_GLES=ON
-               -DENABLE_PYRENDERDOC=$(usex qt5)
-               -DENABLE_QRENDERDOC=$(usex qt5)
-               -DENABLE_VULKAN=ON
-
-               # Upstream says that this option is unsupported and should not
-               # be used yet.
-               -DENABLE_WAYLAND=OFF
-
-               -DENABLE_XCB=ON
-               -DENABLE_XLIB=ON
-
-               # Path to glslang*.cmake.
-               -DGLSLANG_TARGET_DIR="${ESYSROOT}"/usr/$(get_libdir)/cmake
-
-               # renderdoc_capture.json is installed here
-               -DVULKAN_LAYER_FOLDER="${EPREFIX}"/etc/vulkan/implicit_layer.d
-       )
-
-       use qt5 && mycmakeargs+=(
-               -DPython3_EXECUTABLE="${PYTHON}"
-               -DRENDERDOC_SWIG_PACKAGE="${DISTDIR}"/${MY_SWIG}.tar.gz
-
-               # Needed after qtchooser removal, bug #836474.
-               -DQMAKE_QT5_COMMAND="$(qt5_get_bindir)"/qmake
-
-               -DQRENDERDOC_ENABLE_PYSIDE2=$(usex pyside2)
-       )
-
-       use pyside2 && mycmakeargs+=( -DPYTHON_CONFIG_SUFFIX=-${EPYTHON} )
-
-       # Lots of type mismatch issues.
-       filter-lto
-
-       cmake_src_configure
-}
-
-src_compile() {
-       cmake_src_compile
-       docs_compile
-}
-
-pkg_postinst() {
-       xdg_pkg_postinst
-       optfeature "android remote contexts" dev-util/android-tools
-       optfeature "vulkan contexts" media-libs/vulkan-loader
-}

diff --git a/media-gfx/renderdoc/renderdoc-1.22.ebuild 
b/media-gfx/renderdoc/renderdoc-1.22.ebuild
deleted file mode 100644
index 47381cf87597..000000000000
--- a/media-gfx/renderdoc/renderdoc-1.22.ebuild
+++ /dev/null
@@ -1,203 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-# The swig fork is required for compatibility with both provided and
-# 3rd-party Python scripts.  Required patch was sent to upstream in
-# 2014: https://github.com/swig/swig/pull/251
-MY_SWIG_VER=7
-MY_SWIG=swig-${PN}-${MY_SWIG_VER}
-
-AUTOTOOLS_AUTO_DEPEND="no"
-DOCS_BUILDER="sphinx"
-DOCS_DIR="docs"
-# For Python 3.11, see https://github.com/baldurk/renderdoc/issues/2730
-PYTHON_COMPAT=( python3_{9,10} )
-inherit autotools cmake flag-o-matic optfeature python-single-r1 docs 
qmake-utils verify-sig xdg
-
-DESCRIPTION="A stand-alone graphics debugging tool"
-HOMEPAGE="https://renderdoc.org https://github.com/baldurk/renderdoc";
-SRC_URI="
-       https://github.com/baldurk/${PN}/archive/refs/tags/v${PV}.tar.gz -> 
${P}.tar.gz
-       qt5? ( 
https://github.com/baldurk/swig/archive/${PN}-modified-${MY_SWIG_VER}.tar.gz -> 
${MY_SWIG}.tar.gz )
-       verify-sig? ( 
https://github.com/baldurk/renderdoc/releases/download/v${PV}/v${PV}.tar.gz.asc 
-> ${P}.tar.gz.asc )
-"
-
-# renderdoc: MIT
-#   + cmdline: BSD (not compatible with upstream lib)
-#   + farm fresh icons: CC-BY-3.0
-#   + half: MIT (not compatible with system dev-libs/half)
-#   + include-bin ZLIB (upstream doesn't exist anymore, maintained in tree)
-#   + md5: public-domain
-#   + plthook: BSD-2
-#   + pugixml: MIT
-#   + radeon gpu analyzer: MIT
-#   + source code pro: OFL-1.1
-#   + stb: public-domain
-#   + tinyfiledialogs: ZLIB
-#   + docs? ( sphinx.paramlinks: MIT )
-# swig: GPL-3+ BSD BSD-2
-LICENSE="BSD BSD-2 CC-BY-3.0 GPL-3+ MIT OFL-1.1 public-domain ZLIB"
-SLOT="0"
-KEYWORDS="amd64"
-IUSE="pyside2 qt5"
-REQUIRED_USE="doc? ( qt5 ) pyside2? ( qt5 ) qt5? ( ${PYTHON_REQUIRED_USE} )"
-
-RDEPEND="
-       app-arch/lz4:=
-       app-arch/zstd:=
-       dev-libs/miniz:=
-       dev-util/glslang
-       x11-libs/libX11
-       x11-libs/libxcb:=
-       x11-libs/xcb-util-keysyms
-       virtual/opengl
-       pyside2? (
-               $(python_gen_cond_dep '
-                       dev-python/pyside2[${PYTHON_USEDEP}]
-               ')
-       )
-       qt5? (
-               ${PYTHON_DEPS}
-               dev-qt/qtcore:5
-               dev-qt/qtgui:5
-               dev-qt/qtnetwork:5[ssl]
-               dev-qt/qtsvg:5
-               dev-qt/qtwidgets:5
-               dev-qt/qtx11extras:5
-       )
-"
-DEPEND="${RDEPEND}"
-# qtcore provides qmake, which is required to build the qrenderdoc gui.
-BDEPEND="
-       x11-base/xorg-proto
-       virtual/pkgconfig
-       qt5? (
-               ${AUTOTOOLS_DEPEND}
-               ${PYTHON_DEPS}
-               dev-libs/libpcre
-               dev-qt/qtcore:5
-               sys-devel/bison
-       )
-       verify-sig? ( sec-keys/openpgp-keys-baldurkarlsson )
-"
-
-PATCHES=(
-       # The analytics seem very reasonable, and even without this patch
-       # they are NOT sent before the user accepts.  But default the
-       # selection to off, just in case.
-       "${FILESDIR}"/${PN}-1.18-analytics-off.patch
-
-       # Only search for PySide2 if pyside2 USE flag is set.
-       # Bug #833627
-       "${FILESDIR}"/${PN}-1.18-conditional-pyside.patch
-
-       # Pass CXXFLAGS and LDFLAGS through to qmake when qrenderdoc is
-       # built.
-       "${FILESDIR}"/${PN}-1.18-system-flags.patch
-
-       # Needed to prevent sandbox violations during build.
-       "${FILESDIR}"/${PN}-1.18-env-home.patch
-
-       "${FILESDIR}"/${PN}-1.20-system-glslang.patch
-       "${FILESDIR}"/${PN}-1.18-system-compress.patch
-)
-
-DOCS=( util/LINUX_DIST_README )
-
-VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/baldurkarlsson.gpg
-
-pkg_setup() {
-       use qt5 && python-single-r1_pkg_setup
-}
-
-src_unpack() {
-       if use verify-sig; then
-          verify-sig_verify_detached "${DISTDIR}"/${P}.tar.gz{,.asc}
-       fi
-
-       # Do not unpack the swig sources here.  CMake will do that if
-       # required.
-       unpack ${P}.tar.gz
-}
-
-src_prepare() {
-       cmake_src_prepare
-
-       # Ensure that we use the system glslang headers instead of the
-       # vendored copy.
-       rm -r renderdoc/3rdparty/glslang || die 'rm vendored glslang failed'
-
-       # Remove the calls to install the documentation files.  Instead,
-       # install them with einstalldocs.
-       sed -i '/share\/doc\/renderdoc/d' \
-               "${S}"/CMakeLists.txt "${S}"/qrenderdoc/CMakeLists.txt \
-               || die 'sed remove doc install failed'
-
-       # Assumes that the build directory is "${S}"/build, which it is not.
-       sed -i "s|../build/lib|${BUILD_DIR}/lib|" \
-               "${S}"/docs/conf.py \
-               || die 'sed patch doc sys.path failed'
-
-       # Bug #836235
-       sed -i '/#include <stdarg/i #include <time.h>' \
-               "${S}"/renderdoc/os/os_specific.h \
-               || die 'sed include time.h failed'
-}
-
-src_configure() {
-       local mycmakeargs=(
-               # Build system does not know that this is a tagged release, as
-               # we just have the tarball and not the git repository.
-               -DBUILD_VERSION_STABLE=ON
-
-               -DENABLE_EGL=ON
-               -DENABLE_GL=ON
-               -DENABLE_GLES=ON
-               -DENABLE_PYRENDERDOC=$(usex qt5)
-               -DENABLE_QRENDERDOC=$(usex qt5)
-               -DENABLE_VULKAN=ON
-
-               # Upstream says that this option is unsupported and should not
-               # be used yet.
-               -DENABLE_WAYLAND=OFF
-
-               -DENABLE_XCB=ON
-               -DENABLE_XLIB=ON
-
-               # Path to glslang*.cmake.
-               -DGLSLANG_TARGET_DIR="${ESYSROOT}"/usr/$(get_libdir)/cmake
-
-               # renderdoc_capture.json is installed here
-               -DVULKAN_LAYER_FOLDER="${EPREFIX}"/etc/vulkan/implicit_layer.d
-       )
-
-       use qt5 && mycmakeargs+=(
-               -DPython3_EXECUTABLE="${PYTHON}"
-               -DRENDERDOC_SWIG_PACKAGE="${DISTDIR}"/${MY_SWIG}.tar.gz
-
-               # Needed after qtchooser removal, bug #836474.
-               -DQMAKE_QT5_COMMAND="$(qt5_get_bindir)"/qmake
-
-               -DQRENDERDOC_ENABLE_PYSIDE2=$(usex pyside2)
-       )
-
-       use pyside2 && mycmakeargs+=( -DPYTHON_CONFIG_SUFFIX=-${EPYTHON} )
-
-       # Lots of type mismatch issues.
-       filter-lto
-
-       cmake_src_configure
-}
-
-src_compile() {
-       cmake_src_compile
-       docs_compile
-}
-
-pkg_postinst() {
-       xdg_pkg_postinst
-       optfeature "android remote contexts" dev-util/android-tools
-       optfeature "vulkan contexts" media-libs/vulkan-loader
-}

Reply via email to