diff options
Diffstat (limited to 'net-libs/libktorrent')
-rw-r--r-- | net-libs/libktorrent/Manifest | 1 | ||||
-rw-r--r-- | net-libs/libktorrent/libktorrent-21.04.3.ebuild | 61 |
2 files changed, 62 insertions, 0 deletions
diff --git a/net-libs/libktorrent/Manifest b/net-libs/libktorrent/Manifest index acda9963c124..955282f874c3 100644 --- a/net-libs/libktorrent/Manifest +++ b/net-libs/libktorrent/Manifest @@ -1,2 +1,3 @@ DIST libktorrent-20.12.3.tar.xz 604488 BLAKE2B e51bba82990632744aaadf3e40043fa80e64395f6f3721992780ff77d7663a0a3600aaf7d2653a00f32366555f1000a961c3e99de6d2e2cfecc4c1f79d1ebb00 SHA512 e2259251e8edbef6154674898614f81b3a29d5c711e9f751435450edbbb987c5e2a1d8ff864da5aa180b5d1adc3ef611f46175f2126faca52d1b1338d986d1cb DIST libktorrent-21.04.2.tar.xz 607488 BLAKE2B 8ff38ddef534bc56b12d67435a3787cbb6c25b03d57c127950b7021e5a47a6fa416cd22508b0ca2697993e36cd5ccad28f49011a313f33290ba0d1b00ffc8058 SHA512 05c0472371ec476f1ad5665f491106d08e6cb8b53599bca97365ee2c7c31903748899f685fcfa44d356c3d2cfce8e70cc2df0970668373be9a36c5e589a3dec2 +DIST libktorrent-21.04.3.tar.xz 607516 BLAKE2B 5dfea2102fc865d61f2ebf2b1f7045c7ce0f542830f9c7e511d5139f910ff3797a949f85a593a17c56287c3433c086a198f96353a61a4cfc923d96aa30ab4545 SHA512 2c8ee156b0b1e51b96b2670c5fe3f00aa131a34bcebdfdd69898a723fd01a8d2da52a94a1914c13e82b7362a71beaefc03b27eb450dbc84bc43953771bf9b886 diff --git a/net-libs/libktorrent/libktorrent-21.04.3.ebuild b/net-libs/libktorrent/libktorrent-21.04.3.ebuild new file mode 100644 index 000000000000..9f24c96e7f05 --- /dev/null +++ b/net-libs/libktorrent/libktorrent-21.04.3.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +ECM_TEST="forceoptional" +KDE_GEAR="true" +KDE_ORG_CATEGORY="network" +KFMIN=5.80.0 +QTMIN=5.15.2 +VIRTUALX_REQUIRED="test" +inherit ecm kde.org + +DESCRIPTION="BitTorrent library based on KDE Frameworks" +HOMEPAGE="https://apps.kde.org/ktorrent/ https://userbase.kde.org/KTorrent" + +LICENSE="GPL-2+" +SLOT="5" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" +IUSE="" + +BDEPEND="sys-devel/gettext" +COMMON_DEPEND=" + >=app-crypt/qca-2.3.0:2 + >=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/kcrash-${KFMIN}:5 + >=kde-frameworks/ki18n-${KFMIN}:5 + >=kde-frameworks/kio-${KFMIN}:5 + >=kde-frameworks/solid-${KFMIN}:5 +" +DEPEND="${COMMON_DEPEND} + dev-libs/boost +" +RDEPEND="${COMMON_DEPEND} + !dev-libs/botan[gmp(-)] +" + +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@\"//" \ + KF5TorrentConfig.cmake.in || die +} + +src_test() { + # failing network tests + local myctestargs=( + -E "(fin|packetloss|send|superseedtest|transmit|utppolltest)" + ) + + ecm_src_test +} |