media-libs/phonon-vlc: Switch to kde5.eclass
authorAndreas Sturmlechner <asturm@gentoo.org>
Thu, 8 Aug 2019 21:45:45 +0000 (23:45 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Thu, 8 Aug 2019 21:49:53 +0000 (23:49 +0200)
This is now fully ported to ECM after upstream dropped Qt4 support.
Update DESCRIPTION.

Package-Manager: Portage-2.3.71, Repoman-2.3.17
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
media-libs/phonon-vlc/phonon-vlc-9999.ebuild

index e6d157cf774d1af7bfe0e7d599ee298ef5c6811c..890afef5f158c5c4b26b98925dbabfcde23944ed 100644 (file)
@@ -3,21 +3,16 @@
 
 EAPI=7
 
-MY_PN="phonon-backend-vlc"
+inherit kde5
 
-if [[ ${PV} != *9999* ]]; then
-       SRC_URI="mirror://kde/stable/phonon/${MY_PN}/${PV}/${MY_PN}-${PV}.tar.xz"
+DESCRIPTION="VLC backend for the Phonon multimedia library"
+HOMEPAGE="https://phonon.kde.org/"
+
+if [[ ${KDE_BUILD_TYPE} = release ]]; then
+       SRC_URI="mirror://kde/stable/phonon/phonon-backend-vlc/${PV}/phonon-backend-vlc-${PV}.tar.xz"
        KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
-else
-       EGIT_REPO_URI=( "git://anongit.kde.org/${PN}" )
-       inherit git-r3
 fi
 
-inherit cmake-utils
-
-DESCRIPTION="Phonon VLC backend"
-HOMEPAGE="https://phonon.kde.org/"
-
 LICENSE="LGPL-2.1+ || ( LGPL-2.1 LGPL-3 )"
 SLOT="0"
 IUSE="debug"
@@ -26,15 +21,9 @@ BDEPEND="
        virtual/pkgconfig
 "
 DEPEND="
-       dev-qt/qtcore:5
        dev-qt/qtgui:5
        dev-qt/qtwidgets:5
-       >=media-libs/phonon-4.10.0
+       >=media-libs/phonon-4.10.60
        media-video/vlc:=[dbus,ogg,vorbis]
 "
 RDEPEND="${DEPEND}"
-
-src_configure() {
-       local mycmakeargs=( -DPHONON_BUILD_PHONON4QT5=ON )
-       cmake-utils_src_configure
-}