summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2011-06-09 05:47:25 +0000
committerTim Harder <radhermit@gentoo.org>2011-06-09 05:47:25 +0000
commit964a22c1e8cc7c24c817b8a1a91cbbfb99399947 (patch)
tree7992497c84f008559ab603ba355fa18170f04214 /dev-util/apitrace
parentDrop atheme-services-0.2.2 and atheme-services-1.2.1 which are ancient and af... (diff)
downloadgentoo-2-964a22c1e8cc7c24c817b8a1a91cbbfb99399947.tar.gz
gentoo-2-964a22c1e8cc7c24c817b8a1a91cbbfb99399947.tar.bz2
gentoo-2-964a22c1e8cc7c24c817b8a1a91cbbfb99399947.zip
Initial import.
(Portage version: 2.2.0_alpha38/cvs/Linux x86_64)
Diffstat (limited to 'dev-util/apitrace')
-rw-r--r--dev-util/apitrace/ChangeLog10
-rw-r--r--dev-util/apitrace/apitrace-1.0.ebuild61
-rw-r--r--dev-util/apitrace/files/apitrace-1.0-automagic-qt.patch26
-rw-r--r--dev-util/apitrace/metadata.xml9
4 files changed, 106 insertions, 0 deletions
diff --git a/dev-util/apitrace/ChangeLog b/dev-util/apitrace/ChangeLog
new file mode 100644
index 000000000000..58b973f02ca2
--- /dev/null
+++ b/dev-util/apitrace/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for dev-util/apitrace
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/apitrace/ChangeLog,v 1.1 2011/06/09 05:47:25 radhermit Exp $
+
+*apitrace-1.0 (09 Jun 2011)
+
+ 09 Jun 2011; Tim Harder <radhermit@gentoo.org> +apitrace-1.0.ebuild,
+ +files/apitrace-1.0-automagic-qt.patch, +metadata.xml:
+ Initial import.
+
diff --git a/dev-util/apitrace/apitrace-1.0.ebuild b/dev-util/apitrace/apitrace-1.0.ebuild
new file mode 100644
index 000000000000..efc46b3cfed4
--- /dev/null
+++ b/dev-util/apitrace/apitrace-1.0.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/apitrace/apitrace-1.0.ebuild,v 1.1 2011/06/09 05:47:25 radhermit Exp $
+
+EAPI=3
+
+inherit cmake-utils eutils python
+
+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 ~x86"
+IUSE="qt4"
+
+RDEPEND="media-libs/libpng
+ sys-libs/zlib
+ virtual/opengl
+ x11-libs/libX11
+ qt4? (
+ >=x11-libs/qt-core-4.7:4
+ >=x11-libs/qt-gui-4.7:4
+ >=x11-libs/qt-webkit-4.7:4
+ >=dev-libs/qjson-0.5
+ )"
+DEPEND="${RDEPEND}
+ || ( dev-lang/python:2.7 dev-lang/python:2.6 )"
+
+pkg_setup() {
+ python_set_active_version 2
+}
+
+src_unpack() {
+ unpack ${A}
+ mv *-${PN}-* "${S}"
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-automagic-qt.patch
+}
+
+src_configure() {
+ mycmakeargs=(
+ $(cmake-utils_use_enable qt4 GUI)
+ )
+
+ cmake-utils_src_configure
+}
+
+src_install() {
+ dobin "${CMAKE_BUILD_DIR}"/{glretrace,tracedump} || die
+ use qt4 && { dobin "${CMAKE_BUILD_DIR}"/qapitrace || die ; }
+ dolib.so "${CMAKE_BUILD_DIR}"/glxtrace.so || die
+
+ dodoc README TODO || die
+
+ exeinto /usr/share/${PN}/scripts
+ doexe scripts/* || die
+}
diff --git a/dev-util/apitrace/files/apitrace-1.0-automagic-qt.patch b/dev-util/apitrace/files/apitrace-1.0-automagic-qt.patch
new file mode 100644
index 000000000000..038a2c0177be
--- /dev/null
+++ b/dev-util/apitrace/files/apitrace-1.0-automagic-qt.patch
@@ -0,0 +1,26 @@
+--- apitrace-apitrace-5f03103/CMakeLists.txt.orig
++++ apitrace-apitrace-5f03103/CMakeLists.txt
+@@ -18,8 +18,12 @@
+
+ find_package (PythonInterp REQUIRED)
+ find_package (OpenGL REQUIRED)
+-find_package (Qt4 4.7 COMPONENTS QtCore QtGui QtWebKit)
+-find_package (QJSON)
++
++option (ENABLE_GUI "Build the QT-based GUI." ON)
++if (ENABLE_GUI)
++ find_package (Qt4 4.7 COMPONENTS QtCore QtGui QtWebKit)
++ find_package (QJSON)
++endif (ENABLE_GUI)
+
+ if (NOT WIN32)
+ # Always use the bundled zlib and libpng sources on Windows to make it easy
+@@ -283,6 +287,6 @@
+ target_link_libraries (glretrace ${X11_LIBRARIES})
+ endif (NOT WIN32)
+
+-if (QT4_FOUND AND QJSON_FOUND)
++if (ENABLE_GUI)
+ add_subdirectory(gui)
+-endif (QT4_FOUND AND QJSON_FOUND)
++endif (ENABLE_GUI)
diff --git a/dev-util/apitrace/metadata.xml b/dev-util/apitrace/metadata.xml
new file mode 100644
index 000000000000..0ce86a2b9b52
--- /dev/null
+++ b/dev-util/apitrace/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>no-herd</herd>
+ <maintainer>
+ <email>radhermit@gentoo.org</email>
+ <name>Tim Harder</name>
+ </maintainer>
+</pkgmetadata>