net-nntp/kwooty: Port to ecm.eclass and kde.org.eclass
authorAndreas Sturmlechner <asturm@gentoo.org>
Wed, 25 Dec 2019 16:13:21 +0000 (17:13 +0100)
committerAndreas Sturmlechner <asturm@gentoo.org>
Wed, 25 Dec 2019 16:13:21 +0000 (17:13 +0100)
Package-Manager: Portage-2.3.83, Repoman-2.3.20
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
net-nntp/kwooty/kwooty-1.1.0_p20150623.ebuild

index 84d6fd0af91ed23da1cd77e93d1cdbc2ecda359c..4a823553b9a43a73d57ddd5ef4ff483d0dcf04f0 100644 (file)
@@ -3,36 +3,39 @@
 
 EAPI=7
 
-inherit kde5
+KFMIN=5.60.0
+QTMIN=5.12.3
+inherit ecm kde.org
 
 DESCRIPTION="Friendly nzb linux usenet binary client"
 HOMEPAGE="https://www.linux-apps.com/content/show.php/Kwooty?content=114385"
 SRC_URI="https://dev.gentoo.org/~kensington/distfiles/${P}.tar.xz"
 
 LICENSE="GPL-2+"
+SLOT="5"
 KEYWORDS="~amd64 ~x86"
 IUSE=""
 
 DEPEND="
-       $(add_frameworks_dep kcmutils)
-       $(add_frameworks_dep kconfig)
-       $(add_frameworks_dep kconfigwidgets)
-       $(add_frameworks_dep kcoreaddons)
-       $(add_frameworks_dep kdelibs4support)
-       $(add_frameworks_dep kguiaddons)
-       $(add_frameworks_dep ki18n)
-       $(add_frameworks_dep kiconthemes)
-       $(add_frameworks_dep kio)
-       $(add_frameworks_dep knotifications)
-       $(add_frameworks_dep kservice)
-       $(add_frameworks_dep kwallet)
-       $(add_frameworks_dep kwidgetsaddons)
-       $(add_frameworks_dep kwindowsystem)
-       $(add_frameworks_dep kxmlgui)
-       $(add_qt_dep qtdbus)
-       $(add_qt_dep qtgui)
-       $(add_qt_dep qtnetwork)
-       $(add_qt_dep qtwidgets)
+       >=dev-qt/qtdbus-${QTMIN}:5
+       >=dev-qt/qtgui-${QTMIN}:5
+       >=dev-qt/qtnetwork-${QTMIN}:5
+       >=dev-qt/qtwidgets-${QTMIN}:5
+       >=kde-frameworks/kcmutils-${KFMIN}:5
+       >=kde-frameworks/kconfig-${KFMIN}:5
+       >=kde-frameworks/kconfigwidgets-${KFMIN}:5
+       >=kde-frameworks/kcoreaddons-${KFMIN}:5
+       >=kde-frameworks/kdelibs4support-${KFMIN}:5
+       >=kde-frameworks/kguiaddons-${KFMIN}:5
+       >=kde-frameworks/ki18n-${KFMIN}:5
+       >=kde-frameworks/kiconthemes-${KFMIN}:5
+       >=kde-frameworks/kio-${KFMIN}:5
+       >=kde-frameworks/knotifications-${KFMIN}:5
+       >=kde-frameworks/kservice-${KFMIN}:5
+       >=kde-frameworks/kwallet-${KFMIN}:5
+       >=kde-frameworks/kwidgetsaddons-${KFMIN}:5
+       >=kde-frameworks/kwindowsystem-${KFMIN}:5
+       >=kde-frameworks/kxmlgui-${KFMIN}:5
 "
 RDEPEND="${DEPEND}
        !net-nntp/kwooty:4
@@ -41,12 +44,12 @@ RDEPEND="${DEPEND}
 PATCHES=( "${FILESDIR}/${P}-dep.patch" )
 
 src_prepare() {
-       kde5_src_prepare
-       punt_bogus_dep KF5 DocTools
+       ecm_src_prepare
+       ecm_punt_bogus_dep KF5 DocTools
 }
 
 pkg_postinst() {
-       kde5_pkg_postinst
+       ecm_pkg_postinst
 
        if ! has_version "app-arch/par2cmdline" ; then
                elog "For automatic file repairing please install app-arch/par2cmdline."