summaryrefslogtreecommitdiff
path: root/net-libs
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2025-12-04 19:30:25 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2025-12-04 19:57:24 +0100
commit7389eb01f5d5ab0ba4477a902baadb9d2a303a86 (patch)
treee319bd63bd38348ee8846348b1a8106ab8c2a705 /net-libs
parentf404e1b74eaf9ff45382d9f7da6ce0e8271a4e53 (diff)
downloadkde-7389eb01f5d5ab0ba4477a902baadb9d2a303a86.tar.gz
kde-7389eb01f5d5ab0ba4477a902baadb9d2a303a86.tar.bz2
kde-7389eb01f5d5ab0ba4477a902baadb9d2a303a86.zip
net-libs/libktorrent: Add 25.12 stable branch
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'net-libs')
-rw-r--r--net-libs/libktorrent/libktorrent-25.12.49.9999.ebuild65
1 files changed, 65 insertions, 0 deletions
diff --git a/net-libs/libktorrent/libktorrent-25.12.49.9999.ebuild b/net-libs/libktorrent/libktorrent-25.12.49.9999.ebuild
new file mode 100644
index 00000000000..346e06807c2
--- /dev/null
+++ b/net-libs/libktorrent/libktorrent-25.12.49.9999.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+ECM_TEST="forceoptional"
+KDE_ORG_CATEGORY="network"
+KFMIN=6.19.0
+QTMIN=6.9.1
+inherit ecm gear.kde.org
+
+DESCRIPTION="BitTorrent library based on KDE Frameworks"
+HOMEPAGE="https://apps.kde.org/ktorrent/ https://userbase.kde.org/KTorrent"
+
+LICENSE="GPL-2+"
+SLOT="6"
+KEYWORDS=""
+IUSE="xfs"
+
+COMMON_DEPEND="
+ >=dev-libs/gmp-6.0.0a:0=
+ >=dev-libs/openssl-3:0=
+ >=dev-qt/qtbase-${QTMIN}:6[network,xml]
+ >=kde-frameworks/karchive-${KFMIN}:6
+ >=kde-frameworks/kconfig-${KFMIN}:6
+ >=kde-frameworks/kcoreaddons-${KFMIN}:6
+ >=kde-frameworks/kcrash-${KFMIN}:6
+ >=kde-frameworks/ki18n-${KFMIN}:6
+ >=kde-frameworks/kio-${KFMIN}:6
+ >=kde-frameworks/solid-${KFMIN}:6
+ xfs? ( sys-fs/xfsprogs )
+"
+DEPEND="${COMMON_DEPEND}
+ >=dev-libs/boost-1.71
+"
+RDEPEND="${COMMON_DEPEND}
+ !dev-libs/botan[gmp(-)]
+"
+BDEPEND="sys-devel/gettext"
+
+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}\" //" \
+ CMakeLists.txt || die
+ sed -i -e "/^find_dependency/ s/ \"@LibGMP_MIN_VERSION@\"//" \
+ KTorrent6Config.cmake.in || die
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DUSE_CRYPTO_BACKEND=OpenSSL
+ -DWITH_XFS=$(usex xfs)
+ )
+ ecm_src_configure
+}
+
+src_test() {
+ # failing network tests
+ local myctestargs=(
+ -E "(fin|packetloss|send|superseedtest|transmit|utppolltest)"
+ )
+ ecm_src_test
+}