Created
February 3, 2020 06:35
-
-
Save brothermechanic/71b148bdf6a765c2bf59053441270408 to your computer and use it in GitHub Desktop.
renderdoc-1.6.ebuild
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 1999-2019 Gentoo Authors | |
# Distributed under the terms of the GNU General Public License v2 | |
EAPI="6" | |
PYTHON_COMPAT=( python3_7 ) | |
inherit distutils-r1 | |
SWIG_VERSION="7" | |
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" | |
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" | |
RDEPEND="${PYTHON_DEPS} | |
dev-libs/libpcre | |
x11-libs/libX11 | |
x11-libs/libxcb | |
x11-libs/xcb-util-keysyms | |
python? ( | |
${PYTHON_DEPS} | |
dev-python/pyside2[${PYTHON_USEDEP}] | |
) | |
qt5? ( | |
>=dev-qt/qtcore-5.6:5 | |
>=dev-qt/qtgui-5.6:5 | |
>=dev-qt/qtwidgets-5.6:5 | |
>=dev-qt/qtsvg-5.6:5 | |
>=dev-qt/qtx11extras-5.6:5 | |
)" | |
DEPEND="${RDEPEND} | |
>=sys-devel/gcc-6.0:* | |
dev-util/cmake | |
sys-devel/bison | |
app-arch/unzip" | |
pkg_setup() { | |
use python && python-single-r1_pkg_setup | |
} | |
src_configure() { | |
local myprefix="${EPREFIX}/usr/" | |
local mycmakeargs=( | |
-DRENDERDOC_SWIG_PACKAGE="${DISTDIR}/${SWIG_ZIP_FILENAME}" | |
-DENABLE_QRENDERDOC=ON | |
-DENABLE_PYRENDERDOC=ON | |
-DPYSIDE2_PYTHON_PATH="$(python_get_sitedir)" | |
-DPYSIDE2_LIBRARY_DIR="/usr/lib64" | |
-DPYSIDE2_INCLUDE_DIR="/usr/include" | |
-DPYSIDE2_FOUND=1 | |
) | |
cmake-utils_src_configure | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment