summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net-libs/libktorrent/Manifest1
-rw-r--r--net-libs/libktorrent/libktorrent-24.08.3.ebuild59
2 files changed, 60 insertions, 0 deletions
diff --git a/net-libs/libktorrent/Manifest b/net-libs/libktorrent/Manifest
index 26c119d8df76..8fbc05880543 100644
--- a/net-libs/libktorrent/Manifest
+++ b/net-libs/libktorrent/Manifest
@@ -1,2 +1,3 @@
DIST libktorrent-24.08.1.tar.xz 605892 BLAKE2B b462be985f8414d6ba40801c18f8307d0ac3300e0d88e3d55fba5335049f58a28d0500ec7ef37935449440d8a62193683f772b80794b51dcce3a200998772e60 SHA512 2118252283726ed886ca1fac32fccbb30ab119ce0094383ed7fda0c5d938cc6cb337ee0e90d58cb2e0b2d7a6a4adc3ba8356a6000dbbd2351cc385ee5b8981c4
DIST libktorrent-24.08.2.tar.xz 605900 BLAKE2B f2272a459f867e3dd2fb70c51a5beb1822caf1ef3408de2351d177c625d2c0faeb76a412fe434b73f78f640a3721f7867eb322538c7eb60593f3bfeaf2e70b01 SHA512 a817888ddf711a28887655b8955601844d469623f31a847848202b5833e72c27298fe1706a0ce830316e7f63b6aebf3e7c3657a8ec41f60c4a51efc1dffdd5b3
+DIST libktorrent-24.08.3.tar.xz 605900 BLAKE2B 8b74457f67618616d49524a660b04d9cdccded54e92995f5c4d8a1c407f2ed587e29a613b7b51130cf0716138ce0d9f850b2caeb68d456155fd94aaa9918429b SHA512 0cb5aac161ba7afa4ab9e5f4f2c82ec0b38b6ab587c4f46c6ea277f4b9add72b9eecdbf47b10274400df2ff5508a8696d504ef1488ed16be6092ab01af627d17
diff --git a/net-libs/libktorrent/libktorrent-24.08.3.ebuild b/net-libs/libktorrent/libktorrent-24.08.3.ebuild
new file mode 100644
index 000000000000..b4e75e71fc67
--- /dev/null
+++ b/net-libs/libktorrent/libktorrent-24.08.3.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+ECM_TEST="forceoptional"
+KDE_ORG_CATEGORY="network"
+KFMIN=6.5.0
+QTMIN=6.7.2
+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="~amd64 ~arm64 ~ppc64 ~riscv ~x86"
+IUSE=""
+
+COMMON_DEPEND="
+ >=app-crypt/qca-2.3.7:2[qt6]
+ >=dev-libs/gmp-6.0.0a:0=
+ dev-libs/libgcrypt:0=
+ >=dev-qt/qtbase-${QTMIN}:6[network,xml]
+ >=dev-qt/qt5compat-${QTMIN}:6
+ >=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
+"
+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_test() {
+ # failing network tests
+ local myctestargs=(
+ -E "(fin|packetloss|send|superseedtest|transmit|utppolltest)"
+ )
+
+ ecm_src_test
+}