summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2021-09-30 20:10:56 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2022-07-14 22:32:07 +0200
commite14580e0c153998addb45911a01088f62d769797 (patch)
tree16b848e3259051bb7a1b5da706499fe4d2a3e848 /media-libs/phonon/phonon-4.11.1-r2.ebuild
parentkde-plasma/plasma-pa: Switch to media-libs/libpulse (diff)
downloadgentoo-e14580e0c153998addb45911a01088f62d769797.tar.gz
gentoo-e14580e0c153998addb45911a01088f62d769797.tar.bz2
gentoo-e14580e0c153998addb45911a01088f62d769797.zip
media-libs/phonon: Switch IUSE pulseaudio to media-libs/libpulse
EAPI-8 too. Package-Manager: Portage-3.0.26, Repoman-3.0.3 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'media-libs/phonon/phonon-4.11.1-r2.ebuild')
-rw-r--r--media-libs/phonon/phonon-4.11.1-r2.ebuild53
1 files changed, 53 insertions, 0 deletions
diff --git a/media-libs/phonon/phonon-4.11.1-r2.ebuild b/media-libs/phonon/phonon-4.11.1-r2.ebuild
new file mode 100644
index 000000000000..da2281950bf6
--- /dev/null
+++ b/media-libs/phonon/phonon-4.11.1-r2.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit desktop ecm kde.org
+
+DESCRIPTION="KDE multimedia abstraction library"
+HOMEPAGE="https://community.kde.org/Phonon"
+
+if [[ ${KDE_BUILD_TYPE} = release ]]; then
+ SRC_URI="mirror://kde/stable/phonon/${PV}/${P}.tar.xz"
+ KEYWORDS="amd64 ~arm arm64 ~loong ~ppc ~ppc64 ~riscv x86"
+fi
+
+LICENSE="|| ( LGPL-2.1 LGPL-3 ) !pulseaudio? ( || ( GPL-2 GPL-3 ) )"
+SLOT="0"
+IUSE="debug designer gstreamer pulseaudio +vlc"
+
+DEPEND="
+ dev-qt/qtgui:5
+ dev-qt/qtwidgets:5
+ designer? ( dev-qt/designer:5 )
+ pulseaudio? (
+ dev-libs/glib:2
+ media-libs/libpulse[glib]
+ )
+"
+RDEPEND="${DEPEND}"
+BDEPEND="
+ dev-qt/linguist-tools:5
+ virtual/pkgconfig
+"
+PDEPEND="
+ gstreamer? ( >=media-libs/phonon-gstreamer-4.9.60 )
+ vlc? ( >=media-libs/phonon-vlc-0.9.60 )
+"
+
+src_configure() {
+ local mycmakeargs=(
+ -DPHONON_BUILD_DESIGNER_PLUGIN=$(usex designer)
+ -DCMAKE_DISABLE_FIND_PACKAGE_GLIB2=$(usex !pulseaudio)
+ -DCMAKE_DISABLE_FIND_PACKAGE_PulseAudio=$(usex !pulseaudio)
+ -DPHONON_BUILD_SETTINGS=ON
+ )
+ ecm_src_configure
+}
+
+src_install() {
+ ecm_src_install
+ make_desktop_entry "${PN}settings" \
+ "Phonon Audio and Video" preferences-desktop-sound
+}