media-libs/phonon: Switch to ecm.eclass and kde.org.eclass
authorAndreas Sturmlechner <asturm@gentoo.org>
Wed, 13 Nov 2019 20:28:34 +0000 (21:28 +0100)
committerAndreas Sturmlechner <asturm@gentoo.org>
Wed, 13 Nov 2019 21:24:16 +0000 (22:24 +0100)
Package-Manager: Portage-2.3.79, Repoman-2.3.18
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
media-libs/phonon/phonon-4.11.1.ebuild

index a5cdbac1015fab00228f109f4a35c9aa701f08c1..0ebc2ce06621e2f6c4d01eabe1a3d5ef29f5eccf 100644 (file)
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-inherit desktop kde5
+inherit desktop ecm kde.org
 
 DESCRIPTION="KDE multimedia abstraction library"
 HOMEPAGE="https://phonon.kde.org/"
@@ -13,7 +13,7 @@ if [[ ${KDE_BUILD_TYPE} = release ]]; then
        KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
 fi
 
-LICENSE="|| ( LGPL-2.1 LGPL-3 )"
+LICENSE="|| ( LGPL-2.1 LGPL-3 ) !pulseaudio? ( || ( GPL-2 GPL-3 ) )"
 SLOT="0"
 IUSE="debug designer gstreamer pulseaudio +vlc"
 
@@ -22,7 +22,6 @@ BDEPEND="
        virtual/pkgconfig
 "
 DEPEND="
-       !!dev-qt/qtphonon:4
        dev-qt/qtgui:5
        dev-qt/qtwidgets:5
        designer? ( dev-qt/designer:5 )
@@ -44,11 +43,11 @@ src_configure() {
                -DCMAKE_DISABLE_FIND_PACKAGE_PulseAudio=$(usex !pulseaudio)
                -DPHONON_BUILD_SETTINGS=$(usex !pulseaudio)
        )
-       kde5_src_configure
+       ecm_src_configure
 }
 
 src_install() {
-       kde5_src_install
+       ecm_src_install
        use pulseaudio || \
                make_desktop_entry "${PN}settings" \
                        "Phonon Audio and Video" preferences-desktop-sound