diff options
author | Ben de Groot <yngwin@gentoo.org> | 2013-03-02 15:27:09 +0000 |
---|---|---|
committer | Ben de Groot <yngwin@gentoo.org> | 2013-03-02 15:27:09 +0000 |
commit | 09d42a4a8d1854582e785aae8fd86857db8a8f0f (patch) | |
tree | cf39b1829c493e80af8b100148a9424b6f39b2a7 /dev-qt/qtdemo | |
parent | Move to new dev-qt category (diff) | |
download | gentoo-2-09d42a4a8d1854582e785aae8fd86857db8a8f0f.tar.gz gentoo-2-09d42a4a8d1854582e785aae8fd86857db8a8f0f.tar.bz2 gentoo-2-09d42a4a8d1854582e785aae8fd86857db8a8f0f.zip |
Move to new dev-qt category
(Portage version: 2.2.0_alpha164/cvs/Linux x86_64, RepoMan options: --force, signed Manifest commit with key 0x2B2474AD43CE296E!)
Diffstat (limited to 'dev-qt/qtdemo')
-rw-r--r-- | dev-qt/qtdemo/ChangeLog | 400 | ||||
-rw-r--r-- | dev-qt/qtdemo/files/qtdemo-4.6-plugandpaint.patch | 13 | ||||
-rw-r--r-- | dev-qt/qtdemo/metadata.xml | 22 | ||||
-rw-r--r-- | dev-qt/qtdemo/qtdemo-4.8.4.ebuild | 114 |
4 files changed, 549 insertions, 0 deletions
diff --git a/dev-qt/qtdemo/ChangeLog b/dev-qt/qtdemo/ChangeLog new file mode 100644 index 000000000000..e47e0e4a04b8 --- /dev/null +++ b/dev-qt/qtdemo/ChangeLog @@ -0,0 +1,400 @@ +# ChangeLog for x11-libs/qt-demo +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-qt/qtdemo/ChangeLog,v 1.1 2013/03/02 15:27:09 yngwin Exp $ + + 31 Dec 2012; Davide Pesavento <pesa@gentoo.org> metadata.xml: + Cleanup metadata. + + 29 Dec 2012; Michael Palimaka <kensington@gentoo.org> -qt-demo-4.7.4.ebuild, + -qt-demo-4.8.1-r1.ebuild, -qt-demo-4.8.2.ebuild, -qt-demo-4.8.3.ebuild: + Remove old. + + 25 Dec 2012; Agostino Sarubbo <ago@gentoo.org> qt-demo-4.8.4.ebuild: + Stable for x86, wrt bug #445956 + + 25 Dec 2012; Agostino Sarubbo <ago@gentoo.org> qt-demo-4.8.4.ebuild: + Stable for ppc64, wrt bug #445956 + + 25 Dec 2012; Agostino Sarubbo <ago@gentoo.org> qt-demo-4.8.4.ebuild: + Stable for ppc, wrt bug #445956 + + 25 Dec 2012; Agostino Sarubbo <ago@gentoo.org> qt-demo-4.8.4.ebuild: + Stable for amd64, wrt bug #445956 + +*qt-demo-4.8.4 (05 Dec 2012) + + 05 Dec 2012; Ben de Groot <yngwin@gentoo.org> +qt-demo-4.8.4.ebuild: + Qt 4.8.4 version bump + + 16 Sep 2012; Ben de Groot <yngwin@gentoo.org> qt-demo-4.8.3.ebuild: + Add overlay changes (c++0x useflag) + +*qt-demo-4.8.3 (14 Sep 2012) + + 14 Sep 2012; Ben de Groot <yngwin@gentoo.org> +qt-demo-4.8.3.ebuild: + Version bump. Drop qatomic-x32 patch applied upstream. Drop qpa useflag. + + 15 Jul 2012; Agostino Sarubbo <ago@gentoo.org> qt-demo-4.8.2.ebuild: + Stable for x86, wrt bug #424625 + + 09 Jul 2012; Johannes Huber <johu@gentoo.org> -qt-demo-4.6.3.ebuild: + Drop Qt-4.6.3 + + 09 Jul 2012; Joseph Jezak <josejx@gentoo.org> qt-demo-4.8.2.ebuild: + Marked ppc/ppc64 for bug #424625. + + 06 Jul 2012; Michael Weber <xmw@gentoo.org> qt-demo-4.8.1-r1.ebuild: + ppc stable (bug 414241) + + 05 Jul 2012; Agostino Sarubbo <ago@gentoo.org> qt-demo-4.8.2.ebuild: + Stable for amd64, wrt bug #424625 + + 18 Jun 2012; Davide Pesavento <pesa@gentoo.org> metadata.xml: + Cleanup metadata and add upstream info. + + 18 Jun 2012; Davide Pesavento <pesa@gentoo.org> qt-demo-4.8.1-r1.ebuild, + qt-demo-4.8.2.ebuild: + USE=c++0x is gone from qt-webkit. + +*qt-demo-4.8.2 (22 May 2012) + + 22 May 2012; Davide Pesavento <pesa@gentoo.org> +qt-demo-4.8.2.ebuild: + Version bump. + + 20 May 2012; Agostino Sarubbo <ago@gentoo.org> qt-demo-4.8.1-r1.ebuild: + Stable for x86, wrt bug #414241 + + 15 May 2012; Davide Pesavento <pesa@gentoo.org> qt-demo-4.8.1-r1.ebuild: + x11-libs/qt-assistant is a hard dependency, because the qtdemo binary links + against QtHelp (bug 416065). + + 14 May 2012; Johannes Huber <johu@gentoo.org> -qt-demo-4.7.2.ebuild: + Drop Qt-4.7.2 + + 12 May 2012; Davide Pesavento <pesa@gentoo.org> qt-demo-4.8.1-r1.ebuild: + Sort deps. + + 08 May 2012; Markos Chandras <hwoarang@gentoo.org> qt-demo-4.8.1-r1.ebuild: + Stable on amd64 wrt bug #414241 + + 29 Apr 2012; Fabian Groffen <grobian@gentoo.org> qt-demo-4.8.1-r1.ebuild: + Marked ~x64-macos, pull in qt-assistant dep for OSX targets which need QtHelp + + 05 Apr 2012; Johannes Huber <johu@gentoo.org> -qt-demo-4.8.0.ebuild: + Drop Qt-4.8.0 + +*qt-demo-4.8.1-r1 (01 Apr 2012) + + 01 Apr 2012; Davide Pesavento <pesa@gentoo.org> +qt-demo-4.8.1-r1.ebuild, + -qt-demo-4.8.1.ebuild, metadata.xml: + Introduce some USE flags to control building of various examples and demos, + fixing also bug 410309. + +*qt-demo-4.8.1 (29 Mar 2012) + + 29 Mar 2012; Davide Pesavento <pesa@gentoo.org> +qt-demo-4.8.1.ebuild: + Version bump. + + 27 Mar 2012; Johannes Huber <johu@gentoo.org> -qt-demo-4.6.2.ebuild: + Drop Qt-4.6.2 + + 29 Jan 2012; Joseph Jezak <josejx@gentoo.org> qt-demo-4.7.4.ebuild: + Marked ppc ppc64 stable for bug #390963. + +*qt-demo-4.8.0 (29 Jan 2012) + + 29 Jan 2012; Alex Alexander <wired@gentoo.org> +qt-demo-4.8.0.ebuild, + metadata.xml: + version bump + + 27 Dec 2011; Markus Meier <maekke@gentoo.org> qt-demo-4.7.4.ebuild: + x86 stable, bug #390963 + + 20 Dec 2011; Agostino Sarubbo <ago@gentoo.org> qt-demo-4.7.4.ebuild: + Stable for AMD64, wrt bug #390963 + + 28 Nov 2011; Davide Pesavento <pesa@gentoo.org> + -files/qt-demo-4.5.0-fixes.patch, -qt-demo-4.7.3.ebuild: + Remove Qt 4.7.3 + + 26 Nov 2011; Robin H. Johnson <robbat2@gentoo.org> Manifest: + Bug 385719: upstream altered qt-everywhere-opensource-src-4.7.4.tar.gz, mass + fix for pesa. + + 14 Sep 2011; Alex Alexander <wired@gentoo.org> qt-demo-4.7.4.ebuild: + hard-disable openvg until we get qt-openvg in the tree. bug #382363 + +*qt-demo-4.7.4 (08 Sep 2011) + + 08 Sep 2011; Alex Alexander <wired@gentoo.org> +qt-demo-4.7.4.ebuild: + version bump, 4.7.4 + + 13 Jul 2011; Kacper Kowalik <xarthisius@gentoo.org> qt-demo-4.7.2.ebuild: + ppc64 stable wrt #354033 + + 01 Jun 2011; Brent Baude <ranger@gentoo.org> qt-demo-4.7.2.ebuild: + Marking qt-demo-4.7.2 ppc stable for bug 354033 + +*qt-demo-4.7.3 (10 May 2011) + + 10 May 2011; Theo Chatzimichos <tampakrap@gentoo.org> +qt-demo-4.7.3.ebuild: + Version bump Qt 4.7.3 + + 09 May 2011; Markos Chandras <hwoarang@gentoo.org> qt-demo-4.7.2.ebuild: + Stable on amd64 wrt bug #354033 + + 09 May 2011; Thomas Kahle <tomka@gentoo.org> qt-demo-4.7.2.ebuild: + x86 stable per bug 354033 + + 14 Apr 2011; Alex Alexander <wired@gentoo.org> qt-demo-4.7.2.ebuild: + added qt-declarative in DEPEND + + 13 Apr 2011; Alex Alexander <wired@gentoo.org> -qt-demo-4.7.0.ebuild, + -qt-demo-4.7.1.ebuild: + old version cleanup + + 26 Mar 2011; Andreas K. Huettel <dilfridge@gentoo.org> + qt-demo-4.6.2.ebuild, qt-demo-4.6.3.ebuild, qt-demo-4.7.0.ebuild, + qt-demo-4.7.1.ebuild, qt-demo-4.7.2.ebuild: + Adapt phonon dependency for package move + +*qt-demo-4.7.2 (01 Mar 2011) + + 01 Mar 2011; Theo Chatzimichos <tampakrap@gentoo.org> +qt-demo-4.7.2.ebuild: + Version bump Qt 4.7.2 + + 23 Dec 2010; Samuli Suominen <ssuominen@gentoo.org> qt-demo-4.6.3.ebuild: + ppc64 stable wrt #341703 + + 05 Dec 2010; Alex Alexander <wired@gentoo.org> -qt-demo-4.5.3.ebuild: + removed 4.5.3 + +*qt-demo-4.7.1 (09 Nov 2010) + + 09 Nov 2010; Alex Alexander <wired@gentoo.org> +qt-demo-4.7.1.ebuild: + version bump + + 06 Nov 2010; Alex Alexander <wired@gentoo.org> qt-demo-4.7.0.ebuild, + metadata.xml: + added qt3support useflag, fixes bug #342349 + + 05 Nov 2010; Jeroen Roovers <jer@gentoo.org> qt-demo-4.5.3.ebuild: + Needs qt-webkit, so dropping HPPA keywording (bug #239441). + + 01 Nov 2010; Samuli Suominen <ssuominen@gentoo.org> qt-demo-4.7.0.ebuild: + Keyword ~ppc64 wrt #338289. + + 22 Oct 2010; Christian Faulhammer <fauli@gentoo.org> qt-demo-4.6.3.ebuild: + stable x86, bug 341703 + + 20 Oct 2010; Brent Baude <ranger@gentoo.org> qt-demo-4.7.0.ebuild: + Marking qt-demo-4.7.0 ~ppc for bug 338289 + + 19 Oct 2010; Brent Baude <ranger@gentoo.org> qt-demo-4.6.3.ebuild: + Marking qt-demo-4.6.3 ppc stable for bug 341703 + + 19 Oct 2010; Markos Chandras <hwoarang@gentoo.org> qt-demo-4.6.3.ebuild: + Stable on amd64 wrt bug #341703 + + 26 Sep 2010; Samuli Suominen <ssuominen@gentoo.org> qt-demo-4.6.2.ebuild, + qt-demo-4.6.3.ebuild: + Restore dropped PPC64 keywording. + + 23 Sep 2010; Alex Alexander <wired@gentoo.org> qt-demo-4.7.0.ebuild: + EAPI 3, prefix, other improvements + +*qt-demo-4.7.0 (21 Sep 2010) + + 21 Sep 2010; Theo Chatzimichos <tampakrap@gentoo.org> + +qt-demo-4.7.0.ebuild: + Version bump + + 13 Sep 2010; Tobias Klausmann <klausman@gentoo.org> qt-demo-4.6.2.ebuild: + Stable on alpha, bug #297299 + + 24 Jun 2010; Markos Chandras <hwoarang@gentoo.org> -qt-demo-4.6.1.ebuild: + Drop Qt-4.6.1 + +*qt-demo-4.6.3 (08 Jun 2010) + + 08 Jun 2010; Markos Chandras <hwoarang@gentoo.org> +qt-demo-4.6.3.ebuild: + Version bump + + 18 Apr 2010; <nixnut@gentoo.org> qt-demo-4.6.2.ebuild: + ppc stable #297299 + + 03 Mar 2010; Christian Faulhammer <fauli@gentoo.org> qt-demo-4.6.2.ebuild: + stable x86, bug 297299 + + 01 Mar 2010; Samuli Suominen <ssuominen@gentoo.org> qt-demo-4.6.2.ebuild: + amd64 stable wrt #297299 + + 18 Feb 2010; Alex Alexander <wired@gentoo.org> metadata.xml: + added exceptions USE flag description + +*qt-demo-4.6.2 (15 Feb 2010) + + 15 Feb 2010; Dror Levin <spatz@gentoo.org> +qt-demo-4.6.2.ebuild: + Version bump. + + 09 Feb 2010; Dror Levin <spatz@gentoo.org> -qt-demo-4.6.0.ebuild: + Remove old. + + 22 Jan 2010; Ben de Groot <yngwin@gentoo.org> qt-demo-4.6.0.ebuild, + qt-demo-4.6.1.ebuild: + Restore kde useflag + + 20 Jan 2010; Ben de Groot <yngwin@gentoo.org> qt-demo-4.6.0.ebuild, + qt-demo-4.6.1.ebuild: + Drop solaris keywords as qt-multimedia has none + +*qt-demo-4.6.1 (19 Jan 2010) + + 19 Jan 2010; Ben de Groot <yngwin@gentoo.org> +qt-demo-4.6.1.ebuild: + Version bump + + 25 Dec 2009; Jonathan Callen <abcd@gentoo.org> qt-demo-4.6.0.ebuild: + Add prefix support + + 01 Dec 2009; Theo Chatzimichos <tampakrap@gentoo.org> + -qt-demo-4.6.0_rc1.ebuild: + Remove Qt 4.6.0 RC + +*qt-demo-4.6.0 (01 Dec 2009) + + 01 Dec 2009; Theo Chatzimichos <tampakrap@gentoo.org> + +qt-demo-4.6.0.ebuild: + Version Bump to 4.6.0 + +*qt-demo-4.6.0_rc1 (18 Nov 2009) + + 18 Nov 2009; Alex Alexander <wired@gentoo.org> + -qt-demo-4.6.0_beta1.ebuild, +qt-demo-4.6.0_rc1.ebuild: + added 4.6.0_rc1, removed 4.6.0_beta1 + + 11 Nov 2009; Ben de Groot <yngwin@gentoo.org> -qt-demo-4.4.2.ebuild, + -qt-demo-4.4.2-r1.ebuild, -qt-demo-4.5.1.ebuild, -qt-demo-4.5.2.ebuild: + Remove obsolete versions + + 11 Nov 2009; Jeroen Roovers <jer@gentoo.org> qt-demo-4.5.3.ebuild: + Stable for HPPA (bug #290922). + + 09 Nov 2009; Joseph Jezak <josejx@gentoo.org> qt-demo-4.5.3.ebuild: + Marked ppc/ppc64 stable for bug #290922. + + 31 Oct 2009; Markus Meier <maekke@gentoo.org> qt-demo-4.5.3.ebuild: + amd64 stable, bug #290922 + + 29 Oct 2009; Christian Faulhammer <fauli@gentoo.org> qt-demo-4.5.3.ebuild: + stable x86, bug 290922 + +*qt-demo-4.6.0_beta1 (16 Oct 2009) + + 16 Oct 2009; Alex Alexander <wired@gentoo.org> + +qt-demo-4.6.0_beta1.ebuild, +files/qt-demo-4.6-plugandpaint.patch: + added version 4.6.0_beta1 + + 09 Oct 2009; Markus Meier <maekke@gentoo.org> qt-demo-4.5.2.ebuild: + amd64/arm/x86 stable, bug #286653 + + 07 Oct 2009; nixnut <nixnut@gentoo.org> qt-demo-4.5.2.ebuild: + ppc stable #286653 + +*qt-demo-4.5.3 (04 Oct 2009) + + 04 Oct 2009; Alex Alexander <wired@gentoo.org> +qt-demo-4.5.3.ebuild: + version bump + + 18 Aug 2009; Jeroen Roovers <jer@gentoo.org> qt-demo-4.5.1.ebuild: + Stable for HPPA too. + + 04 Jul 2009; Markos Chandras <hwoarang@gentoo.org> qt-demo-4.5.2.ebuild: + Remove qt-qt3support dependency ( bug # 276131 ) + +*qt-demo-4.5.2 (27 Jun 2009) + + 27 Jun 2009; Ben de Groot <yngwin@gentoo.org> +qt-demo-4.5.2.ebuild: + Version bump + + 06 Jun 2009; Markus Meier <maekke@gentoo.org> qt-demo-4.5.1.ebuild: + amd64 stable, bug #266201 + + 03 Jun 2009; Ben de Groot <yngwin@gentoo.org> qt-demo-4.5.1.ebuild: + Add kde useflag, for selecting media-sound/phonon + + 02 Jun 2009; Christian Faulhammer <fauli@gentoo.org> qt-demo-4.5.1.ebuild: + stable x86, bug 266201 + + 14 May 2009; Ben de Groot <yngwin@gentoo.org> -qt-demo-4.5.0.ebuild: + Remove old + + 13 May 2009; Brent Baude <ranger@gentoo.org> qt-demo-4.5.1.ebuild: + Marking qt-demo-4.5.1 ppc stable for bug 266201 + +*qt-demo-4.5.1 (30 Apr 2009) + + 30 Apr 2009; Ben de Groot <yngwin@gentoo.org> +qt-demo-4.5.1.ebuild: + Version bump + + 01 Apr 2009; Joseph Jezak <josejx@gentoo.org> qt-demo-4.5.0.ebuild: + Marked ~ppc for bug #261313. + + 16 Mar 2009; Alexis Ballier <aballier@gentoo.org> qt-demo-4.5.0.ebuild: + keyword ~x86-fbsd + +*qt-demo-4.5.0 (05 Mar 2009) + + 05 Mar 2009; Markos Chandras <hwoarang@gentoo.org> + +files/qt-demo-4.5.0-fixes.patch, +qt-demo-4.5.0.ebuild: + Initial import of qt-demo-4.5.0 ( fixed bug #259113 ). Thanks to Alex Alexander ( + alex.alexander@gmail.com ) for the patch + + 18 Feb 2009; Jeroen Roovers <jer@gentoo.org> qt-demo-4.4.2.ebuild: + Stable for HPPA (bug #248083). + + 04 Feb 2009; Brent Baude <ranger@gentoo.org> qt-demo-4.4.2.ebuild: + Marking qt-demo-4.4.2 ppc64 stable for bug 248038 + +*qt-demo-4.4.2-r1 (01 Feb 2009) + + 01 Feb 2009; Ben de Groot <yngwin@gentoo.org> +qt-demo-4.4.2-r1.ebuild: + Offer choice between qt-phonon and media-sound/phonon. Fixes bug 254987. + + 18 Jan 2009; Markus Meier <maekke@gentoo.org> qt-demo-4.4.2.ebuild: + amd64/x86 stable, bug #248038 + + 17 Jan 2009; nixnut <nixnut@gentoo.org> qt-demo-4.4.2.ebuild: + ~ppc'd #248038 + + 06 Jan 2009; Ben de Groot <yngwin@gentoo.org> -qt-demo-4.4.0.ebuild, + -qt-demo-4.4.1.ebuild: + Clean out old ebuilds + +*qt-demo-4.4.2 (18 Sep 2008) + + 18 Sep 2008; Ben de Groot <yngwin@gentoo.org> +qt-demo-4.4.2.ebuild: + Version bump + +*qt-demo-4.4.1 (11 Aug 2008) + + 11 Aug 2008; Ben de Groot <yngwin@gentoo.org> +qt-demo-4.4.1.ebuild: + Version bump + + 24 Jul 2008; Raúl Porcel <armin76@gentoo.org> qt-demo-4.4.0.ebuild: + Re-add ~x86 wrt #224569 + + 18 Jul 2008; Jeroen Roovers <jer@gentoo.org> qt-demo-4.4.0.ebuild: + Apply LIBS fix by Bernd Steinhauser (bug #224569). Marked ~hppa (bug #223557). + + 13 Jun 2008; Ingmar Vanhassel <ingmar@gentoo.org> qt-demo-4.4.0.ebuild: + Make all split Qt4 ebuilds block the old monolithic ebuild. + + 25 May 2008; Markus Rothe <corsair@gentoo.org> qt-demo-4.4.0.ebuild: + Added ~ppc/~ppc64 + +*qt-demo-4.4.0 (25 May 2008) + + 25 May 2008; Ingmar Vanhassel <ingmar@gentoo.org> +metadata.xml, + +qt-demo-4.4.0.ebuild: + Import x11-libs/qt-demo, thanks to Bernd Steinhauser <berniyh@exherbo.org> + for the ebuild. diff --git a/dev-qt/qtdemo/files/qtdemo-4.6-plugandpaint.patch b/dev-qt/qtdemo/files/qtdemo-4.6-plugandpaint.patch new file mode 100644 index 000000000000..262996aa1068 --- /dev/null +++ b/dev-qt/qtdemo/files/qtdemo-4.6-plugandpaint.patch @@ -0,0 +1,13 @@ +diff --git a/examples/tools/plugandpaint/plugandpaint.pro b/examples/tools/plugandpaint/plugandpaint.pro +index 9616eb8..e188bc1 100644 +--- a/examples/tools/plugandpaint/plugandpaint.pro ++++ b/examples/tools/plugandpaint/plugandpaint.pro +@@ -10,7 +10,7 @@ SOURCES = main.cpp \ + symbian { + LIBS = -lpnp_basictools.lib + } else { +- LIBS = -L$${QT_BUILD_TREE}/examples/tools/plugandpaint/plugins -lpnp_basictools ++ LIBS += -L$${QT_BUILD_TREE}/examples/tools/plugandpaint/plugins -lpnp_basictools + } + + if(!debug_and_release|build_pass):CONFIG(debug, debug|release) { diff --git a/dev-qt/qtdemo/metadata.xml b/dev-qt/qtdemo/metadata.xml new file mode 100644 index 000000000000..e7b551b15594 --- /dev/null +++ b/dev-qt/qtdemo/metadata.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>qt</herd> + <use> + <flag name="c++0x">Build Qt using the C++11 standard</flag> + <flag name="dbus">Build QtDBus examples and demos</flag> + <flag name="declarative">Build QtDeclarative examples and demos</flag> + <flag name="exceptions">Add support for exceptions - like catching them + inside the event loop (recommended by Nokia)</flag> + <flag name="multimedia">Build QtMultimedia examples and demos</flag> + <flag name="opengl">Build QtOpenGL examples and demos</flag> + <flag name="openvg">Build QtOpenVG examples and demos</flag> + <flag name="qt3support">Build Qt3Support examples and demos</flag> + <flag name="webkit">Build QtWebKit examples and demos</flag> + <flag name="xmlpatterns">Build QtXmlPatterns examples and demos</flag> + </use> + <upstream> + <bugs-to>https://bugreports.qt-project.org/</bugs-to> + <doc>http://qt-project.org/doc/</doc> + </upstream> +</pkgmetadata> diff --git a/dev-qt/qtdemo/qtdemo-4.8.4.ebuild b/dev-qt/qtdemo/qtdemo-4.8.4.ebuild new file mode 100644 index 000000000000..48998093b93a --- /dev/null +++ b/dev-qt/qtdemo/qtdemo-4.8.4.ebuild @@ -0,0 +1,114 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-qt/qtdemo/qtdemo-4.8.4.ebuild,v 1.1 2013/03/02 15:27:09 yngwin Exp $ + +EAPI=4 + +inherit qt4-build + +DESCRIPTION="Demonstration module and examples for the Qt toolkit" +SLOT="4" +if [[ ${QT4_BUILD_TYPE} == live ]]; then + KEYWORDS="" +else + KEYWORDS="amd64 ppc ppc64 x86 ~x64-macos" +fi +IUSE="dbus declarative kde multimedia opengl openvg qt3support webkit xmlpatterns" + +DEPEND=" + ~dev-qt/qthelp-${PV}:4[aqua=,debug=] + ~dev-qt/qtcore-${PV}:4[aqua=,debug=,qt3support?] + ~dev-qt/qtgui-${PV}:4[aqua=,debug=,qt3support?] + ~dev-qt/qtscript-${PV}:4[aqua=,debug=] + ~dev-qt/qtsql-${PV}:4[aqua=,debug=,qt3support?] + ~dev-qt/qtsvg-${PV}:4[aqua=,debug=] + ~dev-qt/qttest-${PV}:4[aqua=,debug=] + dbus? ( ~dev-qt/qtdbus-${PV}:4[aqua=,debug=] ) + declarative? ( ~dev-qt/qtdeclarative-${PV}:4[aqua=,debug=,webkit?] ) + kde? ( media-libs/phonon[aqua=] ) + !kde? ( || ( + ~dev-qt/qtphonon-${PV}:4[aqua=,debug=] + media-libs/phonon[aqua=] + ) ) + multimedia? ( ~dev-qt/qtmultimedia-${PV}:4[aqua=,debug=] ) + opengl? ( ~dev-qt/qtopengl-${PV}:4[aqua=,debug=,qt3support?] ) + openvg? ( ~dev-qt/qtopenvg-${PV}:4[aqua=,debug=,qt3support?] ) + qt3support? ( ~dev-qt/qt3support-${PV}:4[aqua=,debug=] ) + webkit? ( ~dev-qt/qtwebkit-${PV}:4[aqua=,debug=] ) + xmlpatterns? ( ~dev-qt/qtxmlpatterns-${PV}:4[aqua=,debug=] ) +" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}/${PN}-4.6-plugandpaint.patch" +) + +pkg_setup() { + QT4_TARGET_DIRECTORIES=" + demos + examples" + QT4_EXTRACT_DIRECTORIES="${QT4_TARGET_DIRECTORIES} + doc/src/images + src + include + tools" + + qt4-build_pkg_setup +} + +src_prepare() { + qt4-build_src_prepare + + # Array mapping USE flags to subdirs + local flags_subdirs_map=( + 'dbus' + 'declarative:declarative' + 'multimedia:spectrum' + 'opengl:boxes|glhypnotizer' + 'openvg' + 'webkit:browser' + 'xmlpatterns' + ) + + # Disable unwanted examples/demos + for flag in "${flags_subdirs_map[@]}"; do + if ! use ${flag%:*}; then + einfo "Disabling ${flag%:*} examples" + sed -i -e "/SUBDIRS += ${flag%:*}/d" \ + examples/examples.pro || die + + if [[ ${flag} == *:* ]]; then + einfo "Disabling ${flag%:*} demos" + sed -i -re "/SUBDIRS \+= demos_(${flag#*:})/d" \ + demos/demos.pro || die + fi + fi + done + + if ! use qt3support; then + einfo "Disabling qt3support examples" + sed -i -e '/QT_CONFIG, qt3support/d' \ + examples/graphicsview/graphicsview.pro || die + fi +} + +src_configure() { + myconf+=" + $(qt_use dbus) + $(qt_use declarative) + $(qt_use multimedia) + $(qt_use opengl) + $(qt_use openvg) + $(qt_use qt3support) + $(qt_use webkit) + $(qt_use xmlpatterns)" + + qt4-build_src_configure +} + +src_install() { + insinto "${QTDOCDIR#${EPREFIX}}"/src + doins -r doc/src/images + + qt4-build_src_install +} |