diff options
author | Matt Turner <mattst88@gentoo.org> | 2014-12-07 19:26:06 +0000 |
---|---|---|
committer | Matt Turner <mattst88@gentoo.org> | 2014-12-07 19:26:06 +0000 |
commit | 3a0181859a83ac6cfff1d5559beadcc4e7681b67 (patch) | |
tree | d21967d4f5a30d8d7d0f840819c2705ca830caaa /dev-util | |
parent | dev-python/pandas: Fix variable naming (diff) | |
download | gentoo-2-3a0181859a83ac6cfff1d5559beadcc4e7681b67.tar.gz gentoo-2-3a0181859a83ac6cfff1d5559beadcc4e7681b67.tar.bz2 gentoo-2-3a0181859a83ac6cfff1d5559beadcc4e7681b67.zip |
Version bump to 5.0, bug 523718.
(Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key 974CA72A)
Diffstat (limited to 'dev-util')
-rw-r--r-- | dev-util/apitrace/ChangeLog | 9 | ||||
-rw-r--r-- | dev-util/apitrace/apitrace-5.0.ebuild | 91 | ||||
-rw-r--r-- | dev-util/apitrace/files/apitrace-5.0-disable-multiarch.patch | 34 | ||||
-rw-r--r-- | dev-util/apitrace/files/apitrace-5.0-glxtrace-only.patch | 53 |
4 files changed, 186 insertions, 1 deletions
diff --git a/dev-util/apitrace/ChangeLog b/dev-util/apitrace/ChangeLog index c6ead4c571a9..4ac2299c1736 100644 --- a/dev-util/apitrace/ChangeLog +++ b/dev-util/apitrace/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for dev-util/apitrace # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/apitrace/ChangeLog,v 1.23 2014/11/30 17:20:09 radhermit Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/apitrace/ChangeLog,v 1.24 2014/12/07 19:26:06 mattst88 Exp $ + +*apitrace-5.0 (07 Dec 2014) + + 07 Dec 2014; Matt Turner <mattst88@gentoo.org> +apitrace-5.0.ebuild, + +files/apitrace-5.0-disable-multiarch.patch, + +files/apitrace-5.0-glxtrace-only.patch: + Version bump to 5.0, bug 523718. 30 Nov 2014; Tim Harder <radhermit@gentoo.org> -apitrace-3.0-r1.ebuild, -apitrace-3.0-r2.ebuild, -files/apitrace-3.0-gcc47.patch, diff --git a/dev-util/apitrace/apitrace-5.0.ebuild b/dev-util/apitrace/apitrace-5.0.ebuild new file mode 100644 index 000000000000..aca3e4cba75e --- /dev/null +++ b/dev-util/apitrace/apitrace-5.0.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/apitrace/apitrace-5.0.ebuild,v 1.1 2014/12/07 19:26:06 mattst88 Exp $ + +EAPI="5" +PYTHON_COMPAT=( python2_7 ) + +inherit cmake-multilib eutils python-single-r1 vcs-snapshot + +DESCRIPTION="A tool for tracing, analyzing, and debugging graphics APIs" +HOMEPAGE="https://github.com/apitrace/apitrace" +SRC_URI="https://github.com/${PN}/${PN}/tarball/${PV} -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="+cli egl qt4" + +RDEPEND="${PYTHON_DEPS} + >=app-arch/snappy-1.1.1[${MULTILIB_USEDEP}] + >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] + >=media-libs/mesa-9.1.6[egl?,${MULTILIB_USEDEP}] + egl? ( || ( + >=media-libs/mesa-8.0[gles1,gles2] + <media-libs/mesa-8.0[gles] + ) ) + media-libs/libpng:0= + sys-process/procps + x11-libs/libX11 + qt4? ( + >=dev-qt/qtcore-4.7:4 + >=dev-qt/qtgui-4.7:4 + >=dev-qt/qtwebkit-4.7:4 + >=dev-libs/qjson-0.5 + )" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}"/${PN}-4.0-system-libs.patch + "${FILESDIR}"/${P}-glxtrace-only.patch + "${FILESDIR}"/${P}-disable-multiarch.patch +) + +src_prepare() { + enable_cmake-utils_src_prepare + + # The apitrace code grubs around in the internal zlib structures. + # We have to extract this header and clean it up to keep that working. + # Do not be surprised if a zlib upgrade breaks things ... + sed -r \ + -e 's:OF[(]([^)]*)[)]:\1:' \ + thirdparty/zlib/gzguts.h > gzguts.h + rm -rf "${S}"/thirdparty/{getopt,less,libpng,snappy,zlib} +} + +src_configure() { + my_configure() { + mycmakeargs=( + -DARCH_SUBDIR= + $(cmake-utils_use_enable egl EGL) + ) + if multilib_is_native_abi ; then + mycmakeargs+=( + $(cmake-utils_use_enable cli CLI) + $(cmake-utils_use_enable qt4 GUI) + ) + else + mycmakeargs+=( + -DBUILD_LIB_ONLY=ON + -DENABLE_CLI=OFF + -DENABLE_GUI=OFF + ) + fi + cmake-utils_src_configure + } + + multilib_parallel_foreach_abi my_configure +} + +src_install() { + cmake-multilib_src_install + + dosym glxtrace.so /usr/$(get_libdir)/${PN}/wrappers/libGL.so + dosym glxtrace.so /usr/$(get_libdir)/${PN}/wrappers/libGL.so.1 + dosym glxtrace.so /usr/$(get_libdir)/${PN}/wrappers/libGL.so.1.2 + + dodoc {BUGS,DEVELOPMENT,NEWS,README,TODO}.markdown + + exeinto /usr/$(get_libdir)/${PN}/scripts + doexe $(find scripts -type f -executable) +} diff --git a/dev-util/apitrace/files/apitrace-5.0-disable-multiarch.patch b/dev-util/apitrace/files/apitrace-5.0-disable-multiarch.patch new file mode 100644 index 000000000000..aac018e65817 --- /dev/null +++ b/dev-util/apitrace/files/apitrace-5.0-disable-multiarch.patch @@ -0,0 +1,34 @@ +respect the libdir cmake already set up for us instead of using the multiarch crap + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 17f3dce..c3fe52e 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -216,12 +216,6 @@ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) + # Installation directories + + if (${CMAKE_SYSTEM_NAME} MATCHES "Linux") +- # Debian multiarch support +- execute_process(COMMAND dpkg-architecture -qDEB_HOST_MULTIARCH +- OUTPUT_VARIABLE ARCH_SUBDIR +- ERROR_QUIET +- OUTPUT_STRIP_TRAILING_WHITESPACE +- ) + CHECK_INCLUDE_FILES(proc/readproc.h READPROC_H_FOUND) + if (READPROC_H_FOUND) + add_definitions (-DHAVE_READPROC_H) +@@ -237,11 +231,11 @@ if (WIN32 OR APPLE) + set (LIB_ARCH_INSTALL_DIR lib) + else () + set (DOC_INSTALL_DIR share/doc/${CMAKE_PROJECT_NAME}) +- set (LIB_INSTALL_DIR lib${LIB_SUFFIX}/${CMAKE_PROJECT_NAME}) ++ set (LIB_INSTALL_DIR ${CMAKE_INSTALL_LIBDIR}/${CMAKE_PROJECT_NAME}) + if (ARCH_SUBDIR) +- set (LIB_ARCH_INSTALL_DIR lib/${ARCH_SUBDIR}/${CMAKE_PROJECT_NAME}) ++ set (LIB_ARCH_INSTALL_DIR ${CMAKE_INSTALL_LIBDIR}/${ARCH_SUBDIR}/${CMAKE_PROJECT_NAME}) + else () +- set (LIB_ARCH_INSTALL_DIR lib${LIB_SUFFIX}/${CMAKE_PROJECT_NAME}) ++ set (LIB_ARCH_INSTALL_DIR ${LIB_INSTALL_DIR}) + endif () + endif () + diff --git a/dev-util/apitrace/files/apitrace-5.0-glxtrace-only.patch b/dev-util/apitrace/files/apitrace-5.0-glxtrace-only.patch new file mode 100644 index 000000000000..03e6143afff0 --- /dev/null +++ b/dev-util/apitrace/files/apitrace-5.0-glxtrace-only.patch @@ -0,0 +1,53 @@ +Allow building of just glxtrace library for ebuilds without GUI tools. + +Updated from 4.0 version of patch to apply against 5.0. + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 17f3dce..3bba2a9 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -33,6 +33,7 @@ set (ENABLE_EGL true CACHE BOOL "Enable EGL support.") + + set (ENABLE_WAFFLE false CACHE BOOL "Enable WAFFLE support.") + ++option (BUILD_LIB_ONLY "Build the glxtrace library only" OFF) + + ############################################################################## + # Find dependencies +@@ -301,6 +302,8 @@ set (MD5_LIBRARIES md5_bundled) + # - The packaged versions QJson are very old, and do not support NaN/Infinity. + # - To make it easier to build the GUI on Windows and MacOSX, as there are no + # binaries at all. ++if (NOT BUILD_LIB_ONLY) ++ + if (QT4_FOUND) + add_definitions (-DQJSON_EXPORT=) + add_subdirectory (thirdparty/qjson) +@@ -310,6 +313,8 @@ if (QT4_FOUND) + set (QJSON_FOUND TRUE) + endif () + ++endif (NOT BUILD_LIB_ONLY) ++ + # We use bundled headers for all Khronos APIs, to guarantee support for both + # OpenGL and OpenGL ES at build time, because the OpenGL and OpenGL ES 1 APIs + # are so intertwined that conditional compilation extremely difficult. This +diff --git a/retrace/CMakeLists.txt b/retrace/CMakeLists.txt +index 4e37979..2607ddf 100644 +--- a/retrace/CMakeLists.txt ++++ b/retrace/CMakeLists.txt +@@ -11,6 +11,8 @@ include_directories ( + + add_definitions (-DRETRACE) + ++if (NOT BUILD_LIB_ONLY) ++ + add_custom_command ( + OUTPUT glretrace_gl.cpp + COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/glretrace.py > ${CMAKE_CURRENT_BINARY_DIR}/glretrace_gl.cpp +@@ -282,3 +284,5 @@ if (WIN32) + + install (TARGETS d3dretrace RUNTIME DESTINATION bin) + endif () ++ ++endif (NOT BUILD_LIB_ONLY) |