Skip to content

Commit

Permalink
net-libs/libktorrent: 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 27, 2019
1 parent a364c9c commit 716d562
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions net-libs/libktorrent/libktorrent-2.1.1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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}\" //" \
Expand All @@ -57,5 +61,5 @@ src_test() {
-E "(fin|packetloss|send|superseedtest|transmit|utppolltest)"
)

kde5_src_test
ecm_src_test
}

0 comments on commit 716d562

Please sign in to comment.