summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Hüttel <dilfridge@gentoo.org>2011-03-26 16:07:02 +0000
committerAndreas Hüttel <dilfridge@gentoo.org>2011-03-26 16:07:02 +0000
commit5f09d6012a3ed89bafee22e5838cf5580d87f0f0 (patch)
treea393a97b5a6c9df6c706a491058a763bfd546a2d /media-libs/phonon
parentDepend on virtual/ffmpeg instead of media-video/ffmpeg. (diff)
downloadhistorical-5f09d6012a3ed89bafee22e5838cf5580d87f0f0.tar.gz
historical-5f09d6012a3ed89bafee22e5838cf5580d87f0f0.tar.bz2
historical-5f09d6012a3ed89bafee22e5838cf5580d87f0f0.zip
Moved phonon to new category media-libs
Package-Manager: portage-2.1.9.44/cvs/Linux x86_64 RepoMan-Options: --force
Diffstat (limited to 'media-libs/phonon')
-rw-r--r--media-libs/phonon/ChangeLog290
-rw-r--r--media-libs/phonon/files/phonon-4.4-qt7.patch363
-rw-r--r--media-libs/phonon/metadata.xml8
-rw-r--r--media-libs/phonon/phonon-4.4.2.ebuild110
-rw-r--r--media-libs/phonon/phonon-4.4.3.ebuild106
-rw-r--r--media-libs/phonon/phonon-4.4.4.ebuild59
-rw-r--r--media-libs/phonon/phonon-9999.ebuild59
7 files changed, 995 insertions, 0 deletions
diff --git a/media-libs/phonon/ChangeLog b/media-libs/phonon/ChangeLog
new file mode 100644
index 000000000000..2917eeab456e
--- /dev/null
+++ b/media-libs/phonon/ChangeLog
@@ -0,0 +1,290 @@
+# ChangeLog for media-libs/phonon
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/phonon/ChangeLog,v 1.1 2011/03/26 16:07:01 dilfridge Exp $
+
+ 26 Mar 2011; Andreas K. Huettel <dilfridge@gentoo.org>
+ +files/phonon-4.4-qt7.patch, +phonon-4.4.2.ebuild, +phonon-4.4.3.ebuild,
+ +phonon-4.4.4.ebuild, +phonon-9999.ebuild, +metadata.xml:
+ Moved phonon to new category media-libs
+
+ 26 Feb 2011; Andreas K. Huettel <dilfridge@gentoo.org>
+ phonon-4.4.4.ebuild, phonon-9999.ebuild:
+ Added dependency on qt-test, bug 353054
+
+ 13 Feb 2011; Tomáš Chvátal <scarabeus@gentoo.org>
+ -phonon-4.3.50_pre20090520.ebuild, -phonon-4.3.80-r1.ebuild:
+ old
+
+*phonon-9999 (23 Jan 2011)
+*phonon-4.4.4 (23 Jan 2011)
+
+ 23 Jan 2011; Maciej Mrozowski <reavertm@gentoo.org> +phonon-4.4.4.ebuild,
+ +phonon-9999.ebuild, metadata.xml:
+ Version bump 4.4.4 (phonon split), add live ebuild from kde overlay
+
+ 06 Jan 2011; Raúl Porcel <armin76@gentoo.org> phonon-4.4.2.ebuild:
+ ia64 stable wrt #329847
+
+ 04 Jan 2011; Michael Weber <xmw@gentoo.org> phonon-4.4.2.ebuild:
+ sparc stable (bug 329847)
+
+ 09 Dec 2010; Markus Meier <maekke@gentoo.org> phonon-4.4.2.ebuild:
+ arm stable, bug #329847
+
+ 26 Nov 2010; Jeroen Roovers <jer@gentoo.org> phonon-4.4.2.ebuild:
+ Stable for HPPA (bug #329847).
+
+*phonon-4.4.3 (25 Nov 2010)
+
+ 25 Nov 2010; Maciej Mrozowski <reavertm@gentoo.org> +phonon-4.4.3.ebuild:
+ Version bump
+
+ 19 Sep 2010; Tobias Klausmann <klausman@gentoo.org> phonon-4.4.2.ebuild:
+ Stable on alpha, bug #329847
+
+ 10 Aug 2010; Tomáš Chvátal <scarabeus@gentoo.org>
+ files/phonon-4.4-qt7.patch, -phonon-4.4.1-r1.ebuild,
+ -files/phonon-4.4.1-pulseaudio-connect.patch,
+ -files/phonon-4.4.1-xine-volume.patch, -files/fix_nonascii_chars.patch:
+ Drop unused stuff.
+
+ 09 Aug 2010; Joseph Jezak <josejx@gentoo.org> phonon-4.4.2.ebuild:
+ Marked ppc/ppc64 stable for bug #329847.
+
+ 09 Aug 2010; Joseph Jezak <josejx@gentoo.org> phonon-4.4.1-r1.ebuild:
+ Marked ppc stable for bug #322791.
+
+ 30 Jul 2010; Markos Chandras <hwoarang@gentoo.org> phonon-4.4.2.ebuild:
+ Stable on amd64 wrt bug #329847
+
+ 27 Jul 2010; Christian Faulhammer <fauli@gentoo.org> phonon-4.4.2.ebuild:
+ stable x86, bug 329847
+
+ 05 Jul 2010; Samuli Suominen <ssuominen@gentoo.org>
+ phonon-4.4.1-r1.ebuild:
+ ppc64 stable wrt #299585
+
+ 05 Jul 2010; Samuli Suominen <ssuominen@gentoo.org>
+ phonon-4.4.1-r1.ebuild:
+ Raise Qt4 depend to 4.6.0 wrt #326859.
+
+ 27 Jun 2010; Christian Faulhammer <fauli@gentoo.org>
+ phonon-4.4.1-r1.ebuild:
+ stable x86, bug 299585
+
+ 24 Jun 2010; Christoph Mende <angelos@gentoo.org> phonon-4.4.1-r1.ebuild:
+ Stable on amd64 wrt bug #322791
+
+*phonon-4.4.2 (18 Jun 2010)
+
+ 18 Jun 2010; Tomáš Chvátal <scarabeus@gentoo.org> +phonon-4.4.2.ebuild:
+ Version bump. Per bug #323551.
+
+*phonon-4.4.1-r1 (24 May 2010)
+
+ 24 May 2010; Dror Levin <spatz@gentoo.org> -phonon-4.4.1.ebuild,
+ +phonon-4.4.1-r1.ebuild:
+ Revbump for last fix.
+
+ 23 May 2010; Dror Levin <spatz@gentoo.org> phonon-4.4.1.ebuild,
+ +files/phonon-4.4.1-pulseaudio-connect.patch,
+ +files/phonon-4.4.1-xine-volume.patch:
+ Adding upstream patches for fixes with pulseaudio and xine, bug 321155.
+ Thanks to Fabian Köster.
+
+*phonon-4.4.1 (17 May 2010)
+
+ 17 May 2010; Maciej Mrozowski <reavertm@gentoo.org> -phonon-4.4.0.ebuild,
+ +phonon-4.4.1.ebuild:
+ Version bump, remove old, bug 316797
+
+ 15 May 2010; Maciej Mrozowski <reavertm@gentoo.org>
+ phonon-4.3.50_pre20090520.ebuild, phonon-4.3.80-r1.ebuild,
+ phonon-4.4.0.ebuild:
+ Update automoc category
+
+ 18 Apr 2010; Maciej Mrozowski <reavertm@gentoo.org> -phonon-4.3.1.ebuild:
+ Remove old
+
+ 10 Apr 2010; Raúl Porcel <armin76@gentoo.org> phonon-4.3.80-r1.ebuild:
+ alpha/ia64/sparc stable wrt #299585
+
+*phonon-4.4.0 (16 Mar 2010)
+
+ 16 Mar 2010; Samuli Suominen <ssuominen@gentoo.org> +phonon-4.4.0.ebuild:
+ Version bump wrt #309009 by Marco DR.
+
+ 10 Mar 2010; Brent Baude <ranger@gentoo.org> phonon-4.3.80-r1.ebuild:
+ Marking phonon-4.3.80-r1 ppc for bug 299585
+
+ 10 Mar 2010; Brent Baude <ranger@gentoo.org> phonon-4.3.80-r1.ebuild:
+ Marking phonon-4.3.80-r1 ppc64 for bug 299585
+
+ 19 Feb 2010; Markus Meier <maekke@gentoo.org> phonon-4.3.80-r1.ebuild:
+ x86 stable, bug #299585
+
+ 19 Feb 2010; Samuli Suominen <ssuominen@gentoo.org>
+ phonon-4.3.80-r1.ebuild:
+ amd64 stable wrt #299585
+
+ 26 Jan 2010; Ben de Groot <yngwin@gentoo.org> phonon-4.3.1.ebuild,
+ phonon-4.3.50_pre20090520.ebuild, phonon-4.3.80-r1.ebuild:
+ Depend on gst-plugins-meta when gstreamer useflag is enabled. Fixes bug
+ 289692.
+
+ 13 Jan 2010; Jeroen Roovers <jer@gentoo.org>
+ phonon-4.3.50_pre20090520.ebuild:
+ Stable for HPPA too.
+
+ 27 Dec 2009; Raúl Porcel <armin76@gentoo.org> phonon-4.3.1.ebuild,
+ phonon-4.3.50_pre20090520.ebuild, phonon-4.3.80-r1.ebuild:
+ arm stable
+
+ 27 Dec 2009; Raúl Porcel <armin76@gentoo.org>
+ phonon-4.3.50_pre20090520.ebuild:
+ alpha/ia64/sparc stable
+
+*phonon-4.3.80-r1 (25 Dec 2009)
+
+ 25 Dec 2009; Jonathan Callen <abcd@gentoo.org> -phonon-4.3.80.ebuild,
+ +phonon-4.3.80-r1.ebuild, +files/phonon-4.4-qt7.patch:
+ Add prefix support, revbump due to otherwise unresolvable USE deps
+
+ 11 Dec 2009; Raúl Porcel <armin76@gentoo.org> phonon-4.3.1.ebuild:
+ sparc stable
+
+*phonon-4.3.50_pre20090520 (04 Dec 2009)
+
+ 04 Dec 2009; Tomáš Chvátal <scarabeus@gentoo.org>
+ +phonon-4.3.50_pre20090520.ebuild, -phonon-4.4_pre20090520.ebuild:
+ Move those files once more to reflect reality (it was really bad idea to
+ start with 4.4_pre).
+
+ 04 Dec 2009; Tomáš Chvátal <scarabeus@gentoo.org>
+ +phonon-4.4_pre20090520.ebuild:
+ Introduce back the latest stable. Sorry for mess.
+
+ 04 Dec 2009; Tomáš Chvátal <scarabeus@gentoo.org> phonon-4.3.80.ebuild:
+ Drop weird src_unpack.
+
+*phonon-4.3.80 (04 Dec 2009)
+
+ 04 Dec 2009; Tomáš Chvátal <scarabeus@gentoo.org>
+ +phonon-4.3.80.ebuild, -phonon-4.4_pre20090520.ebuild,
+ -phonon-4.4_pre20091119.ebuild:
+ Version bump to new snapshot. Drop old.
+
+ 30 Nov 2009; Joseph Jezak <josejx@gentoo.org>
+ phonon-4.4_pre20090520.ebuild:
+ Marked ppc/ppc64.
+
+ 18 Nov 2009; Dror Levin <spatz@gentoo.org> phonon-4.4_pre20091119.ebuild:
+ Add alsa USE flag and fix automagic deps. Thanks to Maciej Mrozowski.
+
+*phonon-4.4_pre20091119 (18 Nov 2009)
+
+ 18 Nov 2009; Dror Levin <spatz@gentoo.org> -phonon-4.4_pre20091118.ebuild,
+ +phonon-4.4_pre20091119.ebuild:
+ Version bump, remove old. Fixes automagic deps and hacks.
+
+ 18 Nov 2009; Raúl Porcel <armin76@gentoo.org> phonon-4.3.1.ebuild,
+ phonon-4.4_pre20090520.ebuild, phonon-4.4_pre20091118.ebuild:
+ Add ~sparc
+
+*phonon-4.4_pre20091118 (17 Nov 2009)
+
+ 17 Nov 2009; Dror Levin <spatz@gentoo.org> +phonon-4.4_pre20091118.ebuild:
+ Version bump.
+
+ 17 Oct 2009; Markus Meier <maekke@gentoo.org>
+ phonon-4.4_pre20090520.ebuild:
+ x86 stable, bug #287692
+
+ 09 Oct 2009; Alex Alexander <wired@gentoo.org>
+ phonon-4.4_pre20090520.ebuild:
+ added ~x86-fbsd, thanks ssuominen
+
+ 09 Oct 2009; Samuli Suominen <ssuominen@gentoo.org>
+ phonon-4.4_pre20090520.ebuild:
+ amd64 stable wrt #287692
+
+*phonon-4.4_pre20090520 (04 Aug 2009)
+
+ 04 Aug 2009; Alex Alexander <wired@gentoo.org>
+ +phonon-4.4_pre20090520.ebuild:
+ version bump. kde 4.3 dep.
+
+ 18 Jun 2009; Alexis Ballier <aballier@gentoo.org> phonon-4.3.1.ebuild:
+ keyword ~x86-fbsd
+
+ 15 Jun 2009; Tobias Klausmann <klausman@gentoo.org> phonon-4.3.1.ebuild:
+ Stable on alpha, bug #271903
+
+ 13 Jun 2009; Raúl Porcel <armin76@gentoo.org> phonon-4.3.1.ebuild:
+ ia64 stable wrt #271903
+
+ 02 Jun 2009; Jeroen Roovers <jer@gentoo.org> phonon-4.3.1.ebuild:
+ Stable for HPPA (bug #271903).
+
+ 01 Jun 2009; nixnut <nixnut@gentoo.org> phonon-4.3.1.ebuild:
+ ppc stable #271903
+
+ 31 May 2009; Markus Meier <maekke@gentoo.org> phonon-4.3.1.ebuild:
+ amd64/x86 stable, bug #271903
+
+ 31 May 2009; Brent Baude <ranger@gentoo.org> phonon-4.3.1.ebuild:
+ Marking phonon-4.3.1 ppc64 for bug 271903
+
+ 11 Apr 2009; Raúl Porcel <armin76@gentoo.org> phonon-4.3.1.ebuild:
+ Add ~alpha/~ia64 wrt #260777
+
+ 21 Mar 2009; Jeroen Roovers <jer@gentoo.org> phonon-4.3.1.ebuild:
+ Marked ~hppa (bug #260777).
+
+ 08 Mar 2009; Alexey Shvetsov <alexxy@gentoo.org> -phonon-4.3.0-r1.ebuild:
+ Drop KDE 4.2.0
+
+*phonon-4.3.1 (04 Mar 2009)
+
+ 04 Mar 2009; Alexey Shvetsov <alexxy@gentoo.org> +phonon-4.3.1.ebuild:
+ Bump KDE 4.2.1
+
+ 28 Feb 2009; Tomas Chvatal <scarabeus@gentoo.org> phonon-4.3.0-r1.ebuild:
+ Qt-opengl is hard dep since it is needed for tests too. Per bug #242884.
+
+*phonon-4.3.0-r1 (28 Feb 2009)
+
+ 28 Feb 2009; Tomas Chvatal <scarabeus@gentoo.org>
+ +files/fix_nonascii_chars.patch, -phonon-4.2.0.ebuild,
+ -phonon-4.3.0.ebuild, +phonon-4.3.0-r1.ebuild:
+ Fix nonascii character named/taged files with xine playback. Per bug
+ #259825.
+
+ 05 Feb 2009; Tomas Chvatal <scarabeus@gentoo.org> phonon-4.3.0.ebuild:
+ Fix -xine build. Per bug #257509.
+
+ 01 Feb 2009; Jorge Manuel B. S. Vicetto <jmbsvicetto@gentoo.org>
+ phonon-4.3.0.ebuild:
+ Restored ~ppc and ~ppc64 keywords to KDE-4.2.0
+
+*phonon-4.3.0 (27 Jan 2009)
+
+ 27 Jan 2009; Alexey Shvetsov <alexxy@gentoo.org> +phonon-4.3.0.ebuild:
+ Bump to new phonon-4.3.0
+
+ 15 Nov 2008; Mike Frysinger <vapier@gentoo.org> phonon-4.2.0.ebuild:
+ Add ppc/ppc64 love #244306.
+
+ 11 Oct 2008; Jorge Manuel B. S. Vicetto <jmbsvicetto@gentoo.org>
+ phonon-4.2.0.ebuild:
+ Bumped gstreamer and gst-plugins-base dep to >=0.10.20.
+
+*phonon-4.2.0 (02 Oct 2008)
+
+ 25 Oct 2008; Pieter Van den Abeele <pvdabeel@gentoo.org> phonon-4.2.0.ebuild:
+ Keyworded ~ppc. Closes bug #244240
+
+ 02 Oct 2008; Jorge Manuel B. S. Vicetto <jmbsvicetto@gentoo.org>
+ +metadata.xml, +phonon-4.2.0.ebuild:
+ media-sound
+
diff --git a/media-libs/phonon/files/phonon-4.4-qt7.patch b/media-libs/phonon/files/phonon-4.4-qt7.patch
new file mode 100644
index 000000000000..8890fa1da0cf
--- /dev/null
+++ b/media-libs/phonon/files/phonon-4.4-qt7.patch
@@ -0,0 +1,363 @@
+Desc: Fix the QuickTime7 plugin for MacOS. Probably needs 10.6.
+Author: Heiko Przybyl <zuxez@cs.tu-berlin.de>
+--- phonon-4.4_pre20090520/qt7/backendinfo.mm.orig 2009-10-10 17:54:22 +0200
++++ phonon-4.4_pre20090520/qt7/backendinfo.mm 2009-10-10 17:52:13 +0200
+@@ -22,6 +22,7 @@
+ #include <AudioUnit/AudioUnit.h>
+ #include <CoreServices/CoreServices.h>
+
++#include <QtGui/qmacdefines_mac.h>
+ #import <QTKit/QTMovie.h>
+
+ #ifdef QUICKTIME_C_API_AVAILABLE
+--- phonon-4.4_pre20090520/qt7/quicktimevideoplayer.h.orig 2009-10-10 19:42:17 +0200
++++ phonon-4.4_pre20090520/qt7/quicktimevideoplayer.h 2009-10-10 20:25:49 +0200
+@@ -20,6 +20,7 @@
+
+ #include "backendheader.h"
+
++#include <QtGui/qmacdefines_mac.h>
+ #import <QTKit/QTDataReference.h>
+ #import <QTKit/QTMovie.h>
+
+--- phonon-4.4_pre20090520/qt7/CMakeLists.txt.orig 2009-10-10 22:09:10 +0200
++++ phonon-4.4_pre20090520/qt7/CMakeLists.txt 2009-10-10 22:09:19 +0200
+@@ -43,6 +43,7 @@ if (BUILD_PHONON_QT7)
+ )
+
+ automoc4_add_library(phonon_qt7 MODULE ${phonon_qt7_SRCS})
++ set_target_properties(phonon_qt7 PROPERTIES PREFIX "")
+ target_link_libraries(phonon_qt7
+ ${QT_QTGUI_LIBRARY} ${QT_QTOPENGL_LIBRARY}
+ ${PHONON_LIBS}
+@@ -46,7 +46,6 @@ if (BUILD_PHONON_QT7)
+ target_link_libraries(phonon_qt7
+ ${QT_QTGUI_LIBRARY} ${QT_QTOPENGL_LIBRARY}
+ ${PHONON_LIBS}
+- "-framework QuickTime"
+ "-framework AudioUnit"
+ "-framework AudioToolbox"
+ "-framework CoreAudio"
+@@ -53,6 +54,6 @@ if (BUILD_PHONON_QT7)
+ "-framework QuartzCore"
+ "-framework QTKit"
+ )
+- install(TARGETS phonon_qt7 DESTINATION ${PLUGIN_INSTALL_DIR})
++ install(TARGETS phonon_qt7 DESTINATION ${PLUGIN_INSTALL_DIR}/plugins/phonon_backend)
+
+ endif (BUILD_PHONON_QT7)
+--- phonon-4.4_pre20090520/qt7/audioeffects.h.orig 2009-10-10 20:42:45 +0200
++++ phonon-4.4_pre20090520/qt7/audioeffects.h 2009-10-10 20:42:54 +0200
+@@ -37,7 +37,7 @@ namespace QT7
+ AudioEffectAudioNode(int effectType);
+ int m_effectType;
+
+- ComponentDescription getAudioNodeDescription() const;
++ AudioComponentDescription getAudioNodeDescription() const;
+ void initializeAudioUnit();
+
+ QVariant parameterValue(const Phonon::EffectParameter &value) const;
+--- phonon-4.4_pre20090520/qt7/audioeffects.mm.orig 2009-10-10 20:42:41 +0200
++++ phonon-4.4_pre20090520/qt7/audioeffects.mm 2009-10-10 21:52:44 +0200
+@@ -29,9 +29,9 @@ AudioEffectAudioNode::AudioEffectAudioNo
+ {
+ }
+
+-ComponentDescription AudioEffectAudioNode::getAudioNodeDescription() const
++AudioComponentDescription AudioEffectAudioNode::getAudioNodeDescription() const
+ {
+- ComponentDescription d;
++ AudioComponentDescription d;
+ d.componentType = kAudioUnitType_Effect;
+ d.componentSubType = m_effectType;
+ d.componentManufacturer = kAudioUnitManufacturer_Apple;
+@@ -62,10 +62,10 @@ QVariant AudioEffectAudioNode::parameter
+ } else {
+ // Use default value:
+ AudioUnit tmpAudioUnit;
+- ComponentDescription description = getAudioNodeDescription();
+- Component component = FindNextComponent(0, &description);
++ AudioComponentDescription description = getAudioNodeDescription();
++ AudioComponent component = AudioComponentFindNext(0, &description);
+ BACKEND_ASSERT3(component, "Could not get parameters of audio effect.", NORMAL_ERROR, QVariant())
+- OSErr err = OpenAComponent(component, &tmpAudioUnit);
++ OSErr err = AudioComponentInstanceNew(component, &tmpAudioUnit);
+ BACKEND_ASSERT3(err == noErr, "Could not get parameters of audio effect.", NORMAL_ERROR, QVariant())
+ AudioUnitParameterInfo info;
+ UInt32 size = sizeof(info);
+@@ -87,10 +87,10 @@ void AudioEffectAudioNode::setParameterV
+ m_alteredParameters.remove(parameter.id());
+ if (m_audioUnit){
+ AudioUnit tmpAudioUnit;
+- ComponentDescription description = getAudioNodeDescription();
+- Component component = FindNextComponent(0, &description);
++ AudioComponentDescription description = getAudioNodeDescription();
++ AudioComponent component = AudioComponentFindNext(0, &description);
+ BACKEND_ASSERT2(component, "Could not get parameters of audio effect.", NORMAL_ERROR)
+- OSErr err = OpenAComponent(component, &tmpAudioUnit);
++ OSErr err = AudioComponentInstanceNew(component, &tmpAudioUnit);
+ BACKEND_ASSERT2(err == noErr, "Could not get parameters of audio effect.", NORMAL_ERROR)
+ AudioUnitParameterInfo info;
+ UInt32 size = sizeof(info);
+@@ -121,10 +121,10 @@ QList<Phonon::EffectParameter> AudioEffe
+ QList<Phonon::EffectParameter> effectList;
+ // Create a temporary audio unit:
+ AudioUnit audioUnit;
+- ComponentDescription description = m_audioNode->getAudioNodeDescription();
+- Component component = FindNextComponent(0, &description);
++ AudioComponentDescription description = m_audioNode->getAudioNodeDescription();
++ AudioComponent component = AudioComponentFindNext(0, &description);
+ BACKEND_ASSERT3(component, "Could not get parameters of audio effect.", NORMAL_ERROR, effectList)
+- OSErr err = OpenAComponent(component, &audioUnit);
++ OSErr err = AudioComponentInstanceNew(component, &audioUnit);
+ BACKEND_ASSERT3(err == noErr, "Could not get parameters of audio effect.", NORMAL_ERROR, effectList)
+
+ UInt32 size = 0;
+@@ -149,29 +149,25 @@ QList<Phonon::EffectParameter> AudioEffe
+
+ QString AudioEffect::name()
+ {
+- ComponentDescription description = m_audioNode->getAudioNodeDescription();
+- Component component = FindNextComponent(0, &description);
++ AudioComponentDescription description = m_audioNode->getAudioNodeDescription();
++ AudioComponent component = AudioComponentFindNext(0, &description);
+ BACKEND_ASSERT3(component, "Could not get audio effect name.", NORMAL_ERROR, QLatin1String("<unknown effect>"))
+
+- ComponentDescription cDesc;
+- Handle nameH = NewHandle(0);
+- GetComponentInfo(component, &cDesc, nameH, 0, 0);
+- HLock(nameH);
+- char *namePtr = *nameH;
+- int len = *namePtr++;
+- namePtr[len] = 0;
+- QString qsName = QString::fromUtf8(namePtr);
+- DisposeHandle(nameH);
++ CFStringRef n;
++ AudioComponentCopyName(component, &n);
++ // Or use CFStringGetCString?
++ QString qsName = QString::fromUtf8(CFStringGetCStringPtr(n, kCFStringEncodingUTF8));
+ return qsName;
+ }
+
+ QString AudioEffect::description()
+ {
+- ComponentDescription description = m_audioNode->getAudioNodeDescription();
+- Component component = FindNextComponent(0, &description);
++ AudioComponentDescription description = m_audioNode->getAudioNodeDescription();
++#if 0
++ AudioComponent component = AudioComponentFindNext(0, &description);
+ BACKEND_ASSERT3(component, "Could not get audio effect description.", NORMAL_ERROR, QLatin1String("<unknown effect>"))
+
+- ComponentDescription cDesc;
++ AudioComponentDescription cDesc;
+ Handle descH = NewHandle(0);
+ GetComponentInfo(component, &cDesc, 0, descH, 0);
+ HLock(descH);
+@@ -180,6 +176,9 @@ QString AudioEffect::description()
+ descPtr[len] = 0;
+ QString qsDesc = QString::fromUtf8(descPtr);
+ DisposeHandle(descH);
++#else
++ QString qsDesc;
++#endif
+ return qsDesc;
+ }
+
+@@ -187,19 +186,19 @@ QList<int> AudioEffect::effectList()
+ {
+ QList<int> effects;
+
+- ComponentDescription d;
++ AudioComponentDescription d;
+ d.componentType = kAudioUnitType_Effect;
+ d.componentSubType = 0;
+ d.componentManufacturer = 0;
+ d.componentFlags = 0;
+ d.componentFlagsMask = 0;
+- Component component = FindNextComponent(0, &d);
++ AudioComponent component = AudioComponentFindNext(0, &d);
+
+ while (component) {
+- ComponentDescription cDesc;
+- GetComponentInfo(component, &cDesc, 0, 0, 0);
++ AudioComponentDescription cDesc;
++ AudioComponentGetDescription(component, &cDesc);
+ effects << cDesc.componentSubType;
+- component = FindNextComponent(component, &d);
++ component = AudioComponentFindNext(component, &d);
+ }
+ return effects;
+ }
+--- phonon-4.4_pre20090520/qt7/audiomixer.h.orig 2009-10-10 21:55:44 +0200
++++ phonon-4.4_pre20090520/qt7/audiomixer.h 2009-10-10 21:56:01 +0200
+@@ -41,7 +41,7 @@ namespace QT7
+ float volume(int bus = 0);
+
+ protected:
+- ComponentDescription getAudioNodeDescription() const;
++ AudioComponentDescription getAudioNodeDescription() const;
+ void initializeAudioUnit();
+
+ private:
+--- phonon-4.4_pre20090520/qt7/audiomixer.mm.orig 2009-10-10 21:56:20 +0200
++++ phonon-4.4_pre20090520/qt7/audiomixer.mm 2009-10-10 21:56:33 +0200
+@@ -30,9 +30,9 @@ AudioMixerAudioNode::AudioMixerAudioNode
+ m_volume = 1.0f;
+ }
+
+-ComponentDescription AudioMixerAudioNode::getAudioNodeDescription() const
++AudioComponentDescription AudioMixerAudioNode::getAudioNodeDescription() const
+ {
+- ComponentDescription description;
++ AudioComponentDescription description;
+ description.componentType = kAudioUnitType_Mixer;
+ description.componentSubType = kAudioUnitSubType_StereoMixer;
+ description.componentManufacturer = kAudioUnitManufacturer_Apple;
+--- phonon-4.4_pre20090520/qt7/audionode.h.orig 2009-10-10 20:39:39 +0200
++++ phonon-4.4_pre20090520/qt7/audionode.h 2009-10-10 20:40:01 +0200
+@@ -73,7 +73,7 @@ namespace QT7
+
+ // Only the following methods needs to
+ // be overidden by only_one-audio-unit nodes:
+- virtual ComponentDescription getAudioNodeDescription() const;
++ virtual AudioComponentDescription getAudioNodeDescription() const;
+ virtual void initializeAudioUnit();
+
+ private:
+--- phonon-4.4_pre20090520/qt7/audionode.mm.orig 2009-10-10 20:35:51 +0200
++++ phonon-4.4_pre20090520/qt7/audionode.mm 2009-10-10 22:02:27 +0200
+@@ -63,17 +63,20 @@ void AudioNode::createAndConnectAUNodes(
+ if (m_auNode)
+ return;
+
+- ComponentDescription description = getAudioNodeDescription();
++ AudioComponentDescription description = getAudioNodeDescription();
+ DEBUG_AUDIO_GRAPH("AudioNode" << int(this) << "creates AUNode"
+ << QString(!FindNextComponent(0, &description) ? "ERROR: COMPONENT NOT FOUND!" : "OK!"))
+
+ OSStatus err = noErr;
++#if 0
+ #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
+ if (QSysInfo::MacintoshVersion >= QSysInfo::MV_10_5)
+ err = AUGraphAddNode(m_audioGraph->audioGraphRef(), &description, &m_auNode);
+ else
+ #endif
+ err = AUGraphNewNode(m_audioGraph->audioGraphRef(), &description, 0, 0, &m_auNode);
++#endif
++ err = AUGraphAddNode(m_audioGraph->audioGraphRef(), &description, &m_auNode);
+
+ BACKEND_ASSERT2(err != kAUGraphErr_OutputNodeErr, "A MediaObject can only be connected to one audio output device.", FATAL_ERROR)
+ BACKEND_ASSERT2(err == noErr, "Could not create new AUNode.", FATAL_ERROR)
+@@ -100,10 +103,10 @@ void AudioNode::createAudioUnits()
+ initializeAudioUnit();
+ }
+
+-ComponentDescription AudioNode::getAudioNodeDescription() const
++AudioComponentDescription AudioNode::getAudioNodeDescription() const
+ {
+ // Override if needed.
+- ComponentDescription cd;
++ AudioComponentDescription cd;
+ Q_UNUSED(cd);
+ return cd;
+ }
+--- phonon-4.4_pre20090520/qt7/audiooutput.h.orig 2009-10-10 20:40:32 +0200
++++ phonon-4.4_pre20090520/qt7/audiooutput.h 2009-10-10 20:40:48 +0200
+@@ -41,7 +41,7 @@ namespace QT7
+ float volume();
+
+ protected:
+- ComponentDescription getAudioNodeDescription() const;
++ AudioComponentDescription getAudioNodeDescription() const;
+ void initializeAudioUnit();
+
+ signals:
+--- phonon-4.4_pre20090520/qt7/audiooutput.mm.orig 2009-10-10 20:40:54 +0200
++++ phonon-4.4_pre20090520/qt7/audiooutput.mm 2009-10-10 20:41:11 +0200
+@@ -16,6 +16,7 @@
+ */
+
+ #include "audiooutput.h"
++#include "audiooutput_p.h"
+ #include "audiograph.h"
+ #include "audiodevice.h"
+ #include "mediaobject.h"
+@@ -34,9 +34,9 @@ AudioOutputAudioPart::AudioOutputAudioPa
+ m_volume = 1;
+ }
+
+-ComponentDescription AudioOutputAudioPart::getAudioNodeDescription() const
++AudioComponentDescription AudioOutputAudioPart::getAudioNodeDescription() const
+ {
+- ComponentDescription description;
++ AudioComponentDescription description;
+ description.componentType = kAudioUnitType_Output;
+ description.componentSubType = kAudioUnitSubType_DefaultOutput;
+ description.componentManufacturer = kAudioUnitManufacturer_Apple;
+--- phonon-4.4_pre20090520/qt7/audiosplitter.h.orig 2009-10-10 20:41:44 +0200
++++ phonon-4.4_pre20090520/qt7/audiosplitter.h 2009-10-10 20:41:53 +0200
+@@ -33,7 +33,7 @@ namespace QT7
+ {
+ public:
+ AudioNodeSplitter();
+- ComponentDescription getAudioNodeDescription() const;
++ AudioComponentDescription getAudioNodeDescription() const;
+ };
+
+ class AudioSplitter : public MediaNode
+--- phonon-4.4_pre20090520/qt7/audiosplitter.mm.orig 2009-10-10 20:42:02 +0200
++++ phonon-4.4_pre20090520/qt7/audiosplitter.mm 2009-10-10 20:42:10 +0200
+@@ -28,9 +28,9 @@ AudioNodeSplitter::AudioNodeSplitter() :
+ {
+ }
+
+-ComponentDescription AudioNodeSplitter::getAudioNodeDescription() const
++AudioComponentDescription AudioNodeSplitter::getAudioNodeDescription() const
+ {
+- ComponentDescription description;
++ AudioComponentDescription description;
+ description.componentType = kAudioUnitType_FormatConverter;
+ description.componentSubType = kAudioUnitSubType_Splitter;
+ description.componentManufacturer = kAudioUnitManufacturer_Apple;
+--- phonon-4.4_pre20090520/qt7/quicktimeaudioplayer.h.orig 2009-10-10 21:53:20 +0200
++++ phonon-4.4_pre20090520/qt7/quicktimeaudioplayer.h 2009-10-10 21:53:30 +0200
+@@ -66,7 +66,7 @@ namespace QT7
+ QString currentTimeString();
+ QuickTimeVideoPlayer *videoPlayer();
+
+- ComponentDescription getAudioNodeDescription() const;
++ AudioComponentDescription getAudioNodeDescription() const;
+ void initializeAudioUnit();
+ bool fillInStreamSpecification(AudioConnection *connection, ConnectionSide side);
+ void mediaNodeEvent(const MediaNodeEvent *event);
+--- phonon-4.4_pre20090520/qt7/quicktimeaudioplayer.mm.orig 2009-10-10 21:53:42 +0200
++++ phonon-4.4_pre20090520/qt7/quicktimeaudioplayer.mm 2009-10-10 21:55:18 +0200
+@@ -266,13 +266,13 @@ bool QuickTimeAudioPlayer::hasAudio()
+ bool QuickTimeAudioPlayer::soundPlayerIsAwailable()
+ {
+ QuickTimeAudioPlayer player;
+- ComponentDescription d = player.getAudioNodeDescription();
+- return FindNextComponent(0, &d);
++ AudioComponentDescription d = player.getAudioNodeDescription();
++ return AudioComponentFindNext(0, &d);
+ }
+
+-ComponentDescription QuickTimeAudioPlayer::getAudioNodeDescription() const
++AudioComponentDescription QuickTimeAudioPlayer::getAudioNodeDescription() const
+ {
+- ComponentDescription description;
++ AudioComponentDescription description;
+ description.componentType = kAudioUnitType_Generator;
+ description.componentSubType = kAudioUnitSubType_ScheduledSoundPlayer;
+ description.componentManufacturer = kAudioUnitManufacturer_Apple;
+ayer.h
+--- phonon-4.4.2-orig/qt7/quicktimevideoplayer.h 2010-08-06 08:43:28.000000000 +0200
++++ phonon-4.4.2/qt7/quicktimevideoplayer.h 2010-08-06 08:43:43.000000000 +0200
+@@ -20,6 +20,7 @@
+
+ #include "backendheader.h"
+
++#include <QtGui/qmacdefines_mac.h>
+ #import <QTKit/QTDataReference.h>
+ #import <QTKit/QTMovie.h>
+
diff --git a/media-libs/phonon/metadata.xml b/media-libs/phonon/metadata.xml
new file mode 100644
index 000000000000..728ddc9cb0cf
--- /dev/null
+++ b/media-libs/phonon/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>kde</herd>
+<use>
+ <flag name="vlc">Install VLC Phonon backend</flag>
+</use>
+</pkgmetadata>
diff --git a/media-libs/phonon/phonon-4.4.2.ebuild b/media-libs/phonon/phonon-4.4.2.ebuild
new file mode 100644
index 000000000000..fb3647cd0364
--- /dev/null
+++ b/media-libs/phonon/phonon-4.4.2.ebuild
@@ -0,0 +1,110 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/phonon/phonon-4.4.2.ebuild,v 1.1 2011/03/26 16:07:01 dilfridge Exp $
+
+EAPI="2"
+
+inherit cmake-utils
+
+DESCRIPTION="KDE multimedia API"
+HOMEPAGE="http://phonon.kde.org"
+SRC_URI="mirror://kde/stable/phonon/${PV}/${P}.tar.bz2"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd ~x64-freebsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-macos ~x86-solaris"
+IUSE="alsa aqua debug gstreamer pulseaudio +xcb +xine"
+
+RDEPEND="
+ !kde-base/phonon-xine
+ !x11-libs/qt-phonon:4
+ >=x11-libs/qt-test-4.6.0:4[aqua=]
+ >=x11-libs/qt-dbus-4.6.0:4[aqua=]
+ >=x11-libs/qt-gui-4.6.0:4[aqua=]
+ >=x11-libs/qt-opengl-4.6.0:4[aqua=]
+ gstreamer? (
+ media-libs/gstreamer
+ media-plugins/gst-plugins-meta[alsa?]
+ )
+ pulseaudio? (
+ dev-libs/glib:2
+ >=media-sound/pulseaudio-0.9.21[glib]
+ )
+ xine? (
+ >=media-libs/xine-lib-1.1.15-r1[xcb?]
+ xcb? ( x11-libs/libxcb )
+ )
+"
+DEPEND="${RDEPEND}
+ >=dev-util/automoc-0.9.87
+"
+
+S=${WORKDIR}/${P/.0}
+
+pkg_setup() {
+ if use !xine && use !gstreamer && use !aqua; then
+ die "you must at least select one backend for phonon"
+ fi
+
+ if use xine && use aqua; then
+ die "XINE backend needs X11 which is not available for USE=aqua"
+ fi
+}
+
+src_prepare() {
+ # Fix the qt7 backend for MacOS 10.6.
+ [[ ${CHOST} == *-darwin10 ]] && epatch "${FILESDIR}"/${PN}-4.4-qt7.patch
+
+ # On MacOS we additionally want the gstreamer plugin.
+ if use aqua && use gstreamer; then
+ sed -e "/add_subdirectory(qt7)/a add_subdirectory(gstreamer)" \
+ -i CMakeLists.txt \
+ || die "failed to enable GStreamer backend"
+ fi
+
+ base_src_prepare
+}
+
+src_configure() {
+ mycmakeargs=(
+ $(cmake-utils_use_with alsa)
+ $(cmake-utils_use_build aqua PHONON_QT7)
+ $(cmake-utils_use_with gstreamer GStreamer)
+ $(cmake-utils_use_with gstreamer GStreamerPlugins)
+ $(cmake-utils_use_with pulseaudio PulseAudio)
+ $(cmake-utils_use_with pulseaudio GLib2)
+ $(cmake-utils_use_with xine)
+ $(cmake-utils_use_with xcb)
+ )
+
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ if use aqua; then
+ local MY_PV=4.4.0
+
+ install_name_tool \
+ -id "${EPREFIX}/usr/lib/libphonon.${MY_PV::1}.dylib" \
+ "${ED}/usr/lib/libphonon.${MY_PV}.dylib" \
+ || die "failed to fix libphonon.${MY_PV}.dylib"
+
+ install_name_tool \
+ -id "${EPREFIX}/usr/lib/libphononexperimental.${MY_PV::1}.dylib" \
+ -change "libphonon.${MY_PV::1}.dylib" \
+ "${EPREFIX}/usr/lib/libphononexperimental.${MY_PV::1}.dylib" \
+ "${ED}/usr/lib/libphononexperimental.${MY_PV}.dylib" \
+ || die "failed to fix libphononexperimental.${MY_PV}.dylib"
+
+ # fake the framework for the qt-apps depending on qt-frameworks (qt-webkit)
+ dodir /usr/lib/qt4/phonon.framework/Versions/${MY_PV::1}
+ dosym ${MY_PV::1} /usr/lib/qt4/phonon.framework/Versions/Current \
+ || die "failed to create symlink"
+ dosym ../../../../libphonon.${MY_PV::1}.dylib /usr/lib/qt4/phonon.framework/Versions/${MY_PV::1}/phonon \
+ || die "failed to create symlink"
+ dosym Versions/${MY_PV::1}/phonon /usr/lib/qt4/phonon.framework/phonon \
+ || die "failed to create symlink"
+ fi
+}
diff --git a/media-libs/phonon/phonon-4.4.3.ebuild b/media-libs/phonon/phonon-4.4.3.ebuild
new file mode 100644
index 000000000000..8319267046bf
--- /dev/null
+++ b/media-libs/phonon/phonon-4.4.3.ebuild
@@ -0,0 +1,106 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/phonon/phonon-4.4.3.ebuild,v 1.1 2011/03/26 16:07:01 dilfridge Exp $
+
+EAPI="2"
+
+inherit cmake-utils
+
+DESCRIPTION="KDE multimedia API"
+HOMEPAGE="http://phonon.kde.org"
+SRC_URI="mirror://kde/stable/phonon/${PV}/${P}.tar.bz2"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x64-freebsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-macos ~x86-solaris"
+IUSE="alsa aqua debug gstreamer pulseaudio +xcb +xine"
+
+RDEPEND="
+ !kde-base/phonon-xine
+ !x11-libs/qt-phonon:4
+ >=x11-libs/qt-test-4.6.0:4[aqua=]
+ >=x11-libs/qt-dbus-4.6.0:4[aqua=]
+ >=x11-libs/qt-gui-4.6.0:4[aqua=]
+ >=x11-libs/qt-opengl-4.6.0:4[aqua=]
+ gstreamer? (
+ media-libs/gstreamer
+ media-plugins/gst-plugins-meta[alsa?]
+ )
+ pulseaudio? (
+ dev-libs/glib:2
+ >=media-sound/pulseaudio-0.9.21[glib]
+ )
+ xine? (
+ >=media-libs/xine-lib-1.1.15-r1[xcb?]
+ xcb? ( x11-libs/libxcb )
+ )
+"
+DEPEND="${RDEPEND}
+ >=dev-util/automoc-0.9.87
+"
+
+S=${WORKDIR}/${P/.0}
+
+pkg_setup() {
+ if use xine && use aqua; then
+ die "XINE backend needs X11 which is not available for USE=aqua"
+ fi
+}
+
+src_prepare() {
+ # Fix the qt7 backend for MacOS 10.6.
+ [[ ${CHOST} == *-darwin10 ]] && epatch "${FILESDIR}"/${PN}-4.4-qt7.patch
+
+ # On MacOS we additionally want the gstreamer plugin.
+ if use aqua && use gstreamer; then
+ sed -e "/add_subdirectory(qt7)/a add_subdirectory(gstreamer)" \
+ -i CMakeLists.txt \
+ || die "failed to enable GStreamer backend"
+ fi
+
+ base_src_prepare
+}
+
+src_configure() {
+ mycmakeargs=(
+ $(cmake-utils_use_with alsa)
+ $(cmake-utils_use_build aqua PHONON_QT7)
+ $(cmake-utils_use_with gstreamer GStreamer)
+ $(cmake-utils_use_with gstreamer GStreamerPlugins)
+ $(cmake-utils_use_with pulseaudio PulseAudio)
+ $(cmake-utils_use_with pulseaudio GLib2)
+ $(cmake-utils_use_with xine)
+ $(cmake-utils_use_with xcb)
+ )
+
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ if use aqua; then
+ local MY_PV=4.4.0
+
+ install_name_tool \
+ -id "${EPREFIX}/usr/lib/libphonon.${MY_PV::1}.dylib" \
+ "${ED}/usr/lib/libphonon.${MY_PV}.dylib" \
+ || die "failed to fix libphonon.${MY_PV}.dylib"
+
+ install_name_tool \
+ -id "${EPREFIX}/usr/lib/libphononexperimental.${MY_PV::1}.dylib" \
+ -change "libphonon.${MY_PV::1}.dylib" \
+ "${EPREFIX}/usr/lib/libphononexperimental.${MY_PV::1}.dylib" \
+ "${ED}/usr/lib/libphononexperimental.${MY_PV}.dylib" \
+ || die "failed to fix libphononexperimental.${MY_PV}.dylib"
+
+ # fake the framework for the qt-apps depending on qt-frameworks (qt-webkit)
+ dodir /usr/lib/qt4/phonon.framework/Versions/${MY_PV::1}
+ dosym ${MY_PV::1} /usr/lib/qt4/phonon.framework/Versions/Current \
+ || die "failed to create symlink"
+ dosym ../../../../libphonon.${MY_PV::1}.dylib /usr/lib/qt4/phonon.framework/Versions/${MY_PV::1}/phonon \
+ || die "failed to create symlink"
+ dosym Versions/${MY_PV::1}/phonon /usr/lib/qt4/phonon.framework/phonon \
+ || die "failed to create symlink"
+ fi
+}
diff --git a/media-libs/phonon/phonon-4.4.4.ebuild b/media-libs/phonon/phonon-4.4.4.ebuild
new file mode 100644
index 000000000000..70822e8ba557
--- /dev/null
+++ b/media-libs/phonon/phonon-4.4.4.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/phonon/phonon-4.4.4.ebuild,v 1.1 2011/03/26 16:07:01 dilfridge Exp $
+
+EAPI="3"
+
+inherit cmake-utils
+
+DESCRIPTION="KDE multimedia API"
+HOMEPAGE="https://projects.kde.org/projects/kdesupport/phonon"
+SRC_URI="mirror://kde/stable/phonon/${PV}/src/${P}.tar.bz2"
+
+LICENSE="LGPL-2.1"
+KEYWORDS="~amd64 ~x86"
+SLOT="0"
+IUSE="debug gstreamer pulseaudio +vlc xine"
+
+COMMON_DEPEND="
+ >=x11-libs/qt-core-4.6.0:4
+ >=x11-libs/qt-dbus-4.6.0:4
+ >=x11-libs/qt-gui-4.6.0:4
+ >=x11-libs/qt-test-4.6.0:4
+ pulseaudio? (
+ dev-libs/glib:2
+ >=media-sound/pulseaudio-0.9.21[glib]
+ )
+"
+# directshow? ( media-sound/phonon-directshow )
+# mmf? ( media-sound/phonon-mmf )
+# mplayer? ( media-sound/phonon-mplayer )
+# quicktime? ( media-sound/phonon-quicktime )
+# waveout? ( media-sound/phonon-waveout )
+PDEPEND="
+ gstreamer? ( media-sound/phonon-gstreamer )
+ vlc? ( >=media-sound/phonon-vlc-0.3.2 )
+ xine? ( >=media-sound/phonon-xine-0.4.4 )
+"
+RDEPEND="${COMMON_DEPEND}
+ !kde-base/phonon-xine
+ !x11-libs/qt-phonon:4
+"
+DEPEND="${COMMON_DEPEND}
+ >=dev-util/automoc-0.9.87
+ dev-util/pkgconfig
+"
+
+pkg_setup() {
+ if use !gstreamer && use !vlc && use !xine; then
+ ewarn "You must at least select one backend for phonon to be usuable"
+ fi
+}
+
+src_configure() {
+ local mycmakeargs=(
+ $(cmake-utils_use_with pulseaudio GLIB2)
+ $(cmake-utils_use_with pulseaudio PulseAudio)
+ )
+ cmake-utils_src_configure
+}
diff --git a/media-libs/phonon/phonon-9999.ebuild b/media-libs/phonon/phonon-9999.ebuild
new file mode 100644
index 000000000000..b4476485ab55
--- /dev/null
+++ b/media-libs/phonon/phonon-9999.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/phonon/phonon-9999.ebuild,v 1.1 2011/03/26 16:07:01 dilfridge Exp $
+
+EAPI="3"
+
+inherit cmake-utils git
+
+DESCRIPTION="KDE multimedia API"
+HOMEPAGE="https://projects.kde.org/projects/kdesupport/phonon"
+EGIT_REPO_URI="git://anongit.kde.org/${PN}"
+
+LICENSE="LGPL-2.1"
+KEYWORDS=""
+SLOT="0"
+IUSE="debug gstreamer pulseaudio +vlc xine"
+
+COMMON_DEPEND="
+ >=x11-libs/qt-core-4.6.0:4
+ >=x11-libs/qt-dbus-4.6.0:4
+ >=x11-libs/qt-gui-4.6.0:4
+ >=x11-libs/qt-test-4.6.0:4
+ pulseaudio? (
+ dev-libs/glib:2
+ >=media-sound/pulseaudio-0.9.21[glib]
+ )
+"
+# directshow? ( media-sound/phonon-directshow )
+# mmf? ( media-sound/phonon-mmf )
+# mplayer? ( media-sound/phonon-mplayer )
+# quicktime? ( media-sound/phonon-quicktime )
+# waveout? ( media-sound/phonon-waveout )
+PDEPEND="
+ gstreamer? ( media-sound/phonon-gstreamer )
+ vlc? ( >=media-sound/phonon-vlc-0.3.2 )
+ xine? ( >=media-sound/phonon-xine-0.4.4 )
+"
+RDEPEND="${COMMON_DEPEND}
+ !kde-base/phonon-xine
+ !x11-libs/qt-phonon:4
+"
+DEPEND="${COMMON_DEPEND}
+ >=dev-util/automoc-0.9.87
+ dev-util/pkgconfig
+"
+
+pkg_setup() {
+ if use !gstreamer && use !vlc && use !xine; then
+ ewarn "You must at least select one backend for phonon to be usuable"
+ fi
+}
+
+src_configure() {
+ local mycmakeargs=(
+ $(cmake-utils_use_with pulseaudio GLIB2)
+ $(cmake-utils_use_with pulseaudio PulseAudio)
+ )
+ cmake-utils_src_configure
+}