summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2020-07-20 22:13:54 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2020-07-20 23:33:44 +0200
commit49817eeb7602a4682bc7bf144eb7894186af5a9f (patch)
tree1fdddc466e9f456ca6d2b1e68582cc733e92b839 /net-p2p
parentmedia-libs/mesa: Use non-deprecated options (diff)
downloadgentoo-49817eeb7602a4682bc7bf144eb7894186af5a9f.tar.gz
gentoo-49817eeb7602a4682bc7bf144eb7894186af5a9f.tar.bz2
gentoo-49817eeb7602a4682bc7bf144eb7894186af5a9f.zip
net-p2p/ktorrent: Drop 5.1.2-r2
Package-Manager: Portage-3.0.0, Repoman-2.3.23 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/ktorrent/Manifest1
-rw-r--r--net-p2p/ktorrent/files/ktorrent-5.1.1-singlefile-torrent.patch140
-rw-r--r--net-p2p/ktorrent/files/ktorrent-5.1.2-crash-on-exit.patch386
-rw-r--r--net-p2p/ktorrent/ktorrent-5.1.2-r2.ebuild109
4 files changed, 0 insertions, 636 deletions
diff --git a/net-p2p/ktorrent/Manifest b/net-p2p/ktorrent/Manifest
index 9931d7ca79af..eeea1b586d7f 100644
--- a/net-p2p/ktorrent/Manifest
+++ b/net-p2p/ktorrent/Manifest
@@ -1,2 +1 @@
-DIST ktorrent-5.1.2.tar.xz 2048604 BLAKE2B 761df1e0aab5c4457311ae821a47ebf7b5b82b2839b4bf238491231caa213370cc649a1c0cafd332b42bbb84230f4a313e5172db722ff3c7af81c0daba450a98 SHA512 b62d05650216721299dc9db23da1a2d6ae5d3b77583ad4bd99ac032d7b135cce567feff3b66d27ac001d77e30517112e4e8c8bf8e83c1106a79509ec45498621
DIST ktorrent-5.2.0.tar.xz 2056012 BLAKE2B c59cb34675b9c4e023b6c22f795bf146d64acaea069efa1f1663888a0ada6f7c8328a15bdc2fc453e31a9f451c6b0203dfdfd02098cc52f5d828b87c23d857b5 SHA512 141976612cfe6bf4bd06e96842d7bc51ced7a3ab8e13c25446a00c031054698f851fbb1a31f3425dda5a428408bb1ceb51a4a420eaf2e79193b17a0cc7d7a387
diff --git a/net-p2p/ktorrent/files/ktorrent-5.1.1-singlefile-torrent.patch b/net-p2p/ktorrent/files/ktorrent-5.1.1-singlefile-torrent.patch
deleted file mode 100644
index b22518656288..000000000000
--- a/net-p2p/ktorrent/files/ktorrent-5.1.1-singlefile-torrent.patch
+++ /dev/null
@@ -1,140 +0,0 @@
-From dab5abcd2172155c511e0666d867c37382829226 Mon Sep 17 00:00:00 2001
-From: Jiva Totin <jiva.totin@gmail.com>
-Date: Sun, 17 Feb 2019 20:00:11 +0000
-Subject: Allow creating torrent for a single file.
-
-Added 2 new radio buttons. One for choosing directory and the other one for
-choosing files.
-
-BUG: 384452
-Differential Revision: https://phabricator.kde.org/D11728
----
- ktorrent/dialogs/torrentcreatordlg.cpp | 18 ++++++++++-
- ktorrent/dialogs/torrentcreatordlg.h | 3 ++
- ktorrent/dialogs/torrentcreatordlg.ui | 56 +++++++++++++++++++++++-----------
- 3 files changed, 58 insertions(+), 19 deletions(-)
-
-diff --git a/ktorrent/dialogs/torrentcreatordlg.cpp b/ktorrent/dialogs/torrentcreatordlg.cpp
-index bb3710d..b46b291 100644
---- a/ktorrent/dialogs/torrentcreatordlg.cpp
-+++ b/ktorrent/dialogs/torrentcreatordlg.cpp
-@@ -54,12 +54,17 @@ namespace kt
- adjustSize();
- loadGroups();
-
-- m_url->setMode(KFile::File | KFile::ExistingOnly | KFile::LocalOnly | KFile::Directory);
-+ m_url->setMode(KFile::ExistingOnly | KFile::LocalOnly | KFile::Directory);
-+ m_selectDirectory->setChecked(true);
-+
- m_dht_tab->setEnabled(false);
-
- connect(m_buttonBox, &QDialogButtonBox::accepted, this, &QDialog::accept);
- connect(m_buttonBox, &QDialogButtonBox::rejected, this, &QDialog::reject);
-
-+ connect(m_selectDirectory, &QRadioButton::clicked, this, &TorrentCreatorDlg::selectDirectory);
-+ connect(m_selectFile, &QRadioButton::clicked, this, &TorrentCreatorDlg::selectFile);
-+
- connect(m_dht, &QCheckBox::toggled, this, &TorrentCreatorDlg::dhtToggled);
-
- // tracker box stuff
-@@ -428,4 +433,15 @@ namespace kt
- m_progress->setValue(mktor->getCurrentChunk());
- }
-
-+ void TorrentCreatorDlg::selectFile()
-+ {
-+ m_url->setMode(KFile::File | KFile::ExistingOnly | KFile::LocalOnly);
-+ }
-+
-+ void TorrentCreatorDlg::selectDirectory()
-+ {
-+ m_url->setMode(KFile::ExistingOnly | KFile::LocalOnly | KFile::Directory);
-+ }
-+
-+
- }
-diff --git a/ktorrent/dialogs/torrentcreatordlg.h b/ktorrent/dialogs/torrentcreatordlg.h
-index 12a1a43..b59d880 100644
---- a/ktorrent/dialogs/torrentcreatordlg.h
-+++ b/ktorrent/dialogs/torrentcreatordlg.h
-@@ -73,6 +73,9 @@ namespace kt
- void accept() override;
- void reject() override;
-
-+ void selectFile();// required for radio button for new torrent creation
-+ void selectDirectory();
-+
- private:
- void loadGroups();
- void loadCompleterData();
-diff --git a/ktorrent/dialogs/torrentcreatordlg.ui b/ktorrent/dialogs/torrentcreatordlg.ui
-index b954aed..02bf390 100644
---- a/ktorrent/dialogs/torrentcreatordlg.ui
-+++ b/ktorrent/dialogs/torrentcreatordlg.ui
-@@ -15,26 +15,46 @@
- </property>
- <layout class="QVBoxLayout" name="verticalLayout">
- <item>
-- <widget class="QLabel" name="label">
-- <property name="text">
-+ <widget class="QGroupBox" name="groupBox">
-+ <property name="title">
- <string>File or directory to create torrent from:</string>
- </property>
-- </widget>
-- </item>
-- <item>
-- <widget class="KUrlRequester" name="m_url">
-- <property name="sizePolicy">
-- <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
-- <horstretch>0</horstretch>
-- <verstretch>0</verstretch>
-- </sizepolicy>
-- </property>
-- <property name="minimumSize">
-- <size>
-- <width>0</width>
-- <height>0</height>
-- </size>
-- </property>
-+ <layout class="QVBoxLayout" name="verticalLayout_2">
-+ <item>
-+ <widget class="KUrlRequester" name="m_url">
-+ <property name="sizePolicy">
-+ <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
-+ <horstretch>0</horstretch>
-+ <verstretch>0</verstretch>
-+ </sizepolicy>
-+ </property>
-+ <property name="minimumSize">
-+ <size>
-+ <width>0</width>
-+ <height>0</height>
-+ </size>
-+ </property>
-+ </widget>
-+ </item>
-+ <item>
-+ <layout class="QHBoxLayout" name="horizontalLayout_2">
-+ <item>
-+ <widget class="QRadioButton" name="m_selectDirectory">
-+ <property name="text">
-+ <string>Select Directory</string>
-+ </property>
-+ </widget>
-+ </item>
-+ <item>
-+ <widget class="QRadioButton" name="m_selectFile">
-+ <property name="text">
-+ <string>Select File</string>
-+ </property>
-+ </widget>
-+ </item>
-+ </layout>
-+ </item>
-+ </layout>
- </widget>
- </item>
- <item>
---
-cgit v1.1
diff --git a/net-p2p/ktorrent/files/ktorrent-5.1.2-crash-on-exit.patch b/net-p2p/ktorrent/files/ktorrent-5.1.2-crash-on-exit.patch
deleted file mode 100644
index 5cb6640d16f4..000000000000
--- a/net-p2p/ktorrent/files/ktorrent-5.1.2-crash-on-exit.patch
+++ /dev/null
@@ -1,386 +0,0 @@
-From b819ef6a35495e12a204cbb241cdb2502c4cd11e Mon Sep 17 00:00:00 2001
-From: Valerii Malov <jazzvoid@gmail.com>
-Date: Sun, 22 Sep 2019 21:20:47 +0300
-Subject: Cleanup ViewModel a bit and try to fix crash on exit
-
-Summary:
-removeTorrent makes changes to torrent list we are currently iterating
-on per-item basis, this causees heap-use-after-free in onExit
-Just call removeRows which should be functionally the same, but should
-delete all items in one batch
-
-CCBUG: 383127
-
-Compact ViewModel::Item::update
-Fix a few warnings (0 as nullptr, c-style casts)
-Remove useless ViewModel::torrentFromIndex variant
-Remove unused headers
-add CMakeLists.txt.user to gitignore
-
-Test Plan: build with asan, run & exit, see asan stacktrace before changing onExit
-
-Reviewers: stikonas
-
-Differential Revision: https://phabricator.kde.org/D24149
----
- .gitignore | 1 +
- ktorrent/CMakeLists.txt | 1 +
- ktorrent/view/viewmodel.cpp | 197 ++++++++++++--------------------------------
- ktorrent/view/viewmodel.h | 21 +++--
- 4 files changed, 63 insertions(+), 157 deletions(-)
-
-diff --git a/.gitignore b/.gitignore
-index 2ad76d6..d88e731 100644
---- a/.gitignore
-+++ b/.gitignore
-@@ -1,3 +1,4 @@
- build
- .kdev4/
- ktorrent.kdev4
-+CMakeLists.txt.user
-diff --git a/ktorrent/CMakeLists.txt b/ktorrent/CMakeLists.txt
-index 75ba8a1..bf605a5 100644
---- a/ktorrent/CMakeLists.txt
-+++ b/ktorrent/CMakeLists.txt
-@@ -91,6 +91,7 @@ set(KTORRENT_ICONS_PNG
- ecm_add_app_icon(ktorrent_SRC ICONS ${KTORRENT_ICONS_PNG})
-
- add_executable(ktorrent_app ${ktorrent_SRC})
-+set_property(TARGET ktorrent_app PROPERTY CXX_STANDARD 14)
- set_target_properties(ktorrent_app PROPERTIES OUTPUT_NAME ktorrent)
-
- target_link_libraries(ktorrent_app
-diff --git a/ktorrent/view/viewmodel.cpp b/ktorrent/view/viewmodel.cpp
-index 6834186..b9feeab 100644
---- a/ktorrent/view/viewmodel.cpp
-+++ b/ktorrent/view/viewmodel.cpp
-@@ -32,18 +32,17 @@
-
- #include <KLocalizedString>
-
--#include <util/log.h>
--#include <util/sha1hash.h>
--#include <util/functions.h>
-+#include <groups/group.h>
- #include <interfaces/torrentinterface.h>
--#include <interfaces/trackerinterface.h>
--#include <torrent/timeestimator.h>
- #include <torrent/queuemanager.h>
--#include <groups/group.h>
-+#include <torrent/timeestimator.h>
-+#include <util/functions.h>
-+#include <util/sha1hash.h>
-+
- #include "core.h"
--#include "viewdelegate.h"
--#include "view.h"
- #include "settings.h"
-+#include "view.h"
-+#include "viewdelegate.h"
-
- using namespace bt;
-
-@@ -80,125 +79,45 @@ namespace kt
- {
- bool ret = false;
- const TorrentStats& s = tc->getStats();
-- if (status != s.status)
-- {
-- to_update.append(model->index(row, NAME));
-- status = s.status;
-- if (sort_column == NAME)
-- ret = true;
-- }
--
-- if (bytes_downloaded != s.bytes_downloaded)
-- {
-- to_update.append(model->index(row, BYTES_DOWNLOADED));
-- bytes_downloaded = s.bytes_downloaded;
-- if (sort_column == BYTES_DOWNLOADED)
-- ret = true;
-- }
--
-- if (total_bytes_to_download != s.total_bytes_to_download)
-- {
-- to_update.append(model->index(row, TOTAL_BYTES_TO_DOWNLOAD));
-- total_bytes_to_download = s.total_bytes_to_download;
-- if (sort_column == TOTAL_BYTES_TO_DOWNLOAD)
-- ret = true;
-- }
--
-- if (bytes_uploaded != s.bytes_uploaded)
-- {
-- to_update.append(model->index(row, BYTES_UPLOADED));
-- bytes_uploaded = s.bytes_uploaded;
-- if (sort_column == BYTES_UPLOADED)
-- ret = true;
-- }
--
-- if (bytes_left != s.bytes_left_to_download)
-- {
-- to_update.append(model->index(row, BYTES_LEFT));
-- bytes_left = s.bytes_left_to_download;
-- if (sort_column == BYTES_LEFT)
-- ret = true;
-- }
--
-- if (download_rate != s.download_rate)
-- {
-- to_update.append(model->index(row, DOWNLOAD_RATE));
-- download_rate = s.download_rate;
-- if (sort_column == DOWNLOAD_RATE)
-- ret = true;
-- }
--
-- if (upload_rate != s.upload_rate)
-- {
-- to_update.append(model->index(row, UPLOAD_RATE));
-- upload_rate = s.upload_rate;
-- if (sort_column == UPLOAD_RATE)
-- ret = true;
-- }
-
-- int neta = tc->getETA();
-- if (eta != neta)
-- {
-- to_update.append(model->index(row, ETA));
-- eta = neta;
-- if (sort_column == ETA)
-- ret = true;
-- }
--
-- if (seeders_connected_to != s.seeders_connected_to || seeders_total != s.seeders_total)
-- {
-- to_update.append(model->index(row, SEEDERS));
-- seeders_connected_to = s.seeders_connected_to;
-- seeders_total = s.seeders_total;
-- if (sort_column == SEEDERS)
-- ret = true;
-- }
--
-- if (leechers_total != s.leechers_total || leechers_connected_to != s.leechers_connected_to)
-- {
-- to_update.append(model->index(row, LEECHERS));
-- leechers_total = s.leechers_total;
-- leechers_connected_to = s.leechers_connected_to;
-- if (sort_column == LEECHERS)
-- ret = true;
-- }
--
-- double perc = Percentage(s);
-- if (fabs(percentage - perc) > 0.001)
-- {
-- to_update.append(model->index(row, PERCENTAGE));
-- percentage = perc;
-- if (sort_column == PERCENTAGE)
-- ret = true;
-- }
--
-- float ratio = s.shareRatio();
-- if (fabsf(share_ratio - ratio) > 0.001)
-- {
-- to_update.append(model->index(row, SHARE_RATIO));
-- share_ratio = ratio;
-- if (sort_column == SHARE_RATIO)
-- ret = true;
-- }
-+ const auto update_if_differs = [&](auto &target, const auto &source, int column){
-+ if (target != source) {
-+ to_update.append(model->index(row, column));
-+ target = source;
-+ ret |= (sort_column == column);
-+ }
-+ };
-
-- Uint32 rdl = tc->getRunningTimeDL();
-- if (runtime_dl != rdl)
-- {
-- to_update.append(model->index(row, DOWNLOAD_TIME));
-- runtime_dl = rdl;
-- if (sort_column == DOWNLOAD_TIME)
-- ret = true;
-- }
-+ const auto update_if_differs_float = [&](auto &target, const auto &source, int column){
-+ if (fabs(target - source) > 0.001) {
-+ to_update.append(model->index(row, column));
-+ target = source;
-+ ret |= (sort_column == column);
-+ }
-+ };
-+
-+ update_if_differs(status, s.status, NAME);
-+ update_if_differs(bytes_downloaded, s.bytes_downloaded, BYTES_DOWNLOADED);
-+ update_if_differs(total_bytes_to_download, s.total_bytes_to_download, TOTAL_BYTES_TO_DOWNLOAD);
-+ update_if_differs(bytes_uploaded, s.bytes_uploaded, BYTES_UPLOADED);
-+ update_if_differs(bytes_left, s.bytes_left, BYTES_LEFT);
-+ update_if_differs(download_rate, s.download_rate, DOWNLOAD_RATE);
-+ update_if_differs(upload_rate, s.upload_rate, UPLOAD_RATE);
-+ update_if_differs(eta, tc->getETA(), ETA);
-+ update_if_differs(seeders_connected_to, s.seeders_connected_to, SEEDERS);
-+ update_if_differs(seeders_total, s.seeders_total, SEEDERS);
-+ update_if_differs(leechers_connected_to, s.leechers_connected_to, LEECHERS);
-+ update_if_differs(leechers_total, s.leechers_total, LEECHERS);
-+
-+ update_if_differs_float(percentage, Percentage(s), PERCENTAGE);
-+ update_if_differs_float(share_ratio, s.shareRatio(), SHARE_RATIO);
-+
-+ update_if_differs(runtime_dl, tc->getRunningTimeDL(), DOWNLOAD_TIME);
-+ const auto rul = (tc->getRunningTimeUL() >= tc->getRunningTimeDL()
-+ ? tc->getRunningTimeUL() - tc->getRunningTimeDL()
-+ : 0);
-+ update_if_differs(runtime_ul, rul, SEED_TIME);
-
-- Uint32 rul = tc->getRunningTimeUL();
-- rul = rul >= rdl ? rul - rdl : 0; // make sure rul cannot go negative
-- if (runtime_ul != rul)
-- {
-- to_update.append(model->index(row, SEED_TIME));
-- runtime_ul = rul;
-- if (sort_column == SEED_TIME)
-- ret = true;
-- }
- return ret;
- }
-
-@@ -223,13 +142,11 @@ namespace kt
- return BytesPerSecToString(download_rate);
- else
- return QVariant();
-- break;
- case UPLOAD_RATE:
- if (upload_rate >= 103) // lowest "visible" speed, all below will be 0,0 Kb/s
- return BytesPerSecToString(upload_rate);
- else
- return QVariant();
-- break;
- case ETA:
- if (eta == bt::TimeEstimator::NEVER)
- return QString(QChar(0x221E)); // infinity
-@@ -237,7 +154,6 @@ namespace kt
- return DurationToString(eta);
- else
- return QVariant();
-- break;
- case SEEDERS:
- return QString(QString::number(seeders_connected_to) + QLatin1String(" (") + QString::number(seeders_total) + QLatin1Char(')'));
- case LEECHERS:
-@@ -397,7 +313,7 @@ namespace kt
- connect(core, &Core::torrentRemoved, this, &ViewModel::removeTorrent);
- sort_column = 0;
- sort_order = Qt::AscendingOrder;
-- group = 0;
-+ group = nullptr;
- num_visible = 0;
-
- kt::QueueManager* qman = core->getQueueManager();
-@@ -635,7 +551,7 @@ namespace kt
- if (!index.isValid() || index.row() >= torrents.count())
- return QVariant();
-
-- Item* item = (Item*)index.internalPointer();
-+ Item* item = reinterpret_cast<Item*>(index.internalPointer());
- if (!item)
- return QVariant();
-
-@@ -699,7 +615,7 @@ namespace kt
- return false;
-
- QString name = value.toString();
-- Item* item = (Item*)index.internalPointer();
-+ Item* item = reinterpret_cast<Item*>(index.internalPointer());
- if (!item)
- return false;
-
-@@ -796,28 +712,20 @@ namespace kt
- }
- }
-
-- const bt::TorrentInterface* ViewModel::torrentFromIndex(const QModelIndex& index) const
-- {
-- if (index.isValid() && index.row() < torrents.count())
-- return torrents[index.row()]->tc;
-- else
-- return 0;
-- }
--
-- bt::TorrentInterface* ViewModel::torrentFromIndex(const QModelIndex& index)
-+ bt::TorrentInterface* ViewModel::torrentFromIndex(const QModelIndex& index) const
- {
- if (index.isValid() && index.row() < torrents.count())
- return torrents[index.row()]->tc;
- else
-- return 0;
-+ return nullptr;
- }
-
-- bt::TorrentInterface* ViewModel::torrentFromRow(int index)
-+ bt::TorrentInterface* ViewModel::torrentFromRow(int index) const
- {
- if (index < torrents.count() && index >= 0)
- return torrents[index]->tc;
- else
-- return 0;
-+ return nullptr;
- }
-
- void ViewModel::allTorrents(QList<bt::TorrentInterface*> & tlist) const
-@@ -854,10 +762,7 @@ namespace kt
- void ViewModel::onExit()
- {
- // items should be removed before Core delete their tc data.
-- for (Item* item : qAsConst(torrents))
-- {
-- removeTorrent(item->tc);
-- }
-+ removeRows(0, rowCount(), QModelIndex());
- }
-
- class ViewModelItemCmp
-diff --git a/ktorrent/view/viewmodel.h b/ktorrent/view/viewmodel.h
-index d4e0a64..6422396 100644
---- a/ktorrent/view/viewmodel.h
-+++ b/ktorrent/view/viewmodel.h
-@@ -22,9 +22,15 @@
- #ifndef KTVIEWMODEL_H
- #define KTVIEWMODEL_H
-
--#include <QList>
- #include <QAbstractTableModel>
--#include <interfaces/torrentinterface.h>
-+#include <QList>
-+
-+#include <torrent/torrentstats.h>
-+#include <util/constants.h>
-+
-+namespace bt {
-+ class TorrentInterface;
-+}
-
- namespace kt
- {
-@@ -98,21 +104,14 @@ namespace kt
- * @param index The model index
- * @return The torrent if the index is valid and in the proper range, 0 otherwise
- */
-- const bt::TorrentInterface* torrentFromIndex(const QModelIndex& index) const;
--
-- /**
-- * Get a torrent from a model index.
-- * @param index The model index
-- * @return The torrent if the index is valid and in the proper range, 0 otherwise
-- */
-- bt::TorrentInterface* torrentFromIndex(const QModelIndex& index);
-+ bt::TorrentInterface *torrentFromIndex(const QModelIndex& index) const;
-
- /**
- * Get a torrent from a row.
- * @param index The row index
- * @return The torrent if the index is valid and in the proper range, 0 otherwise
- */
-- bt::TorrentInterface* torrentFromRow(int index);
-+ bt::TorrentInterface* torrentFromRow(int index) const;
-
- /**
- * Get all torrents
---
-cgit v1.1
diff --git a/net-p2p/ktorrent/ktorrent-5.1.2-r2.ebuild b/net-p2p/ktorrent/ktorrent-5.1.2-r2.ebuild
deleted file mode 100644
index cac1657e6a9e..000000000000
--- a/net-p2p/ktorrent/ktorrent-5.1.2-r2.ebuild
+++ /dev/null
@@ -1,109 +0,0 @@
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-ECM_HANDBOOK="optional"
-ECM_TEST="optional"
-KFMIN=5.60.0
-QTMIN=5.12.3
-VIRTUALX_REQUIRED="test"
-inherit ecm kde.org
-
-DESCRIPTION="Powerful BitTorrent client based on KDE Frameworks"
-HOMEPAGE="https://kde.org/applications/internet/org.kde.ktorrent"
-[[ ${KDE_BUILD_TYPE} = release ]] && SRC_URI="mirror://kde/stable/${PN}/${PV/%.0}/${P}.tar.xz"
-
-LICENSE="GPL-2"
-SLOT="5"
-KEYWORDS="amd64 arm64 ~x86"
-IUSE="+bwscheduler +downloadorder +infowidget +ipfilter +kross +logviewer +magnetgenerator
-+mediaplayer rss +scanfolder +search +shutdown +stats +upnp +zeroconf"
-
-BDEPEND="sys-devel/gettext"
-COMMON_DEPEND="
- >=dev-qt/qtdbus-${QTMIN}:5
- >=dev-qt/qtgui-${QTMIN}:5
- >=dev-qt/qtnetwork-${QTMIN}:5
- >=dev-qt/qtwidgets-${QTMIN}:5
- >=dev-qt/qtxml-${QTMIN}:5
- >=kde-frameworks/kcmutils-${KFMIN}:5
- >=kde-frameworks/kconfig-${KFMIN}:5
- >=kde-frameworks/kconfigwidgets-${KFMIN}:5
- >=kde-frameworks/kcoreaddons-${KFMIN}:5
- >=kde-frameworks/kcrash-${KFMIN}:5
- >=kde-frameworks/kdbusaddons-${KFMIN}:5
- >=kde-frameworks/ki18n-${KFMIN}:5
- >=kde-frameworks/kiconthemes-${KFMIN}:5
- >=kde-frameworks/kio-${KFMIN}:5
- >=kde-frameworks/knotifications-${KFMIN}:5
- >=kde-frameworks/knotifyconfig-${KFMIN}:5
- >=kde-frameworks/kparts-${KFMIN}:5
- >=kde-frameworks/kwidgetsaddons-${KFMIN}:5
- >=kde-frameworks/kwindowsystem-${KFMIN}:5
- >=kde-frameworks/kxmlgui-${KFMIN}:5
- >=kde-frameworks/solid-${KFMIN}:5
- >=net-libs/libktorrent-2.1.1:5
- infowidget? ( dev-libs/geoip )
- kross? (
- >=kde-frameworks/karchive-${KFMIN}:5
- >=kde-frameworks/kitemviews-${KFMIN}:5
- >=kde-frameworks/kross-${KFMIN}:5
- )
- mediaplayer? (
- media-libs/phonon[qt5(+)]
- >=media-libs/taglib-1.5
- )
- rss? (
- >=kde-frameworks/kdewebkit-${KFMIN}:5
- >=kde-frameworks/syndication-${KFMIN}:5
- )
- search? (
- >=dev-qt/qtwebkit-5.212.0_pre20180120:5
- >=kde-frameworks/kdewebkit-${KFMIN}:5
- )
- shutdown? ( >=kde-plasma/plasma-workspace-5.15.5 )
- stats? ( >=kde-frameworks/kplotting-${KFMIN}:5 )
- upnp? ( >=kde-frameworks/kcompletion-${KFMIN}:5 )
- zeroconf? ( >=kde-frameworks/kdnssd-${KFMIN}:5 )
-"
-DEPEND="${COMMON_DEPEND}
- dev-libs/boost
-"
-RDEPEND="${COMMON_DEPEND}
- ipfilter? (
- app-arch/bzip2
- app-arch/unzip
- >=kde-apps/kio-extras-19.04.3
- >=kde-frameworks/ktextwidgets-${KFMIN}:5
- )
-"
-
-PATCHES=(
- "${FILESDIR}/${PN}-5.1.1-singlefile-torrent.patch" # git master
- "${FILESDIR}/${P}-crash-on-exit.patch" # bug #632588
-)
-
-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_IPFILTER_PLUGIN=$(usex ipfilter)
- -DENABLE_SCRIPTING_PLUGIN=$(usex kross)
- -DENABLE_LOGVIEWER_PLUGIN=$(usex logviewer)
- -DENABLE_MAGNETGENERATOR_PLUGIN=$(usex magnetgenerator)
- -DENABLE_MEDIAPLAYER_PLUGIN=$(usex mediaplayer)
- $(cmake_use_find_package rss KF5Syndication)
- -DENABLE_SCANFOLDER_PLUGIN=$(usex scanfolder)
- -DENABLE_SEARCH_PLUGIN=$(usex search)
- -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_WEBINTERFACE_PLUGIN=$(usex webinterface)
- ecm_src_configure
-}