summaryrefslogtreecommitdiff
path: root/media-libs/phonon
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/phonon')
-rw-r--r--media-libs/phonon/Manifest7
-rw-r--r--media-libs/phonon/files/phonon-4.7.0-plugin-install.patch13
-rw-r--r--media-libs/phonon/metadata.xml12
-rw-r--r--media-libs/phonon/phonon-4.9.1-r1.ebuild131
-rw-r--r--media-libs/phonon/phonon-9999.ebuild127
5 files changed, 290 insertions, 0 deletions
diff --git a/media-libs/phonon/Manifest b/media-libs/phonon/Manifest
new file mode 100644
index 000000000000..5ce236364e2c
--- /dev/null
+++ b/media-libs/phonon/Manifest
@@ -0,0 +1,7 @@
+AUX phonon-4.7.0-plugin-install.patch 1252 SHA256 a56f24ac961ab9c422d1a06adb602f720039b10ba7bde8ecb8aeeb1fa44a7be0 SHA512 62b6cffa985057722c5d2dbe07bd1124f9fcb6e1b861fe76fafd46ec980702655d55b37a29006e79c8e28e5a4df82dafa1a308dca8a6abd3402889777a93d8f2 WHIRLPOOL eceea6af1b0a97475b8263b5e48bf1ae4b9d5a26adc9fbff240e39b414f9ba03c0ceb235821658cfcd865e50d638cb977b4ab748ffe264870d1336908b5c2e5a
+DIST phonon-4.9.1.tar.xz 321872 SHA256 67bee986f85ca8b575186c8ba58a85886cb3b1c3567c86a118d56129f221e69c SHA512 a1741765071a625d9b9073d9ad1571b91cf5bfce2223bd1b034828d02dc52624587a6ec5352f3702df79f6e4201007596843fbcb9f15c9b489a858200787d728 WHIRLPOOL bcc7c372c8f9c51c33cc4fa4ae9b33c8d1aaf5750f51f7fbfcc491781629b449ae0ce38adba48af45c58fefa5da359b4d7d121ba7ba1fa08c6777aad4a179173
+EBUILD phonon-4.9.1-r1.ebuild 3188 SHA256 6d140fe3c53a74dd3db67bdf8271ed8df78d0a8aa1cfa715fa0ccc72cb960811 SHA512 aa974ba795bac1499e36551ac732346015fd8fee9ca2ec6526e6e2ca3054b268f1fe652050785f9eb1aabc6a87515220a2677e3e73da5a5d2ba17b1671289329 WHIRLPOOL b202099a64978732f011cad5b29993ab2e847e964ec76c6f79ef16ad14818d6304cf7334ad41935860ec815d1626fa6a33c2d4315b1fa1629d526477d2b7ff4c
+EBUILD phonon-9999.ebuild 3129 SHA256 e1863bb41a3a0177b11392768e91ae562f50c885b89e92d712c3cccf41410405 SHA512 82ad80a3a9ed8a543e60cd20d863621f07c089139bf128978f2687fa7e957298c6daf6f5ca2554802dd0a2bb2ac31bdfa9b0e28679baa9b18aa60a9f07531a9d WHIRLPOOL 30bf0c99be7c45e94edadb41080069114c7bdcd8f6e5f2e8af369bf23cd2cb63bd2e14346a49afb3c847139be63ca80ac17f0ee03535cf02c1ab01ada4486348
+MISC ChangeLog 6753 SHA256 9786929f242937bf6fada26b861ec9666ac254de09282939b13dfc65f9080de7 SHA512 9bdb71c815b32ca856482972766a899e33076c3d5e148690d5762d2b11572c359daf604edc5abab50a5b2b2784c275181a23a69623b46f0d37b4239d8b7046c8 WHIRLPOOL 35a7ce1e40abf63f9674352f859def518d73cc083d921e8b46e935266216b5bd0a51a800d821bea6e8c340d927084e01ea002481ed17ca983604ad3e3ce56da9
+MISC ChangeLog-2015 20643 SHA256 bbededb7cd6e33a9cf44c1457d58d63497baba0f4c1fed98c6a4865a01ff74a2 SHA512 226fdd204a79a3d5ee464e06de2d5c9fb62472d3345af890f500278b074cbc1f7bbc8cac4cbc8cf15bcfc7a6dd36c244983c918dcce39daefa0731cd46748e14 WHIRLPOOL a35d3335dfee0d0f6ebf2a5a50a83c27fb476f26c0fd68d0be81216b92ee8236c9f51186e62bd2cdb61baa9f3adecd214925cf16843cc3c8696ccf43d3eabaa5
+MISC metadata.xml 394 SHA256 a3f9575e03f047a66d01419dcd1771bc2f071a89e0aa31ecbd352961d25f0fcd SHA512 963308198d2057bc2869eb21b644c59211f3c4bb04a46de3cca04dc85cdcf67b113555870149b971c8c43a0c64fb88cd141ccf20740f6428d1573485844574a6 WHIRLPOOL 19a1057c3275af8d91c91c890c45946509272af5122f06a5fa8020673c1c0484eea83a6fe80ab91fd35a410fbe194ca6cbaada35e4b8009da884faa41bec849c
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 000000000000..5f478cac18c1
--- /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 000000000000..c965ebc5d239
--- /dev/null
+++ b/media-libs/phonon/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>kde@gentoo.org</email>
+ <name>Gentoo KDE Project</name>
+ </maintainer>
+ <use>
+ <flag name="designer">Install plugin for <pkg>dev-qt/designer</pkg></flag>
+ <flag name="vlc">Install VLC Phonon backend</flag>
+ </use>
+</pkgmetadata>
diff --git a/media-libs/phonon/phonon-4.9.1-r1.ebuild b/media-libs/phonon/phonon-4.9.1-r1.ebuild
new file mode 100644
index 000000000000..2474f3bab8db
--- /dev/null
+++ b/media-libs/phonon/phonon-4.9.1-r1.ebuild
@@ -0,0 +1,131 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+if [[ ${PV} != *9999* ]]; then
+ SRC_URI="mirror://kde/stable/phonon/${PV}/${P}.tar.xz"
+ KEYWORDS="alpha amd64 arm ~arm64 ~ia64 ppc ppc64 ~sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+else
+ EGIT_REPO_URI=( "git://anongit.kde.org/${PN}" )
+ inherit git-r3
+fi
+
+inherit cmake-multilib multibuild qmake-utils
+
+DESCRIPTION="KDE multimedia API"
+HOMEPAGE="https://phonon.kde.org/"
+
+LICENSE="|| ( LGPL-2.1 LGPL-3 )"
+SLOT="0"
+IUSE="debug designer gstreamer pulseaudio qt4 +qt5 +vlc"
+
+REQUIRED_USE="|| ( qt4 qt5 )"
+
+RDEPEND="
+ !!dev-qt/qtphonon:4
+ pulseaudio? (
+ dev-libs/glib:2[${MULTILIB_USEDEP}]
+ >=media-sound/pulseaudio-0.9.21[glib,${MULTILIB_USEDEP}]
+ )
+ qt4? (
+ >=dev-qt/qtcore-4.8.7-r2:4[${MULTILIB_USEDEP}]
+ >=dev-qt/qtdbus-4.8.7:4[${MULTILIB_USEDEP}]
+ >=dev-qt/qtgui-4.8.7:4[${MULTILIB_USEDEP}]
+ designer? ( >=dev-qt/designer-4.8.7:4[${MULTILIB_USEDEP}] )
+ )
+ qt5? (
+ dev-qt/qtcore:5
+ dev-qt/qtdbus:5
+ dev-qt/qtgui:5
+ dev-qt/qtwidgets:5
+ designer? ( dev-qt/designer:5 )
+ )
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig[${MULTILIB_USEDEP}]
+ qt5? ( kde-frameworks/extra-cmake-modules:5 )
+"
+PDEPEND="
+ gstreamer? ( >=media-libs/phonon-gstreamer-4.9.0[qt4?,qt5?] )
+ vlc? ( >=media-libs/phonon-vlc-0.9.0[qt4?,qt5?] )
+"
+
+PATCHES=( "${FILESDIR}/${PN}-4.7.0-plugin-install.patch" )
+
+pkg_setup() {
+ if use qt4 && [[ $(gcc-major-version) -lt 5 ]] ; then
+ ewarn "A GCC version older than 5 was detected. There may be trouble. See also Gentoo bug #595618"
+ fi
+
+ MULTIBUILD_VARIANTS=( $(usev qt4) $(usev qt5) )
+}
+
+multilib_src_configure() {
+ local mycmakeargs=(
+ -DPHONON_BUILD_DESIGNER_PLUGIN=$(usex designer)
+ -DPHONON_INSTALL_QT_EXTENSIONS_INTO_SYSTEM_QT=TRUE
+ -DWITH_GLIB2=$(usex pulseaudio)
+ -DWITH_PulseAudio=$(usex pulseaudio)
+ -DWITH_QZeitgeist=OFF
+ -DQT_QMAKE_EXECUTABLE="$(${QT_MULTIBUILD_VARIANT}_get_bindir)"/qmake
+ )
+
+ if [[ ${QT_MULTIBUILD_VARIANT} = qt4 ]]; then
+ mycmakeargs+=( -DPHONON_BUILD_PHONON4QT5=OFF )
+ fi
+ if [[ ${QT_MULTIBUILD_VARIANT} = qt5 ]]; then
+ mycmakeargs+=( -DPHONON_BUILD_PHONON4QT5=ON )
+ fi
+
+ cmake-utils_src_configure
+}
+
+src_configure() {
+ myconfigure() {
+ local QT_MULTIBUILD_VARIANT=${MULTIBUILD_VARIANT}
+ if [[ ${QT_MULTIBUILD_VARIANT} = qt4 ]]; then
+ cmake-multilib_src_configure
+ elif [[ ${QT_MULTIBUILD_VARIANT} = qt5 ]]; then
+ multilib_src_configure
+ fi
+ }
+
+ multibuild_foreach_variant myconfigure
+}
+
+src_compile() {
+ mycompile() {
+ if [[ ${MULTIBUILD_VARIANT} = qt4 ]]; then
+ cmake-multilib_src_compile
+ elif [[ ${MULTIBUILD_VARIANT} = qt5 ]]; then
+ cmake-utils_src_compile
+ fi
+ }
+
+ multibuild_foreach_variant mycompile
+}
+
+src_test() {
+ mytest() {
+ if [[ ${MULTIBUILD_VARIANT} = qt4 ]]; then
+ cmake-multilib_src_test
+ elif [[ ${MULTIBUILD_VARIANT} = qt5 ]]; then
+ cmake-utils_src_test
+ fi
+ }
+
+ multibuild_foreach_variant mytest
+}
+
+src_install() {
+ myinstall() {
+ if [[ ${MULTIBUILD_VARIANT} = qt4 ]]; then
+ cmake-multilib_src_install
+ elif [[ ${MULTIBUILD_VARIANT} = qt5 ]]; then
+ cmake-utils_src_install
+ fi
+ }
+
+ multibuild_foreach_variant myinstall
+}
diff --git a/media-libs/phonon/phonon-9999.ebuild b/media-libs/phonon/phonon-9999.ebuild
new file mode 100644
index 000000000000..e39cec4c2f67
--- /dev/null
+++ b/media-libs/phonon/phonon-9999.ebuild
@@ -0,0 +1,127 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+if [[ ${PV} != *9999* ]]; then
+ SRC_URI="mirror://kde/stable/phonon/${PV}/${P}.tar.xz"
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+else
+ EGIT_REPO_URI=( "git://anongit.kde.org/${PN}" )
+ inherit git-r3
+fi
+
+inherit cmake-multilib multibuild qmake-utils
+
+DESCRIPTION="KDE multimedia API"
+HOMEPAGE="https://phonon.kde.org/"
+
+LICENSE="|| ( LGPL-2.1 LGPL-3 )"
+SLOT="0"
+IUSE="debug designer gstreamer pulseaudio qt4 +vlc"
+
+RDEPEND="
+ !!dev-qt/qtphonon:4
+ 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[${MULTILIB_USEDEP}]
+ >=media-sound/pulseaudio-0.9.21[glib,${MULTILIB_USEDEP}]
+ )
+ qt4? (
+ >=dev-qt/qtcore-4.8.7-r2:4[${MULTILIB_USEDEP}]
+ >=dev-qt/qtdbus-4.8.7:4[${MULTILIB_USEDEP}]
+ >=dev-qt/qtgui-4.8.7:4[${MULTILIB_USEDEP}]
+ designer? ( >=dev-qt/designer-4.8.7:4[${MULTILIB_USEDEP}] )
+ )
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig[${MULTILIB_USEDEP}]
+ kde-frameworks/extra-cmake-modules:5
+"
+PDEPEND="
+ gstreamer? ( >=media-libs/phonon-gstreamer-4.9.0[qt4?,qt5(+)] )
+ vlc? ( >=media-libs/phonon-vlc-0.9.0[qt4?,qt5(+)] )
+"
+
+PATCHES=( "${FILESDIR}/${PN}-4.7.0-plugin-install.patch" )
+
+pkg_setup() {
+ if use qt4 && [[ $(gcc-major-version) -lt 5 ]] ; then
+ ewarn "A GCC version older than 5 was detected. There may be trouble. See also Gentoo bug #595618"
+ fi
+
+ MULTIBUILD_VARIANTS=( $(usev qt4) qt5 )
+}
+
+multilib_src_configure() {
+ local mycmakeargs=(
+ -DPHONON_BUILD_DESIGNER_PLUGIN=$(usex designer)
+ -DPHONON_INSTALL_QT_EXTENSIONS_INTO_SYSTEM_QT=TRUE
+ -DWITH_GLIB2=$(usex pulseaudio)
+ -DWITH_PulseAudio=$(usex pulseaudio)
+ -DWITH_QZeitgeist=OFF
+ -DQT_QMAKE_EXECUTABLE="$(${QT_MULTIBUILD_VARIANT}_get_bindir)"/qmake
+ )
+
+ if [[ ${QT_MULTIBUILD_VARIANT} = qt4 ]]; then
+ mycmakeargs+=( -DPHONON_BUILD_PHONON4QT5=OFF )
+ fi
+ if [[ ${QT_MULTIBUILD_VARIANT} = qt5 ]]; then
+ mycmakeargs+=( -DPHONON_BUILD_PHONON4QT5=ON )
+ fi
+
+ cmake-utils_src_configure
+}
+
+src_configure() {
+ myconfigure() {
+ local QT_MULTIBUILD_VARIANT=${MULTIBUILD_VARIANT}
+ if [[ ${QT_MULTIBUILD_VARIANT} = qt4 ]]; then
+ cmake-multilib_src_configure
+ elif [[ ${QT_MULTIBUILD_VARIANT} = qt5 ]]; then
+ multilib_src_configure
+ fi
+ }
+
+ multibuild_foreach_variant myconfigure
+}
+
+src_compile() {
+ mycompile() {
+ if [[ ${MULTIBUILD_VARIANT} = qt4 ]]; then
+ cmake-multilib_src_compile
+ elif [[ ${MULTIBUILD_VARIANT} = qt5 ]]; then
+ cmake-utils_src_compile
+ fi
+ }
+
+ multibuild_foreach_variant mycompile
+}
+
+src_test() {
+ mytest() {
+ if [[ ${MULTIBUILD_VARIANT} = qt4 ]]; then
+ cmake-multilib_src_test
+ elif [[ ${MULTIBUILD_VARIANT} = qt5 ]]; then
+ cmake-utils_src_test
+ fi
+ }
+
+ multibuild_foreach_variant mytest
+}
+
+src_install() {
+ myinstall() {
+ if [[ ${MULTIBUILD_VARIANT} = qt4 ]]; then
+ cmake-multilib_src_install
+ elif [[ ${MULTIBUILD_VARIANT} = qt5 ]]; then
+ cmake-utils_src_install
+ fi
+ }
+
+ multibuild_foreach_variant myinstall
+}