net-libs/libktorrent: Port to ecm.eclass and kde.org.eclass
authorAndreas Sturmlechner <asturm@gentoo.org>
Fri, 27 Dec 2019 00:03:24 +0000 (01:03 +0100)
committerAndreas Sturmlechner <asturm@gentoo.org>
Fri, 27 Dec 2019 00:07:18 +0000 (01:07 +0100)
Package-Manager: Portage-2.3.83, Repoman-2.3.20
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
net-libs/libktorrent/libktorrent-2.1.1.ebuild

index 9399cfd161ba7afab7828fbd8c0801f44223a9eb..a71a4a0418bc71c2f88e1a206ed6db9f1210f881 100644 (file)
@@ -3,31 +3,35 @@
 
 EAPI=7
 
-KDE_TEST="forceoptional"
+ECM_TEST="forceoptional"
+KFMIN=5.60.0
+QTMIN=5.12.3
 VIRTUALX_REQUIRED="test"
-inherit kde5
+inherit ecm kde.org
 
 DESCRIPTION="BitTorrent library based on KDE Frameworks"
-HOMEPAGE="https://kde.org/applications/internet/ktorrent/"
+HOMEPAGE="https://kde.org/applications/internet/org.kde.ktorrent
+https://userbase.kde.org/KTorrent"
 SRC_URI="mirror://kde/stable/ktorrent/5.1.2/${P}.tar.xz"
 
 LICENSE="GPL-2+"
+SLOT="5"
 KEYWORDS="amd64 ~arm arm64 ~x86"
 IUSE=""
 
 BDEPEND="sys-devel/gettext"
 COMMON_DEPEND="
-       $(add_frameworks_dep karchive)
-       $(add_frameworks_dep kconfig)
-       $(add_frameworks_dep kcoreaddons)
-       $(add_frameworks_dep ki18n)
-       $(add_frameworks_dep kio)
-       $(add_frameworks_dep solid)
-       $(add_qt_dep qtnetwork)
-       $(add_qt_dep qtxml)
        app-crypt/qca:2[qt5(+)]
        >=dev-libs/gmp-6.0.0a:0=
        dev-libs/libgcrypt:0=
+       >=dev-qt/qtnetwork-${QTMIN}:5
+       >=dev-qt/qtxml-${QTMIN}:5
+       >=kde-frameworks/karchive-${KFMIN}:5
+       >=kde-frameworks/kconfig-${KFMIN}:5
+       >=kde-frameworks/kcoreaddons-${KFMIN}:5
+       >=kde-frameworks/ki18n-${KFMIN}:5
+       >=kde-frameworks/kio-${KFMIN}:5
+       >=kde-frameworks/solid-${KFMIN}:5
 "
 DEPEND="${COMMON_DEPEND}
        dev-libs/boost
@@ -42,7 +46,7 @@ PATCHES=(
 )
 
 src_prepare() {
-       kde5_src_prepare
+       ecm_src_prepare
 
        # Gentoo workaround because gmp.h in MULTILIB_WRAPPED_HEADERS is breaking this
        sed -i -e "/^find_package/ s/\"\${LibGMP_MIN_VERSION}\" //" \
@@ -57,5 +61,5 @@ src_test() {
                -E "(fin|packetloss|send|superseedtest|transmit|utppolltest)"
        )
 
-       kde5_src_test
+       ecm_src_test
 }