1 |
commit: a457d648c3e7143cdaae440540b81bf5c8d018b5 |
2 |
Author: Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Feb 20 20:34:51 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=a457d648 |
7 |
|
8 |
net-p2p/ktorrent: Frameworks merged to master |
9 |
|
10 |
Package-Manager: portage-2.2.27 |
11 |
|
12 |
net-p2p/ktorrent/ktorrent-9999.ebuild | 137 ++++++++++++++++++++-------------- |
13 |
net-p2p/ktorrent/metadata.xml | 7 -- |
14 |
2 files changed, 82 insertions(+), 62 deletions(-) |
15 |
|
16 |
diff --git a/net-p2p/ktorrent/ktorrent-9999.ebuild b/net-p2p/ktorrent/ktorrent-9999.ebuild |
17 |
index 922ebde..08a2a00 100644 |
18 |
--- a/net-p2p/ktorrent/ktorrent-9999.ebuild |
19 |
+++ b/net-p2p/ktorrent/ktorrent-9999.ebuild |
20 |
@@ -2,7 +2,7 @@ |
21 |
# Distributed under the terms of the GNU General Public License v2 |
22 |
# $Id$ |
23 |
|
24 |
-EAPI=5 |
25 |
+EAPI=6 |
26 |
|
27 |
LIBKT_VERSION_MIN="${PV}" |
28 |
LIBKT_VERSION_MAX="99999999" |
29 |
@@ -13,13 +13,7 @@ if [[ ${PV} != 9999* ]]; then |
30 |
LIBKT_VERSION_MIN=$(($(get_major_version)-3)).$(get_version_component_range 2-3 ${PV}) |
31 |
LIBKT_VERSION_MAX=$(($(get_major_version)-3)).$(($(get_version_component_range 2)+1)) |
32 |
MY_P="${PN}-${MY_PV}" |
33 |
- KDE_HANDBOOK="optional" |
34 |
- KDE_DOC_DIRS="doc" |
35 |
|
36 |
- KDE_LINGUAS="ar ast be bg bs ca ca@valencia cs da de el en_GB eo es et eu |
37 |
- fi fr ga gl hi hne hr hu is it ja km ku lt lv mai ms nb nds nl nn oc |
38 |
- pl pt pt_BR ro ru se si sk sl sq sr sr@ijekavian sr@ijekavianlatin |
39 |
- sr@latin sv tr ug uk zh_CN zh_TW" |
40 |
SRC_URI="http://ktorrent.org/downloads/${MY_PV}/${MY_P}.tar.bz2" |
41 |
S="${WORKDIR}"/"${MY_P}" |
42 |
|
43 |
@@ -30,68 +24,101 @@ else |
44 |
KEYWORDS="" |
45 |
fi |
46 |
|
47 |
-inherit kde4-base |
48 |
+KDE_HANDBOOK="forceoptional" |
49 |
+QT_MINIMAL="5.5.1" |
50 |
+inherit kde5 |
51 |
|
52 |
-DESCRIPTION="A BitTorrent program for KDE" |
53 |
+DESCRIPTION="Powerful BitTorrent client based on KDE Frameworks" |
54 |
HOMEPAGE="http://ktorrent.org/" |
55 |
|
56 |
LICENSE="GPL-2" |
57 |
-SLOT="4" |
58 |
-IUSE="+bwscheduler debug +downloadorder +infowidget +ipfilter +kross +logviewer |
59 |
-+magnetgenerator +mediaplayer plasma rss +scanfolder +search +shutdown +stats |
60 |
-+upnp webinterface +zeroconf" |
61 |
+IUSE="+bwscheduler +downloadorder +infowidget +logviewer |
62 |
++magnetgenerator +mediaplayer +shutdown +upnp +zeroconf" |
63 |
|
64 |
-COMMONDEPEND=" |
65 |
- <net-libs/libktorrent-${LIBKT_VERSION_MAX} |
66 |
- >=net-libs/libktorrent-${LIBKT_VERSION_MIN} |
67 |
+COMMON_DEPEND=" |
68 |
+ $(add_frameworks_dep karchive) |
69 |
+ $(add_frameworks_dep kcmutils) |
70 |
+ $(add_frameworks_dep kconfig) |
71 |
+ $(add_frameworks_dep kcoreaddons) |
72 |
+ $(add_frameworks_dep kcrash) |
73 |
+ $(add_frameworks_dep kdbusaddons) |
74 |
+ $(add_frameworks_dep kdelibs4support) |
75 |
+ $(add_frameworks_dep kdewebkit) |
76 |
+ $(add_frameworks_dep ki18n) |
77 |
+ $(add_frameworks_dep kiconthemes) |
78 |
+ $(add_frameworks_dep kio) |
79 |
+ $(add_frameworks_dep knotifications) |
80 |
+ $(add_frameworks_dep knotifyconfig) |
81 |
+ $(add_frameworks_dep kparts) |
82 |
+ $(add_frameworks_dep kservice) |
83 |
+ $(add_frameworks_dep kwidgetsaddons) |
84 |
+ $(add_frameworks_dep kxmlgui) |
85 |
+ $(add_frameworks_dep solid) |
86 |
+ $(add_frameworks_dep sonnet) |
87 |
+ $(add_qt_dep qtdbus) |
88 |
+ $(add_qt_dep qtgui) |
89 |
+ $(add_qt_dep qtdeclarative) |
90 |
+ $(add_qt_dep qtnetwork) |
91 |
+ $(add_qt_dep qtwidgets) |
92 |
+ <net-libs/libktorrent-${LIBKT_VERSION_MAX}:5 |
93 |
+ >=net-libs/libktorrent-${LIBKT_VERSION_MIN}:5 |
94 |
infowidget? ( dev-libs/geoip ) |
95 |
- mediaplayer? ( >=media-libs/taglib-1.5 ) |
96 |
- plasma? ( $(add_kdebase_dep libtaskmanager) ) |
97 |
- rss? ( $(add_kdeapps_dep kdepimlibs) ) |
98 |
- shutdown? ( $(add_kdebase_dep libkworkspace) ) |
99 |
+ mediaplayer? ( |
100 |
+ media-libs/phonon[qt5] |
101 |
+ >=media-libs/taglib-1.5 |
102 |
+ ) |
103 |
+ shutdown? ( $(add_plasma_dep plasma-workspace) ) |
104 |
+ zeroconf? ( $(add_frameworks_dep kdnssd) ) |
105 |
" |
106 |
-DEPEND="${COMMONDEPEND} |
107 |
+DEPEND="${COMMON_DEPEND} |
108 |
dev-libs/boost:= |
109 |
sys-devel/gettext |
110 |
" |
111 |
-RDEPEND="${COMMONDEPEND} |
112 |
- ipfilter? ( |
113 |
- app-arch/bzip2 |
114 |
- app-arch/unzip |
115 |
- $(add_kdeapps_dep kdebase-kioslaves) |
116 |
- ) |
117 |
- kross? ( $(add_kdebase_dep krosspython) ) |
118 |
+RDEPEND="${COMMON_DEPEND} |
119 |
+ !net-p2p/ktorrent:4 |
120 |
" |
121 |
+# add back when ported - DEPEND |
122 |
+# kross? ( $(add_frameworks_dep kross) ) |
123 |
+# rss? ( $(add_kdeapps_dep kdepimlibs) ) |
124 |
+# add back when ported - RDEPEND |
125 |
+# ipfilter? ( |
126 |
+# app-arch/bzip2 |
127 |
+# app-arch/unzip |
128 |
+# $(add_kdeapps_dep kdebase-kioslaves) |
129 |
+# ) |
130 |
+# kross? ( $(add_kdebase_dep krosspython) ) |
131 |
|
132 |
-src_prepare() { |
133 |
- if ! use plasma; then |
134 |
- sed -i \ |
135 |
- -e "s:add_subdirectory(plasma):#nada:g" \ |
136 |
- CMakeLists.txt || die "Failed to make plasmoid optional" |
137 |
- fi |
138 |
- |
139 |
- kde4-base_src_prepare |
140 |
-} |
141 |
+# src_prepare() { |
142 |
+# add back when ported |
143 |
+# if ! use plasma; then |
144 |
+# sed -i \ |
145 |
+# -e "s:add_subdirectory(plasma):#nada:g" \ |
146 |
+# CMakeLists.txt || die "Failed to make plasmoid optional" |
147 |
+# fi |
148 |
+# |
149 |
+# kde5_src_prepare |
150 |
+# } |
151 |
|
152 |
src_configure() { |
153 |
local mycmakeargs=( |
154 |
- $(cmake-utils_use_enable bwscheduler BWSCHEDULER_PLUGIN) |
155 |
- $(cmake-utils_use_enable downloadorder DOWNLOADORDER_PLUGIN) |
156 |
- $(cmake-utils_use_enable infowidget INFOWIDGET_PLUGIN) |
157 |
- $(cmake-utils_use_with infowidget SYSTEM_GEOIP) |
158 |
- $(cmake-utils_use_enable ipfilter IPFILTER_PLUGIN) |
159 |
- $(cmake-utils_use_enable kross SCRIPTING_PLUGIN) |
160 |
- $(cmake-utils_use_enable logviewer LOGVIEWER_PLUGIN) |
161 |
- $(cmake-utils_use_enable magnetgenerator MAGNETGENERATOR_PLUGIN) |
162 |
- $(cmake-utils_use_enable mediaplayer MEDIAPLAYER_PLUGIN) |
163 |
- $(cmake-utils_use_enable rss SYNDICATION_PLUGIN) |
164 |
- $(cmake-utils_use_enable scanfolder SCANFOLDER_PLUGIN) |
165 |
- $(cmake-utils_use_enable search SEARCH_PLUGIN) |
166 |
- $(cmake-utils_use_enable shutdown SHUTDOWN_PLUGIN) |
167 |
- $(cmake-utils_use_enable stats STATS_PLUGIN) |
168 |
- $(cmake-utils_use_enable upnp UPNP_PLUGIN) |
169 |
- $(cmake-utils_use_enable webinterface WEBINTERFACE_PLUGIN) |
170 |
- $(cmake-utils_use_enable zeroconf ZEROCONF_PLUGIN) |
171 |
+ -DENABLE_BWSCHEDULER_PLUGIN=$(usex bwscheduler) |
172 |
+ -DENABLE_DOWNLOADORDER_PLUGIN=$(usex downloadorder) |
173 |
+ -DENABLE_INFOWIDGET_PLUGIN=$(usex infowidget) |
174 |
+ -DWITH_SYSTEM_GEOIP=$(usex infowidget) |
175 |
+ -DENABLE_LOGVIEWER_PLUGIN=$(usex logviewer) |
176 |
+ -DENABLE_MAGNETGENERATOR_PLUGIN=$(usex magnetgenerator) |
177 |
+ -DENABLE_MEDIAPLAYER_PLUGIN=$(usex mediaplayer) |
178 |
+ -DENABLE_SHUTDOWN_PLUGIN=$(usex shutdown) |
179 |
+ -DENABLE_UPNP_PLUGIN=$(usex upnp) |
180 |
+ -DENABLE_ZEROCONF_PLUGIN=$(usex zeroconf) |
181 |
) |
182 |
- kde4-base_src_configure |
183 |
+# add back when ported |
184 |
+# -DENABLE_IPFILTER_PLUGIN=$(usex ipfilter) |
185 |
+# -DENABLE_SCRIPTING_PLUGIN=$(usex kross) |
186 |
+# -DENABLE_SYNDICATION_PLUGIN=$(usex rss) |
187 |
+# -DENABLE_SCANFOLDER_PLUGIN=$(usex scanfolder) |
188 |
+# -DENABLE_SEARCH_PLUGIN=$(usex search) |
189 |
+# -DENABLE_STATS_PLUGIN=$(usex stats) |
190 |
+# -DENABLE_WEBINTERFACE_PLUGIN=$(usex webinterface) |
191 |
+ kde5_src_configure |
192 |
} |
193 |
|
194 |
diff --git a/net-p2p/ktorrent/metadata.xml b/net-p2p/ktorrent/metadata.xml |
195 |
index e59d76f..839ea00 100644 |
196 |
--- a/net-p2p/ktorrent/metadata.xml |
197 |
+++ b/net-p2p/ktorrent/metadata.xml |
198 |
@@ -12,19 +12,12 @@ |
199 |
<use> |
200 |
<flag name="bwscheduler">Schedule upload and download limits over a period of a week</flag> |
201 |
<flag name="downloadorder">Specify the download order of a multi-file torrent</flag> |
202 |
- <flag name="kross">Enable kross scripting support</flag> |
203 |
<flag name="infowidget">Displays general information about a torrent in several tabs</flag> |
204 |
- <flag name="ipfilter">Filter IP addresses through a blocklist</flag> |
205 |
<flag name="logviewer">Displays the logging output</flag> |
206 |
<flag name="magnetgenerator">Generates magnet URI's</flag> |
207 |
<flag name="mediaplayer">Phonon-based media player</flag> |
208 |
- <flag name="rss">Syndication plugin for KTorrent, supporting RSS and Atom feeds</flag> |
209 |
- <flag name="scanfolder">Scan folders for torrent files and load them</flag> |
210 |
- <flag name="search">Search for torrents</flag> |
211 |
<flag name="shutdown">Shutdown when done</flag> |
212 |
- <flag name="stats">Shows statistics about torrents in several graphs</flag> |
213 |
<flag name="upnp">Forward ports using UPnP</flag> |
214 |
- <flag name="webinterface">Allows control of KTorrent via a web interface</flag> |
215 |
<flag name="zeroconf">Discover peers on the local network using the Zeroconf protocol</flag> |
216 |
</use> |
217 |
</pkgmetadata> |