1 |
commit: a8bb9598578229d466cd6e82a1d9f3aeafe7d488 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jun 27 17:20:42 2017 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 27 17:23:52 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a8bb9598 |
7 |
|
8 |
net-libs/libktorrent: Block dev-libs/botan[gmp] for runtime crashes |
9 |
|
10 |
See also: https://github.com/randombit/botan/issues/1090 |
11 |
Thanks-to: Andrius Štikonas <andrius <AT> stikonas.eu> |
12 |
|
13 |
Package-Manager: Portage-2.3.6, Repoman-2.3.1 |
14 |
|
15 |
net-libs/libktorrent/libktorrent-2.0.1-r1.ebuild | 72 ++++++++++++++++++++++++ |
16 |
1 file changed, 72 insertions(+) |
17 |
|
18 |
diff --git a/net-libs/libktorrent/libktorrent-2.0.1-r1.ebuild b/net-libs/libktorrent/libktorrent-2.0.1-r1.ebuild |
19 |
new file mode 100644 |
20 |
index 00000000000..139323c86d1 |
21 |
--- /dev/null |
22 |
+++ b/net-libs/libktorrent/libktorrent-2.0.1-r1.ebuild |
23 |
@@ -0,0 +1,72 @@ |
24 |
+# Copyright 1999-2017 Gentoo Foundation |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+ |
27 |
+EAPI=6 |
28 |
+ |
29 |
+if [[ ${PV} != 9999* ]]; then |
30 |
+ inherit versionator |
31 |
+ # upstream likes to skip that _ in beta releases |
32 |
+ MY_PV="${PV/_/}" |
33 |
+ KTORRENT_VERSION=$(($(get_major_version)+3)).$(get_version_component_range 2 ${MY_PV}) |
34 |
+ MY_P="${PN}-${MY_PV}" |
35 |
+ |
36 |
+ SRC_URI="mirror://kde/stable/ktorrent/${KTORRENT_VERSION}/${MY_P}.tar.xz" |
37 |
+ S="${WORKDIR}"/"${MY_P}" |
38 |
+ |
39 |
+ KEYWORDS="amd64 ~arm x86" |
40 |
+fi |
41 |
+ |
42 |
+KDE_TEST="forceoptional" |
43 |
+VIRTUALX_REQUIRED="test" |
44 |
+inherit kde5 |
45 |
+ |
46 |
+DESCRIPTION="BitTorrent library based on KDE Frameworks" |
47 |
+HOMEPAGE="https://www.kde.org/applications/internet/ktorrent/" |
48 |
+ |
49 |
+LICENSE="GPL-2+" |
50 |
+IUSE="" |
51 |
+ |
52 |
+COMMON_DEPEND=" |
53 |
+ $(add_frameworks_dep karchive) |
54 |
+ $(add_frameworks_dep kconfig) |
55 |
+ $(add_frameworks_dep kcoreaddons) |
56 |
+ $(add_frameworks_dep kcrash) |
57 |
+ $(add_frameworks_dep ki18n) |
58 |
+ $(add_frameworks_dep kio) |
59 |
+ $(add_frameworks_dep solid) |
60 |
+ $(add_qt_dep qtgui) |
61 |
+ $(add_qt_dep qtnetwork) |
62 |
+ $(add_qt_dep qtwidgets) |
63 |
+ $(add_qt_dep qtxml) |
64 |
+ app-crypt/qca:2[qt5] |
65 |
+ >=dev-libs/gmp-6.0.0a:0= |
66 |
+ dev-libs/libgcrypt:0= |
67 |
+" |
68 |
+DEPEND="${COMMON_DEPEND} |
69 |
+ dev-libs/boost |
70 |
+ sys-devel/gettext |
71 |
+" |
72 |
+RDEPEND="${COMMON_DEPEND} |
73 |
+ !net-libs/libktorrent:4 |
74 |
+ !dev-libs/botan[gmp(-)] |
75 |
+" |
76 |
+ |
77 |
+src_prepare() { |
78 |
+ kde5_src_prepare |
79 |
+ |
80 |
+ # Gentoo workaround because gmp.h in MULTILIB_WRAPPED_HEADERS is breaking this |
81 |
+ sed -i -e "/^find_package/ s/\"\${LibGMP_MIN_VERSION}\" //" \ |
82 |
+ CMakeLists.txt || die |
83 |
+ sed -i -e "/^find_dependency/ s/ \"@LibGMP_MIN_VERSION@\"//" \ |
84 |
+ LibKTorrentConfig.cmake.in || die |
85 |
+ |
86 |
+ # do not build non-installed example binary |
87 |
+ sed -i -e "/add_subdirectory(examples)/d" CMakeLists.txt || die |
88 |
+ |
89 |
+ if ! use test ; then |
90 |
+ sed -i -e "/add_subdirectory(testlib)/d" CMakeLists.txt || die |
91 |
+ sed -i -e "/add_subdirectory(tests)/d" \ |
92 |
+ src/{datachecker,dht,diskio,download,magnet,mse,net,peer,util,utp,torrent}/CMakeLists.txt \ |
93 |
+ || die "Failed to remove tests" |
94 |
+ fi |
95 |
+} |