kde-misc/kio-gdrive: Port to ecm.eclass and kde.org.eclass
authorAndreas Sturmlechner <asturm@gentoo.org>
Wed, 25 Dec 2019 01:24:01 +0000 (02:24 +0100)
committerAndreas Sturmlechner <asturm@gentoo.org>
Wed, 25 Dec 2019 01:27:26 +0000 (02:27 +0100)
Package-Manager: Portage-2.3.83, Repoman-2.3.20
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
kde-misc/kio-gdrive/kio-gdrive-1.2.7.ebuild

index 0f5910c0bb344e41256f3d67258ad8125fbc0ed2..52c588af79a240aa5211d4d43ab9467290225d1b 100644 (file)
@@ -3,10 +3,11 @@
 
 EAPI=7
 
-KDE_APPS_MINIMAL=19.08.0
-KDE_HANDBOOK="forceoptional"
-KDE_TEST="optional"
-inherit kde5
+ECM_HANDBOOK="forceoptional"
+ECM_TEST="optional"
+KFMIN=5.60.0
+QTMIN=5.12.3
+inherit ecm kde.org
 
 DESCRIPTION="KIO Slave for Google Drive service"
 HOMEPAGE="https://phabricator.kde.org/project/profile/72/"
@@ -16,25 +17,27 @@ if [[ ${KDE_BUILD_TYPE} != live ]] ; then
        KEYWORDS="amd64 x86"
 fi
 
+LICENSE="GPL-2+"
+SLOT="5"
 IUSE="+kaccounts"
 
 BDEPEND="dev-util/intltool"
 COMMON_DEPEND="
-       $(add_frameworks_dep kcoreaddons)
-       $(add_frameworks_dep ki18n)
-       $(add_frameworks_dep kio)
-       $(add_frameworks_dep knotifications)
-       $(add_kdeapps_dep libkgapi)
-       $(add_qt_dep qtwidgets)
-       kaccounts? ( $(add_kdeapps_dep kaccounts-integration) )
+       >=dev-qt/qtwidgets-${QTMIN}:5
+       >=kde-apps/libkgapi-19.08.0:5
+       >=kde-frameworks/kcoreaddons-${KFMIN}:5
+       >=kde-frameworks/ki18n-${KFMIN}:5
+       >=kde-frameworks/kio-${KFMIN}:5
+       >=kde-frameworks/knotifications-${KFMIN}:5
+       kaccounts? ( kde-apps/kaccounts-integration:5 )
        !kaccounts? ( dev-libs/qtkeychain:=[qt5(+)] )
 "
 DEPEND="${COMMON_DEPEND}
-       $(add_qt_dep qtgui)
-       $(add_qt_dep qtnetwork)
+       >=dev-qt/qtgui-${QTMIN}:5
+       >=dev-qt/qtnetwork-${QTMIN}:5
 "
 RDEPEND="${COMMON_DEPEND}
-       kaccounts? ( $(add_kdeapps_dep kaccounts-providers) )
+       kaccounts? ( >=kde-apps/kaccounts-providers-19.08.0:5 )
 "
 
 DOCS=( README.md )
@@ -43,7 +46,7 @@ PATCHES=( "${FILESDIR}"/${PN}-1.2.6-refresh-credentials.patch )
 
 src_configure() {
        local mycmakeargs=(
-               $(cmake-utils_use_find_package kaccounts KAccounts)
+               $(cmake_use_find_package kaccounts KAccounts)
        )
-       kde5_src_configure
+       ecm_src_configure
 }