summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Asplund <peter.azp@gmail.com>2023-02-26 15:26:44 +0100
committerPeter Asplund <peter.azp@gmail.com>2023-02-26 15:26:44 +0100
commitd9095175e7ec22db7c28125b9d9e0dbd2da49c13 (patch)
tree344c7c5d8ddc39d8b8a527a6ed9fb1286bd3fabb /dev-util/renderdoc/renderdoc-9999.ebuild
parentgui-apps/waybar: (diff)
downloadAzP-d9095175e7ec22db7c28125b9d9e0dbd2da49c13.tar.gz
AzP-d9095175e7ec22db7c28125b9d9e0dbd2da49c13.tar.bz2
AzP-d9095175e7ec22db7c28125b9d9e0dbd2da49c13.zip
dev-util/renderdoc:
Update PythonCompat, bump v1.25, update 9999 ebuild and remove old versions. Signed-off-by: Peter Asplund <peter.azp@gmail.com>
Diffstat (limited to 'dev-util/renderdoc/renderdoc-9999.ebuild')
-rw-r--r--dev-util/renderdoc/renderdoc-9999.ebuild43
1 files changed, 33 insertions, 10 deletions
diff --git a/dev-util/renderdoc/renderdoc-9999.ebuild b/dev-util/renderdoc/renderdoc-9999.ebuild
index 4bdd3bf..2f84ba1 100644
--- a/dev-util/renderdoc/renderdoc-9999.ebuild
+++ b/dev-util/renderdoc/renderdoc-9999.ebuild
@@ -1,28 +1,31 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
-PYTHON_COMPAT=( python3_6 python3_7 python3_8 )
-inherit qmake-utils cmake eutils python-single-r1 git-r3
+PYTHON_COMPAT=( python3_{9,10,11} )
+inherit xdg-utils cmake python-single-r1 git-r3
SWIG_VERSION="7"
-SWIG_ZIP_FILENAME="${PN}_swig_modified-${SWIG_VERSION}.zip"
+SWIG_ZIP_FILENAME="${PN}_swig_modified-${SWIG_VERSION}.tar.gz"
DESCRIPTION="A tool for tracing, analyzing, and debugging graphics APIs"
HOMEPAGE="https://github.com/baldurk/renderdoc"
EGIT_REPO_URI="https://github.com/baldurk/renderdoc.git"
EGIT_BRANCH="v1.x"
CMAKE_BUILD_TYPE="Release"
+CMAKE_BUILD_GENERATOR="Ninja"
LICENSE="MIT"
SLOT="0"
-KEYWORDS="~amd64 ~arm ~x86"
-IUSE="+qt5 +python"
+IUSE="+qt5 +python +egl +opengl +gles2 +vulkan +doc wayland +xcb"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RDEPEND="${PYTHON_DEPS}
dev-libs/libpcre
x11-libs/libX11
- x11-libs/libxcb
- x11-libs/xcb-util-keysyms
+ xcb? (
+ x11-libs/libxcb
+ x11-libs/xcb-util-keysyms
+ )
python? (
${PYTHON_DEPS}
)
@@ -36,14 +39,34 @@ RDEPEND="${PYTHON_DEPS}
DEPEND="${RDEPEND}
>=sys-devel/gcc-6.0:*
dev-util/cmake
+ dev-util/ninja
sys-devel/bison
app-arch/unzip"
src_configure() {
- export QT_SELECT=qt5
- export QMAKE_QT5_COMMAND=qmake-qt5
local mycmakeargs=(
+ -DENABLE_EGL="$(usex egl)"
+ -DENABLE_GL="$(usex opengl)"
+ -DENABLE_GLES="$(usex gles2)"
+ -DENABLE_RENDERDOCCMD="$(usex doc)"
+ -DENABLE_VULKAN="$(usex vulkan)"
+ -DENABLE_WAYLAND="$(usex wayland)"
+ -DENABLE_XCB="$(usex xcb)"
+ -DBUILD_VERSION_STABLE=ON
+ -DQMAKE_QT5_COMMAND="qmake5"
-DRENDERDOC_SWIG_PACKAGE="${DISTDIR}/${SWIG_ZIP_FILENAME}"
)
cmake_src_configure
}
+
+pkg_postinst() {
+ xdg_desktop_database_update
+ xdg_icon_cache_update
+ xdg_mimeinfo_database_update
+}
+
+pkg_postrm() {
+ xdg_desktop_database_update
+ xdg_icon_cache_update
+ xdg_mimeinfo_database_update
+}