blob: c33c54efa851d72c8d7e1babefe007e34b7843dd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
|
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
LIBKT_VERSION_MIN="${PV}"
LIBKT_VERSION_MAX="99999999"
if [[ ${PV} != 9999* ]]; then
inherit versionator
# upstream likes to skip that _ in beta releases
MY_PV="${PV/_/}"
LIBKT_VERSION_MIN=$(($(get_major_version)-3)).$(get_version_component_range 2-3 ${PV})
LIBKT_VERSION_MAX=$(($(get_major_version)-3)).$(($(get_version_component_range 2)+1))
MY_P="${PN}-${MY_PV}"
SRC_URI="mirror://kde/stable/${PN}/$(get_version_component_range 1-2)/${MY_P}.tar.xz"
S="${WORKDIR}"/"${MY_P}"
KEYWORDS="amd64 x86"
else
LIBKT_VERSION_MIN="${PV}"
LIBKT_VERSION_MAX="99999999"
fi
KDE_HANDBOOK="forceoptional"
inherit kde5
DESCRIPTION="Powerful BitTorrent client based on KDE Frameworks"
HOMEPAGE="https://www.kde.org/applications/internet/ktorrent/"
LICENSE="GPL-2"
IUSE="+bwscheduler +downloadorder +infowidget +logviewer
+magnetgenerator +mediaplayer +shutdown +stats +upnp +zeroconf"
COMMON_DEPEND="
$(add_frameworks_dep karchive)
$(add_frameworks_dep kcmutils)
$(add_frameworks_dep kcompletion)
$(add_frameworks_dep kconfig)
$(add_frameworks_dep kconfigwidgets)
$(add_frameworks_dep kcoreaddons)
$(add_frameworks_dep kcrash)
$(add_frameworks_dep kdbusaddons)
$(add_frameworks_dep kdelibs4support)
$(add_frameworks_dep ki18n)
$(add_frameworks_dep kiconthemes)
$(add_frameworks_dep kio)
$(add_frameworks_dep knotifications)
$(add_frameworks_dep knotifyconfig)
$(add_frameworks_dep kparts)
$(add_frameworks_dep kservice)
$(add_frameworks_dep kwidgetsaddons)
$(add_frameworks_dep kwindowsystem)
$(add_frameworks_dep kxmlgui)
$(add_frameworks_dep solid)
$(add_frameworks_dep sonnet)
$(add_qt_dep qtdbus)
$(add_qt_dep qtgui)
$(add_qt_dep qtnetwork)
$(add_qt_dep qtwidgets)
<net-libs/libktorrent-${LIBKT_VERSION_MAX}:5
>=net-libs/libktorrent-${LIBKT_VERSION_MIN}:5
infowidget? ( dev-libs/geoip )
mediaplayer? (
media-libs/phonon[qt5(+)]
>=media-libs/taglib-1.5
)
shutdown? ( $(add_plasma_dep plasma-workspace) )
stats? ( $(add_frameworks_dep kplotting) )
zeroconf? ( $(add_frameworks_dep kdnssd) )
"
DEPEND="${COMMON_DEPEND}
dev-libs/boost
sys-devel/gettext
"
RDEPEND="${COMMON_DEPEND}
!net-p2p/ktorrent:4
"
# add back when ported - DEPEND
# kross? ( $(add_frameworks_dep kross) )
# rss? ( $(add_kdeapps_dep kdepimlibs) )
# add back when ported - RDEPEND
# ipfilter? (
# app-arch/bzip2
# app-arch/unzip
# $(add_kdeapps_dep kdebase-kioslaves)
# )
# kross? ( $(add_kdebase_dep krosspython) )
# src_prepare() {
# add back when ported
# if ! use plasma; then
# sed -i \
# -e "s:add_subdirectory(plasma):#nada:g" \
# CMakeLists.txt || die "Failed to make plasmoid optional"
# fi
#
# kde5_src_prepare
# }
PATCHES=( "${FILESDIR}/${P}-build.patch" )
src_prepare() {
kde5_src_prepare
punt_bogus_dep KF5 Kross
}
src_configure() {
local mycmakeargs=(
-DENABLE_BWSCHEDULER_PLUGIN=$(usex bwscheduler)
-DENABLE_DOWNLOADORDER_PLUGIN=$(usex downloadorder)
-DENABLE_INFOWIDGET_PLUGIN=$(usex infowidget)
-DWITH_SYSTEM_GEOIP=$(usex infowidget)
-DENABLE_LOGVIEWER_PLUGIN=$(usex logviewer)
-DENABLE_MAGNETGENERATOR_PLUGIN=$(usex magnetgenerator)
-DENABLE_MEDIAPLAYER_PLUGIN=$(usex mediaplayer)
-DENABLE_SHUTDOWN_PLUGIN=$(usex shutdown)
-DENABLE_STATS_PLUGIN=$(usex stats)
-DENABLE_UPNP_PLUGIN=$(usex upnp)
-DENABLE_ZEROCONF_PLUGIN=$(usex zeroconf)
)
# add back when ported
# -DENABLE_IPFILTER_PLUGIN=$(usex ipfilter)
# -DENABLE_SCRIPTING_PLUGIN=$(usex kross)
# -DENABLE_SYNDICATION_PLUGIN=$(usex rss)
# -DENABLE_SCANFOLDER_PLUGIN=$(usex scanfolder)
# -DENABLE_SEARCH_PLUGIN=$(usex search)
# -DENABLE_WEBINTERFACE_PLUGIN=$(usex webinterface)
kde5_src_configure
}
|