Skip to content

Commit

Permalink
kde-misc/kio-gdrive: Port to ecm.eclass and kde.org.eclass
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.83, Repoman-2.3.20
Signed-off-by: Andreas Sturmlechner <[email protected]>
  • Loading branch information
a17r committed Dec 25, 2019
1 parent 4d3561b commit 0c8a29f
Showing 1 changed file with 19 additions and 16 deletions.
35 changes: 19 additions & 16 deletions kde-misc/kio-gdrive/kio-gdrive-1.2.7.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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/"
Expand All @@ -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 )
Expand All @@ -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
}

0 comments on commit 0c8a29f

Please sign in to comment.