commit:     152e782c9477c239bbef995cb9a0594521f5da84
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Wed Dec 25 16:18:15 2019 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Wed Dec 25 16:18:15 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=152e782c

app-editors/kile: Port to ecm.eclass and kde.org.eclass

Package-Manager: Portage-2.3.83, Repoman-2.3.20
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 app-editors/kile/kile-2.9.93.ebuild | 63 ++++++++++++++++++++-----------------
 1 file changed, 34 insertions(+), 29 deletions(-)

diff --git a/app-editors/kile/kile-2.9.93.ebuild 
b/app-editors/kile/kile-2.9.93.ebuild
index 2d64261c3d4..e13393daca2 100644
--- a/app-editors/kile/kile-2.9.93.ebuild
+++ b/app-editors/kile/kile-2.9.93.ebuild
@@ -3,44 +3,50 @@
 
 EAPI=7
 
-KDE_HANDBOOK="forceoptional"
-inherit kde5
+ECM_HANDBOOK="forceoptional"
+KFMIN=5.60.0
+QTMIN=5.12.3
+inherit ecm kde.org
 
 DESCRIPTION="Latex Editor and TeX shell based on KDE Frameworks"
 HOMEPAGE="https://kile.sourceforge.io/";
-SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+
+if [[ ${KDE_BUILD_TYPE} == release ]]; then
+       SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+       KEYWORDS="amd64 x86"
+fi
 
 LICENSE="FDL-1.2 GPL-2"
-KEYWORDS="amd64 x86"
+SLOT="5"
 IUSE="+pdf +png"
 
 DEPEND="
-       $(add_frameworks_dep kconfig)
-       $(add_frameworks_dep kcoreaddons)
-       $(add_frameworks_dep kcrash)
-       $(add_frameworks_dep kdbusaddons)
-       $(add_frameworks_dep kdoctools)
-       $(add_frameworks_dep kguiaddons)
-       $(add_frameworks_dep khtml)
-       $(add_frameworks_dep ki18n)
-       $(add_frameworks_dep kiconthemes)
-       $(add_frameworks_dep kinit)
-       $(add_frameworks_dep kio)
-       $(add_frameworks_dep kparts)
-       $(add_frameworks_dep ktexteditor)
-       $(add_frameworks_dep kwindowsystem)
-       $(add_frameworks_dep kxmlgui)
-       $(add_kdeapps_dep okular)
-       $(add_qt_dep qtdbus)
-       $(add_qt_dep qtscript)
-       $(add_qt_dep qttest)
-       $(add_qt_dep qtwidgets)
+       >=dev-qt/qtdbus-${QTMIN}:5
+       >=dev-qt/qtscript-${QTMIN}:5
+       >=dev-qt/qttest-${QTMIN}:5
+       >=dev-qt/qtwidgets-${QTMIN}:5
+       >=kde-apps/okular-19.04.3:5
+       >=kde-frameworks/kconfig-${KFMIN}:5
+       >=kde-frameworks/kcoreaddons-${KFMIN}:5
+       >=kde-frameworks/kcrash-${KFMIN}:5
+       >=kde-frameworks/kdbusaddons-${KFMIN}:5
+       >=kde-frameworks/kdoctools-${KFMIN}:5
+       >=kde-frameworks/kguiaddons-${KFMIN}:5
+       >=kde-frameworks/khtml-${KFMIN}:5
+       >=kde-frameworks/ki18n-${KFMIN}:5
+       >=kde-frameworks/kiconthemes-${KFMIN}:5
+       >=kde-frameworks/kinit-${KFMIN}:5
+       >=kde-frameworks/kio-${KFMIN}:5
+       >=kde-frameworks/kparts-${KFMIN}:5
+       >=kde-frameworks/ktexteditor-${KFMIN}:5
+       >=kde-frameworks/kwindowsystem-${KFMIN}:5
+       >=kde-frameworks/kxmlgui-${KFMIN}:5
        pdf? ( app-text/poppler[qt5] )
 "
 RDEPEND="${DEPEND}
        !app-editors/kile:4
-       $(add_kdeapps_dep konsole)
-       $(add_kdeapps_dep okular 'pdf?')
+       >=kde-apps/konsole-19.04.3:5
+       >=kde-apps/okular-19.04.3:5[pdf?]
        virtual/latex-base
        virtual/tex-base
        pdf? (
@@ -59,8 +65,7 @@ PATCHES=( "${FILESDIR}/${P}-cmake.patch" )
 
 src_configure() {
        local mycmakeargs=(
-               $(cmake-utils_use_find_package pdf Poppler)
+               $(cmake_use_find_package pdf Poppler)
        )
-
-       kde5_src_configure
+       ecm_src_configure
 }

Reply via email to