1 |
commit: 7f16cf6c2880517795a6fffa9724584d9a656729 |
2 |
Author: Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Feb 20 16:32:58 2016 +0000 |
4 |
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 23 14:15:18 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=7f16cf6c |
7 |
|
8 |
net-libs/libktorrent: Frameworks merged to master |
9 |
|
10 |
Package-Manager: portage-2.2.27 |
11 |
|
12 |
net-libs/libktorrent/libktorrent-9999.ebuild | 61 ++++++++++++++++++++-------- |
13 |
1 file changed, 43 insertions(+), 18 deletions(-) |
14 |
|
15 |
diff --git a/net-libs/libktorrent/libktorrent-9999.ebuild b/net-libs/libktorrent/libktorrent-9999.ebuild |
16 |
index 996ec7b..8fa2ff0 100644 |
17 |
--- a/net-libs/libktorrent/libktorrent-9999.ebuild |
18 |
+++ b/net-libs/libktorrent/libktorrent-9999.ebuild |
19 |
@@ -2,7 +2,7 @@ |
20 |
# Distributed under the terms of the GNU General Public License v2 |
21 |
# $Id$ |
22 |
|
23 |
-EAPI=5 |
24 |
+EAPI=6 |
25 |
|
26 |
if [[ ${PV} != 9999* ]]; then |
27 |
inherit versionator |
28 |
@@ -10,42 +10,67 @@ if [[ ${PV} != 9999* ]]; then |
29 |
MY_PV="${PV/_/}" |
30 |
KTORRENT_VERSION=$(($(get_major_version)+3)).$(get_version_component_range 2-3 ${MY_PV}) |
31 |
MY_P="${PN}-${MY_PV}" |
32 |
- KDE_HANDBOOK="optional" |
33 |
- KDE_DOC_DIRS="doc" |
34 |
|
35 |
- KDE_LINGUAS="ar ast be bg bs ca ca@valencia cs da de el en_GB eo es et eu |
36 |
- fi fr ga gl hi hne hr hu is it ja km ku lt lv ms nb nds nl nn oc pl |
37 |
- pt pt_BR ro ru se si sk sl sr sr@ijekavian sr@ijekavianlatin |
38 |
- sr@latin sv tr ug uk zh_CN zh_TW" |
39 |
SRC_URI="http://ktorrent.org/downloads/${KTORRENT_VERSION}/${MY_P}.tar.bz2" |
40 |
S="${WORKDIR}"/"${MY_P}" |
41 |
|
42 |
- KEYWORDS="~amd64 ~arm ~ppc x86" |
43 |
+ KEYWORDS="~amd64 ~arm ~x86" |
44 |
else |
45 |
KEYWORDS="" |
46 |
fi |
47 |
+ |
48 |
+KDE_DOXYGEN="true" |
49 |
+KDE_DOX_DIR="doc" |
50 |
+KDE_TEST="forceoptional" |
51 |
VIRTUALX_REQUIRED="test" |
52 |
-inherit kde4-base |
53 |
+inherit kde5 |
54 |
|
55 |
-DESCRIPTION="A BitTorrent library based on KDE Platform" |
56 |
+DESCRIPTION="A BitTorrent library based on KDE Frameworks" |
57 |
HOMEPAGE="http://ktorrent.org/" |
58 |
|
59 |
LICENSE="GPL-2" |
60 |
-SLOT="4" |
61 |
-IUSE="debug" |
62 |
+IUSE="" |
63 |
|
64 |
-RDEPEND=" |
65 |
- app-crypt/qca:2[qt4] |
66 |
- dev-libs/gmp:0 |
67 |
+COMMON_DEPEND=" |
68 |
+ $(add_frameworks_dep karchive) |
69 |
+ $(add_frameworks_dep kconfig) |
70 |
+ $(add_frameworks_dep kcoreaddons) |
71 |
+ $(add_frameworks_dep kcrash) |
72 |
+ $(add_frameworks_dep ki18n) |
73 |
+ $(add_frameworks_dep kio) |
74 |
+ $(add_frameworks_dep solid) |
75 |
+ $(add_qt_dep qtgui) |
76 |
+ $(add_qt_dep qtnetwork) |
77 |
+ $(add_qt_dep qtwidgets) |
78 |
+ $(add_qt_dep qtxml) |
79 |
+ app-crypt/qca:2[qt5] |
80 |
+ >=dev-libs/gmp-6.0.0a:0 |
81 |
dev-libs/libgcrypt:0= |
82 |
" |
83 |
-DEPEND="${RDEPEND} |
84 |
+DEPEND="${COMMON_DEPEND} |
85 |
dev-libs/boost |
86 |
sys-devel/gettext |
87 |
" |
88 |
+RDEPEND="${COMMON_DEPEND} |
89 |
+ !net-libs/libktorrent:4 |
90 |
+" |
91 |
|
92 |
src_prepare() { |
93 |
- kde4-base_src_prepare |
94 |
+ kde5_src_prepare |
95 |
+ |
96 |
+ # Gentoo workaround because gmp.h in MULTILIB_WRAPPED_HEADERS is breaking this |
97 |
+ sed -i -e "/^find_package/ s/\"\${LibGMP_MIN_VERSION}\" //" \ |
98 |
+ CMakeLists.txt || die |
99 |
+ sed -i -e "/^find_dependency/ s/ \"@LibGMP_MIN_VERSION@\"//" \ |
100 |
+ LibKTorrentConfig.cmake.in || die |
101 |
+ |
102 |
# do not build non-installed example binary |
103 |
- sed -i -e '/add_subdirectory(examples)/d' CMakeLists.txt || die |
104 |
+ sed -i -e "/add_subdirectory(examples)/d" CMakeLists.txt || die |
105 |
+ |
106 |
+ if ! use test ; then |
107 |
+ sed -i -e "/add_subdirectory(testlib)/d" CMakeLists.txt || die |
108 |
+ sed -i -e "/add_subdirectory(tests)/d" \ |
109 |
+ src/{datachecker,dht,diskio,download,magnet,mse,net,peer,util,utp,torrent}/CMakeLists.txt \ |
110 |
+ || die "Failed to remove tests" |
111 |
+ fi |
112 |
} |