summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Chvatal <scarabeus@gentoo.org>2010-06-18 09:58:38 +0000
committerTomas Chvatal <scarabeus@gentoo.org>2010-06-18 09:58:38 +0000
commit6d7be5cc41eb13dc311483947373beeaec0e7994 (patch)
treeca6674294eee2e21068b4c8636beb5f82176500e /media-sound/phonon
parentdepend on older libdrm for nouveau (diff)
downloadgentoo-2-6d7be5cc41eb13dc311483947373beeaec0e7994.tar.gz
gentoo-2-6d7be5cc41eb13dc311483947373beeaec0e7994.tar.bz2
gentoo-2-6d7be5cc41eb13dc311483947373beeaec0e7994.zip
Version bump. Per bug #323551.
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'media-sound/phonon')
-rw-r--r--media-sound/phonon/ChangeLog7
-rw-r--r--media-sound/phonon/phonon-4.4.2.ebuild110
2 files changed, 116 insertions, 1 deletions
diff --git a/media-sound/phonon/ChangeLog b/media-sound/phonon/ChangeLog
index 7e81821e00cb..6d40f8ebfff5 100644
--- a/media-sound/phonon/ChangeLog
+++ b/media-sound/phonon/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for media-sound/phonon
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/phonon/ChangeLog,v 1.50 2010/05/24 20:16:01 spatz Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/phonon/ChangeLog,v 1.51 2010/06/18 09:58:38 scarabeus Exp $
+
+*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)
diff --git a/media-sound/phonon/phonon-4.4.2.ebuild b/media-sound/phonon/phonon-4.4.2.ebuild
new file mode 100644
index 000000000000..eb10dc63969c
--- /dev/null
+++ b/media-sound/phonon/phonon-4.4.2.ebuild
@@ -0,0 +1,110 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/phonon/phonon-4.4.2.ebuild,v 1.1 2010/06/18 09:58:38 scarabeus 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.4.0:4[aqua=]
+ >=x11-libs/qt-dbus-4.4.0:4[aqua=]
+ >=x11-libs/qt-gui-4.4.0:4[aqua=]
+ >=x11-libs/qt-opengl-4.4.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
+}