dev-util/renderdoc: add renderdoc-1.2

Imported the ebuild from https://bugs.gentoo.org/654260
This commit is contained in:
Danny Robson 2019-03-13 00:11:40 +11:00
parent a6ba56e092
commit 61382729a0
3 changed files with 83 additions and 0 deletions

View File

@ -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

View File

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>peterasplund@gentoo.se</email>
<name>AzP</name>
<description>Maintainer. Assign bugs to him.</description>
</maintainer>
<maintainer type="project">
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</name>
</maintainer>
<use>
<flag name="qt5">Build Qt5 based GUI</flag>
<flag name="python">Build with python support</flag>
</use>
<upstream>
<remote-id type="github">baldurk/renderdoc</remote-id>
</upstream>
</pkgmetadata>

View File

@ -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
}