commit:     81b700a9a519dc82942405ce4fb7d26669353253
Author:     Johannes Huber <johu <AT> gentoo <DOT> org>
AuthorDate: Wed Aug 13 19:40:41 2014 +0000
Commit:     Johannes Huber <johu <AT> gentoo <DOT> org>
CommitDate: Wed Aug 13 19:40:41 2014 +0000
URL:        
http://git.overlays.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=81b700a9

[media-libs/phonon] Version bump

Package-Manager: portage-2.2.12

---
 .../phonon/files/phonon-4.7.0-plugin-install.patch |  13 +++
 media-libs/phonon/metadata.xml                     |  10 ++
 media-libs/phonon/phonon-4.7.80.ebuild             | 105 +++++++++++++++++++++
 3 files changed, 128 insertions(+)

diff --git a/media-libs/phonon/files/phonon-4.7.0-plugin-install.patch 
b/media-libs/phonon/files/phonon-4.7.0-plugin-install.patch
new file mode 100644
index 0000000..5f478ca
--- /dev/null
+++ b/media-libs/phonon/files/phonon-4.7.0-plugin-install.patch
@@ -0,0 +1,13 @@
+diff --git a/cmake/FindPhononInternal.cmake b/cmake/FindPhononInternal.cmake
+index 3245e9b..3427c62 100644
+--- a/cmake/FindPhononInternal.cmake
++++ b/cmake/FindPhononInternal.cmake
+@@ -178,7 +178,7 @@ if (PHONON_BUILD_PHONON4QT5)
+ endif (PHONON_BUILD_PHONON4QT5)
+ set(BIN_INSTALL_DIR             "bin"     ) #         CACHE PATH "The install 
dir for executables (default ${EXEC_INSTALL_PREFIX}/bin)")
+ set(LIB_INSTALL_DIR             "${CMAKE_INSTALL_LIBDIR}" ) #  CACHE PATH 
"The subdirectory relative to the install prefix where libraries will be 
installed"
+-set(PLUGIN_INSTALL_DIR          "${LIB_INSTALL_DIR}/kde4"                   
CACHE PATH "The subdirectory relative to the install prefix where plugins will 
be installed (default is ${LIB_INSTALL_DIR}/kde4)")
++set(PLUGIN_INSTALL_DIR          "${LIB_INSTALL_DIR}/qt4"                   
CACHE PATH "The subdirectory relative to the install prefix where plugins will 
be installed (default is ${LIB_INSTALL_DIR}/qt4)")
+ if (PHONON_BUILD_PHONON4QT5)
+     set(PLUGIN_INSTALL_DIR          "${LIB_INSTALL_DIR}/qt5"                  
 CACHE PATH "The subdirectory relative to the install prefix where plugins will 
be installed (default is ${LIB_INSTALL_DIR}/qt5)" FORCE)
+ endif(PHONON_BUILD_PHONON4QT5)

diff --git a/media-libs/phonon/metadata.xml b/media-libs/phonon/metadata.xml
new file mode 100644
index 0000000..d261a0e
--- /dev/null
+++ b/media-libs/phonon/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <herd>kde</herd>
+       <use>
+               <flag name="designer">Install plugin for 
<pkg>dev-qt/designer</pkg></flag>
+               <flag name="vlc">Install VLC Phonon backend</flag>
+               <flag name="zeitgeist">Add support for Zeitgeist event tracking 
system</flag>
+       </use>
+</pkgmetadata>

diff --git a/media-libs/phonon/phonon-4.7.80.ebuild 
b/media-libs/phonon/phonon-4.7.80.ebuild
new file mode 100644
index 0000000..7417eb1
--- /dev/null
+++ b/media-libs/phonon/phonon-4.7.80.ebuild
@@ -0,0 +1,105 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+if [[ ${PV} != *9999* ]]; then
+       SRC_URI="mirror://kde/unstable/phonon/${P}.tar.xz"
+       KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 
~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+else
+       SCM_ECLASS="git-r3"
+       EGIT_REPO_URI=( "git://anongit.kde.org/${PN}" )
+       KEYWORDS=""
+fi
+
+inherit cmake-utils multibuild ${SCM_ECLASS}
+
+DESCRIPTION="KDE multimedia API"
+HOMEPAGE="https://projects.kde.org/projects/kdesupport/phonon";
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+IUSE="aqua debug designer gstreamer pulseaudio +qt4 qt5 +vlc zeitgeist"
+
+REQUIRED_USE="
+       || ( aqua gstreamer vlc )
+       || ( qt4 qt5 )
+       zeitgeist? ( qt4 )
+"
+
+RDEPEND="
+       !!dev-qt/qtphonon:4
+       qt4? (
+               dev-qt/qtcore:4
+               dev-qt/qtdbus:4
+               dev-qt/qtgui:4
+               designer? ( dev-qt/designer:4 )
+       )
+       qt5? (
+               dev-qt/qtcore:5
+               dev-qt/qtdbus:5
+               dev-qt/qtgui:5
+               dev-qt/qtwidgets:5
+               designer? ( dev-qt/designer:5 )
+       )
+       pulseaudio? (
+               dev-libs/glib:2
+               >=media-sound/pulseaudio-0.9.21[glib]
+       )
+       zeitgeist? ( dev-libs/libqzeitgeist )
+"
+DEPEND="${RDEPEND}
+       qt4? ( >=dev-util/automoc-0.9.87 )
+       virtual/pkgconfig
+"
+PDEPEND="
+       aqua? ( media-libs/phonon-qt7 )
+       gstreamer? ( >=media-libs/phonon-gstreamer-4.7.80[qt4?,qt5?] )
+       vlc? ( >=media-libs/phonon-vlc-0.7.80[qt4?,qt5?] )
+"
+
+PATCHES=( "${FILESDIR}/${PN}-4.7.0-plugin-install.patch" )
+
+pkg_setup() {
+       MULTIBUILD_VARIANTS=()
+       if use qt4; then
+               MULTIBUILD_VARIANTS+=(qt4)
+       fi
+       if use qt5; then
+               MULTIBUILD_VARIANTS+=(qt5)
+       fi
+}
+
+src_configure() {
+       myconfigure() {
+               local mycmakeargs=(
+                       -DPHONON_INSTALL_QT_EXTENSIONS_INTO_SYSTEM_QT=TRUE
+                       $(cmake-utils_use designer PHONON_BUILD_DESIGNER_PLUGIN)
+                       $(cmake-utils_use_with pulseaudio GLIB2)
+                       $(cmake-utils_use_with pulseaudio PulseAudio)
+                       $(cmake-utils_use_with zeitgeist QZeitgeist)
+               )
+               if [[ ${MULTIBUILD_VARIANT} = qt4 ]]; then
+                       mycmakeargs+=(-DPHONON_BUILD_PHONON4QT5=OFF)
+               fi
+               if [[ ${MULTIBUILD_VARIANT} = qt5 ]]; then
+                       mycmakeargs+=(-DPHONON_BUILD_PHONON4QT5=ON)
+               fi
+               cmake-utils_src_configure
+       }
+
+       multibuild_foreach_variant myconfigure
+}
+
+src_compile() {
+       multibuild_foreach_variant cmake-utils_src_compile
+}
+
+src_install() {
+       multibuild_foreach_variant cmake-utils_src_install
+}
+
+src_test() {
+       multibuild_foreach_variant cmake-utils_src_test
+}

Reply via email to