From 61382729a0be6d822675722c63ba7a105715ac33 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Wed, 13 Mar 2019 00:11:40 +1100 Subject: [PATCH] dev-util/renderdoc: add renderdoc-1.2 Imported the ebuild from https://bugs.gentoo.org/654260 --- dev-util/renderdoc/Manifest | 2 + dev-util/renderdoc/metadata.xml | 20 ++++++++ dev-util/renderdoc/renderdoc-1.2.ebuild | 61 +++++++++++++++++++++++++ 3 files changed, 83 insertions(+) create mode 100644 dev-util/renderdoc/Manifest create mode 100644 dev-util/renderdoc/metadata.xml create mode 100644 dev-util/renderdoc/renderdoc-1.2.ebuild diff --git a/dev-util/renderdoc/Manifest b/dev-util/renderdoc/Manifest new file mode 100644 index 0000000..7d95254 --- /dev/null +++ b/dev-util/renderdoc/Manifest @@ -0,0 +1,2 @@ +DIST renderdoc-1.2.tar.gz 41147527 BLAKE2B 768fb7b722f7fc84bee5793fb23848d09f9710e47fa41e1c01576239326569d34832081cd4a5b8355e06df32ec0a7a8f144b757ed93ce7159f3c9b50fe666612 SHA512 98df7bd6b7fe9d488620027eab50b5e1be53644644969049ed5349d5337a946d2315363b148bc9fad6133c2690f7961070f732d9fedef33b9df5fd7f18ce439c +DIST renderdoc_swig_modified-6.zip 6015826 BLAKE2B 962ebf2e57147a2727ce2a85e1aed46f7443236e1e8af060861482d7006b1e0ba6107f939b9d29050ad980801a93c2588249854149494f64818dd4b29a6951de SHA512 380760fcd4ec6fe3f2571ac0ce84c8cbd60a413ee5b7679beed4a87dc78ca6a3eef5932d8198476e81bbb04d2b10bfacfb7b94c0508cfaeb358f4033c7b58376 diff --git a/dev-util/renderdoc/metadata.xml b/dev-util/renderdoc/metadata.xml new file mode 100644 index 0000000..4e2984c --- /dev/null +++ b/dev-util/renderdoc/metadata.xml @@ -0,0 +1,20 @@ + + + + + peterasplund@gentoo.se + AzP + Maintainer. Assign bugs to him. + + + proxy-maint@gentoo.org + Proxy Maintainers + + + Build Qt5 based GUI + Build with python support + + + baldurk/renderdoc + + diff --git a/dev-util/renderdoc/renderdoc-1.2.ebuild b/dev-util/renderdoc/renderdoc-1.2.ebuild new file mode 100644 index 0000000..d0a5023 --- /dev/null +++ b/dev-util/renderdoc/renderdoc-1.2.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" +PYTHON_COMPAT=( python3_6 ) +inherit qmake-utils cmake-utils eutils python-single-r1 + +SWIG_VERSION="6" +SWIG_ZIP_FILENAME="${PN}_swig_modified-${SWIG_VERSION}.zip" +DESCRIPTION="A tool for tracing, analyzing, and debugging graphics APIs" +HOMEPAGE="https://github.com/baldurk/renderdoc" +SRC_URI="https://github.com/baldurk/renderdoc/archive/v${PV}.tar.gz -> ${P}.tar.gz + qt5? ( https://github.com/baldurk/swig/archive/renderdoc-modified-${SWIG_VERSION}.zip -> ${SWIG_ZIP_FILENAME} )" +CMAKE_BUILD_TYPE="Release" +CMAKE_BUILD_GENERATOR="Ninja" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="+qt5 +python" + +RDEPEND="${PYTHON_DEPS} + dev-libs/libpcre + x11-libs/libX11 + x11-libs/libxcb + x11-libs/xcb-util-keysyms + python? ( + >=dev-lang/python-3.6:* + ) + qt5? ( + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtwidgets:5 + dev-qt/qtsvg:5 + dev-qt/qtx11extras:5 + )" +DEPEND="${RDEPEND} + >=sys-devel/gcc-6.0:* + dev-util/cmake + sys-devel/bison + app-arch/unzip" + +src_configure() { + export QT_SELECT=qt5 + local mycmakeargs=( + -DRENDERDOC_SWIG_PACKAGE="${DISTDIR}/${SWIG_ZIP_FILENAME}" + ) + cmake-utils_src_configure +} + +pkg_postinst() { + xdg_icon_cache_update + xdg_desktop_database_update + xdg_mimeinfo_database_update +} + +pkg_postrm() { + xdg_icon_cache_update + xdg_desktop_database_update + xdg_mimeinfo_database_update +}