summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Huber <johu@gentoo.org>2012-07-11 09:26:22 +0000
committerJohannes Huber <johu@gentoo.org>2012-07-11 09:26:22 +0000
commitd33338dba4f0df018a2222bd7469ac282d567c68 (patch)
tree382ed2c65f6332ccf7699ee30046126efe2414ef /net-p2p/ktorrent
parentFix building with automake-1.12. Thanks to Brennan Shacklett (diff)
downloadhistorical-d33338dba4f0df018a2222bd7469ac282d567c68.tar.gz
historical-d33338dba4f0df018a2222bd7469ac282d567c68.tar.bz2
historical-d33338dba4f0df018a2222bd7469ac282d567c68.zip
Remove old.
Package-Manager: portage-2.2.0_alpha116/cvs/Linux x86_64
Diffstat (limited to 'net-p2p/ktorrent')
-rw-r--r--net-p2p/ktorrent/ChangeLog7
-rw-r--r--net-p2p/ktorrent/Manifest23
-rw-r--r--net-p2p/ktorrent/files/ktorrent-4.1.3-tasks.patch166
-rw-r--r--net-p2p/ktorrent/ktorrent-4.1.2.ebuild102
-rw-r--r--net-p2p/ktorrent/ktorrent-4.1.3.ebuild104
5 files changed, 17 insertions, 385 deletions
diff --git a/net-p2p/ktorrent/ChangeLog b/net-p2p/ktorrent/ChangeLog
index 7485518cb859..e0802b0d00b5 100644
--- a/net-p2p/ktorrent/ChangeLog
+++ b/net-p2p/ktorrent/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-p2p/ktorrent
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/ktorrent/ChangeLog,v 1.181 2012/07/11 01:04:30 xmw Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/ktorrent/ChangeLog,v 1.182 2012/07/11 09:26:22 johu Exp $
+
+ 11 Jul 2012; Johannes Huber <johu@gentoo.org>
+ -files/ktorrent-4.1.3-tasks.patch, -ktorrent-4.1.2.ebuild,
+ -ktorrent-4.1.3.ebuild:
+ Remove old.
11 Jul 2012; Michael Weber <xmw@gentoo.org> ktorrent-4.2.0.ebuild:
ppc stable (bug 400873)
diff --git a/net-p2p/ktorrent/Manifest b/net-p2p/ktorrent/Manifest
index 744157f81d87..87df6fabb292 100644
--- a/net-p2p/ktorrent/Manifest
+++ b/net-p2p/ktorrent/Manifest
@@ -1,21 +1,20 @@
-----BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA256
+Hash: SHA512
-AUX ktorrent-4.1.3-tasks.patch 5426 SHA256 60028f7fb84fc3b9b6e049d8184481b2464bb1d599c17e5102bfe3b9172a08b4 SHA512 9053640e2212ce1488a99568aaf332a5eed4ef471926f23439f845292bfe0db3662d79596f06205d4a0cc28be99c2697b8039ee4cb9c035570170ea3fb09b321 WHIRLPOOL 8a0982e6fdeee42753a13b58619bd41d1fb164b37cfe09cb7ae4a6fda524f22e3018af92171104d88bf7f276fb6bfba299d4068ea76c438892cf544c4fff04d3
-DIST ktorrent-4.1.2.tar.bz2 2956627 SHA256 9dd2e55a25e0d00ee940b1f5e44f5027adf6f8f8030b8e4da67fdefad599d7ef
-DIST ktorrent-4.1.3.tar.bz2 2959837 SHA256 2f852f4ffdda976af38b85bf532e7d353dcf7b7dd7135a66af834543eb420646
-DIST ktorrent-4.2.0.tar.bz2 3083219 SHA256 f625b1dc116c94d97ce3b56a7a259b07d95f6592b709596319bf16bb06cf6422
-DIST ktorrent-4.2.1.tar.bz2 3082436 SHA256 ed8ff3ad627c50ffd44f2b6d8ae8cd46aa0d4359bbd3ec13a715e1bd433cdcac
-EBUILD ktorrent-4.1.2.ebuild 3178 SHA256 d89d781ebad8dd8d099db748628ef997d8b7a399c7c4a41b7f0c1b8e9d189868 SHA512 46c995016808ff50896d4f366705dcbb068f69878390e6b796eb524f7ef65c585cb236c18c41e8743dd04d5e24a1f13043527f0a6a89daf7283cf32be42e14b4 WHIRLPOOL da40c06b0622645a498fd9a0a24e1d413a090f842e5f4e69bd1326bf6f3ea1b8394100640e25c21230307fbd6b0cbf3efaca8fd57989637d26bcdca922e054fc
-EBUILD ktorrent-4.1.3.ebuild 3228 SHA256 d6ee543b9ba4a52de835a6781bd8d0aad5eefb328753cabe8362f27245741d3f SHA512 68a3edfe4c8c833a1ffa244627d186ee52721b2a0bba9c66f0b5f5743d7740b278740d211422544a7e1acb351c0ff4cf5280e735dc261660f44d839337639d5b WHIRLPOOL c60a2f0fa9e247bf74d12f10d91208490f5888c3035c6b5e1b79930fe28d73d98d387d0737abb2f14bb9c0287e9c710b592268cefb285f4d50bad16de88ed469
+DIST ktorrent-4.2.0.tar.bz2 3083219 SHA256 f625b1dc116c94d97ce3b56a7a259b07d95f6592b709596319bf16bb06cf6422 SHA512 248b70e537059092ced1cf408586df40feb10be4e4fe6aee5b18bdf046c42eff008c65628423728c98f9000eab1ea24942085576231827de5c209406f2d590b8 WHIRLPOOL 7251bfbd891a41a4b5c17f1eda8de24196ce497e6050107d5f6b9903722383fe99075845775fb6cdaf5107d43033d233ba5e4e5e57cba9b2d055e5fb984161dd
+DIST ktorrent-4.2.1.tar.bz2 3082436 SHA256 ed8ff3ad627c50ffd44f2b6d8ae8cd46aa0d4359bbd3ec13a715e1bd433cdcac SHA512 933fac0f69d06bb4d2e4bf25ec716a0988d5f36b42399679672dd2a58648d4cc7ac547b41ad21dcb96c04e14a694f121d9f702c53ccb6fd2e02198c12570452e WHIRLPOOL 85c8a8f4e5fba00c95e3fc5d9e21d55cb16ca576b04f0d3daf353a6c4619b277066bdc61d11d89568c842239566fb47e08b069dd85d9f9c84dbd18bb2c2839f0
EBUILD ktorrent-4.2.0.ebuild 3175 SHA256 fa52efb5f024c1f05c7e02fb19119a8439e0d62123f442bce8489fb7340de1bd SHA512 1b23eb2ff5abb947732f931064041b7fb405b5a06afd1a4fa4a4e5173cd142a8ff36e2696cd8a2dd1d31a8edc84f60db2b0e8e44672185d24a5211b968c7265c WHIRLPOOL 612b5dec0d59b54a60676ec715e302f5073a86d8fad06cb5c8c25fbe754b8463b3014a46439ba2f8090ff14027d3d60bb0521868da7d25a8cb520298bc23c82f
EBUILD ktorrent-4.2.1.ebuild 3185 SHA256 4ad842eb8d00a47b101d96a65e9a4e63be8c86a910fb45d26464cae8e5e5fb36 SHA512 2531277518638284591eb88cf93ac07575c67aa8815c9391de96c4c7cca8dc2af73ebe6a468a51bc01dec03345226429f7861f2cbe5c422c7fb4d0791e2fc697 WHIRLPOOL 359fd43823b50a1250c5d42bbb342ab0673ab3e8f78f4212872bfa945d7ee06710b0ceff5595bff66d61cfb65fc782cc446b44780796bfbe8676eadd47363a02
-MISC ChangeLog 26774 SHA256 17f2ca597e9bff58d8a6de9151e8202e9043dd1c63f64b58cdfc14446f05a740 SHA512 6cddc1cfd3021103129561abe7dc7b3534038533d247d0dd032ebe4da06ee822365cb286214a23afcd9e0c670816e5b08f22d880f97d408c5a40b0b7740430f8 WHIRLPOOL 1d5e8170339166eb5896bc15533cb9442f4e481ffb6cf45c7411223628ca26060ff3a9bb3fb33ffff334320f549efcfbbf14607597e900cf1f84ef630756a63b
+MISC ChangeLog 26925 SHA256 3434804b0c7ee37810e68356cc380c65640569a091d0dfb460db0ac5683ea773 SHA512 bb9be3a1581b3b9b32eb4d48c5c7dcc7a38853f20b8cd7abc2e35305cbe5562bc80c17b82927b3b05c657a27f1592ffd7192d7c8b271d2fe646448337480634d WHIRLPOOL e311863b38c2b121541950effd1036a517bf032f25113641a8fa226c3a14794a59acece71503a38f287261dd4573c8f8c5af5c19ed8dcc6a6142c65e9eb316f9
MISC metadata.xml 1389 SHA256 e7fa6c95c77618daa38c5baf4c97621eb7cdb7b38e38f9f81f30804d77097cf7 SHA512 c67868c32860317a59291822b32ac567eee88498eb79fb48c0b8ec8cbceef1ab957ca441f75731b22e9649b865e39ed7f9a01153affabfac3bdaac3865be2486 WHIRLPOOL af37a7f15e775ef53be3946ff3603ad4bdeeb7690b04eb25d72af2184f3f7f50ae48b63272b15bbee50db2f7b5629c3fc6753322c3044feadace6ceced353d28
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
-iF4EAREIAAYFAk/80OgACgkQknrdDGLu8JAShAEAirUgNNy/7SrwHWNzrse8ze1O
-MYobFi+RygDEFXqQOmYBAI+GZpvxY9nCotxmj9cPQ1zi7uQLvWVDMmopb2lDZrX1
-=Rcay
+iQEcBAEBCgAGBQJP/UbGAAoJEO+t9ga+3I3a5/IH+wccJVHite3ll1hQ81hV8NxZ
+qIHbNIXlNZ2PqrRq5rZdyKub0iLbBp1EWYZe+6W4uXMrXj+OFPV+ubXXLPMWvv92
+BnYrFUe2p8lHiNkeRaTmyGqlhTb/PtlxsUnFcApJG4MA+CkL2j9KMEEgQiVthrOo
+rO1xG9Z5GCvC/9RYWRWBAuiglLKiVuvabLiZPHEGkhtRHs28vEFGxeZW32vnMmvC
+gEpJd6gKBRe9Lb78sTKgjDjb/aGuNz2cAQQwws6JsitvEBOBQJLc0CBBpnkGiFPz
+SMXaFXqmsHj7f9qHSLILBj6wMqzlnhDsL12Zf0GprxVWenvmQXeZSWuvRSthCZ8=
+=Q6rg
-----END PGP SIGNATURE-----
diff --git a/net-p2p/ktorrent/files/ktorrent-4.1.3-tasks.patch b/net-p2p/ktorrent/files/ktorrent-4.1.3-tasks.patch
deleted file mode 100644
index 1ebf22412ac5..000000000000
--- a/net-p2p/ktorrent/files/ktorrent-4.1.3-tasks.patch
+++ /dev/null
@@ -1,166 +0,0 @@
-diff --git a/plasma/applet/CMakeLists.txt b/plasma/applet/CMakeLists.txt
-index 3a72241..4307cf2 100644
---- a/plasma/applet/CMakeLists.txt
-+++ b/plasma/applet/CMakeLists.txt
-@@ -5,25 +5,15 @@ if(NOT QT_VERSION_OK)
-
- else(NOT QT_VERSION_OK)
-
-- set(TASKMANAGER_FOUND FALSE)
-- FIND_PATH(TASKMANAGER_INCLUDE_DIR NAMES taskmanager.h PATHS ${KDE4_INCLUDE_DIR}/taskmanager ${INCLUDE_INSTALL_DIR}/taskmanager.h)
-- FIND_LIBRARY(TASKMANAGER_LIBRARY NAMES taskmanager PATHS ${KDE4_LIB_DIR} ${LIB_INSTALL_DIR})
--
-- if(TASKMANAGER_INCLUDE_DIR AND TASKMANAGER_LIBRARY)
-- set(TASKMANAGER_FOUND TRUE)
-- message(STATUS "Found libtaskmanager: ${TASKMANAGER_LIBRARY} ")
-- include_directories(${TASKMANAGER_INCLUDE_DIR})
-- set(ktapplet_SRCS applet.cpp chunkbar.cpp fadingitem.cpp fadingnavigationwidget.cpp)
--
-- kde4_add_ui_files(ktapplet_SRCS appletconfig.ui)
--
-- kde4_add_plugin(plasma_applet_ktorrent ${ktapplet_SRCS})
-- target_link_libraries(plasma_applet_ktorrent ${KDE4_PLASMA_LIBS} ${KDE4_KIO_LIBS} ${TASKMANAGER_LIBRARY} ${LIBKTORRENT_LIBRARIES} ktcore)
--
-- install(TARGETS plasma_applet_ktorrent DESTINATION ${PLUGIN_INSTALL_DIR})
-- install(FILES plasma-applet-ktorrent.desktop DESTINATION ${SERVICES_INSTALL_DIR})
-- endif(TASKMANAGER_INCLUDE_DIR AND TASKMANAGER_LIBRARY)
--
-- macro_log_feature(TASKMANAGER_FOUND "libtaskmanager" "libtaskmanager library and header files" "http://www.kde.org/" FALSE "" "libtaskmanager is needed for KTorrent Plasmoid")
-+
-+ set(ktapplet_SRCS applet.cpp chunkbar.cpp fadingitem.cpp fadingnavigationwidget.cpp)
-+
-+ kde4_add_ui_files(ktapplet_SRCS appletconfig.ui)
-+
-+ kde4_add_plugin(plasma_applet_ktorrent ${ktapplet_SRCS})
-+ target_link_libraries(plasma_applet_ktorrent ${KDE4_PLASMA_LIBS} ${KDE4_KIO_LIBS} ${LIBKTORRENT_LIBRARIES} ktcore)
-+
-+ install(TARGETS plasma_applet_ktorrent DESTINATION ${PLUGIN_INSTALL_DIR})
-+ install(FILES plasma-applet-ktorrent.desktop DESTINATION ${SERVICES_INSTALL_DIR})
-
- endif(NOT QT_VERSION_OK)
-diff --git a/plasma/applet/applet.cpp b/plasma/applet/applet.cpp
-index 59e7191..bf09479 100644
---- a/plasma/applet/applet.cpp
-+++ b/plasma/applet/applet.cpp
-@@ -21,6 +21,9 @@
- #include "applet.h"
- #include <QFile>
- #include <QGraphicsLinearLayout>
-+#include <QDBusConnection>
-+#include <QDBusConnectionInterface>
-+#include <QDBusMessage>
- #include <KConfigDialog>
- #include <KLocale>
- #include <KRun>
-@@ -31,12 +34,11 @@
- #include <Plasma/IconWidget>
- #endif
- #include <Plasma/Label>
--#include <taskmanager/taskmanager.h>
--#include <taskmanager/task.h>
- #include <util/functions.h>
- #include "chunkbar.h"
- #include "fadingnavigationwidget.h"
-
-+
- using namespace bt;
-
- namespace ktplasma
-@@ -174,7 +176,8 @@ namespace ktplasma
- }
- }
-
-- void Applet::updateNavigation() {
-+ void Applet::updateNavigation()
-+ {
- navigation->setEnabled(connected_to_app && !sources.empty()
- && (sources.count() > 1 || !sources.contains(current_source)));
- }
-@@ -193,12 +196,14 @@ namespace ktplasma
- }
- }
-
-- void Applet::updateSources() {
-+ void Applet::updateSources()
-+ {
- sources = engine->sources();
- sources.removeOne("core");
- }
-
-- void Applet::setSource(QString source) {
-+ void Applet::setSource(QString source)
-+ {
- if (!current_source.isEmpty())
- engine->disconnectSource(current_source,this);
- clearData();
-@@ -340,20 +345,39 @@ namespace ktplasma
-
- void Applet::iconClicked()
- {
-- TaskManager::TaskDict tasks = TaskManager::TaskManager::self()->tasks();
-- for (TaskManager::TaskDict::iterator i = tasks.begin();i != tasks.end();i ++)
-+ QDBusConnection session_bus = QDBusConnection::sessionBus();
-+ QDBusConnectionInterface* dbus_service = session_bus.interface();
-+ if (!session_bus.isConnected() || !dbus_service || !dbus_service->isServiceRegistered("org.ktorrent.ktorrent"))
- {
-- if (i.value()->className() == "ktorrent")
-- {
-- KWindowSystem::activateWindow(i.key());
-- return;
-- }
-+ // can't find the window, try launching it
-+ KUrl::List empty;
-+ KRun::run("ktorrent", empty, 0);
-+ }
-+ else
-+ {
-+ QDBusMessage msg = QDBusMessage::createMethodCall("org.ktorrent.ktorrent", "/ktorrent/MainWindow_1", "org.kde.KMainWindow", "winId");
-+ QDBusPendingCall call = session_bus.asyncCall(msg, 5000);
-+ QDBusPendingCallWatcher* watcher = new QDBusPendingCallWatcher(call ,this);
-+ connect(watcher, SIGNAL(finished(QDBusPendingCallWatcher*)), this, SLOT(dbusCallFinished(QDBusPendingCallWatcher*)));
- }
--
-- // can't find the window, try launching it
-- KUrl::List empty;
-- KRun::run("ktorrent", empty, 0);
- }
-+
-+ void Applet::dbusCallFinished(QDBusPendingCallWatcher* self)
-+ {
-+ if (self->isError())
-+ {
-+ // call failed, try launching it
-+ KUrl::List empty;
-+ KRun::run("ktorrent", empty, 0);
-+ }
-+ else
-+ {
-+ QDBusPendingReply<qlonglong> reply = *self;
-+ KWindowSystem::activateWindow(reply.value());
-+ }
-+ self->deleteLater();
-+ }
-+
-
- void Applet::clearData()
- {
-diff --git a/plasma/applet/applet.h b/plasma/applet/applet.h
-index 29b3265..d396118 100644
---- a/plasma/applet/applet.h
-+++ b/plasma/applet/applet.h
-@@ -27,6 +27,7 @@
- #include "fadingnavigationwidget.h"
-
- class QGraphicsLinearLayout;
-+class QDBusPendingCallWatcher;
-
- namespace Plasma
- {
-@@ -68,6 +69,7 @@ namespace ktplasma
- void iconClicked();
- void selectPrev();
- void selectNext();
-+ void dbusCallFinished(QDBusPendingCallWatcher* self);
-
- private:
- void updateTorrentCombo();
diff --git a/net-p2p/ktorrent/ktorrent-4.1.2.ebuild b/net-p2p/ktorrent/ktorrent-4.1.2.ebuild
deleted file mode 100644
index 630794c8ac53..000000000000
--- a/net-p2p/ktorrent/ktorrent-4.1.2.ebuild
+++ /dev/null
@@ -1,102 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/ktorrent/ktorrent-4.1.2.ebuild,v 1.5 2012/03/10 16:24:23 ranger Exp $
-
-EAPI=4
-
-KDE_SCM="git"
-KDE_MINIMAL="4.5"
-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}"
- KDE_HANDBOOK="optional"
- KDE_DOC_DIRS="doc"
-
- KDE_LINGUAS="ar ast be bg ca ca@valencia cs da de el en_GB eo es et eu
- fi fr ga gl hi hne hr hu is it ja km lt lv mai ms nb nds nl nn oc
- pl pt pt_BR ro ru se si sk sl sr sr@ijekavian sr@ijekavianlatin
- sr@latin sv tr uk zh_CN zh_TW"
- SRC_URI="http://ktorrent.org/downloads/${MY_PV}/${MY_P}.tar.bz2"
- S="${WORKDIR}"/"${MY_P}"
-
- KEYWORDS="amd64 ppc ~ppc64 x86"
-else
- LIBKT_VERSION_MIN="${PV}"
- LIBKT_VERSION_MAX="99999999"
- KEYWORDS=""
-fi
-
-inherit kde4-base
-
-DESCRIPTION="A BitTorrent program for KDE."
-HOMEPAGE="http://ktorrent.org/"
-
-LICENSE="GPL-2"
-SLOT="4"
-IUSE="+bwscheduler debug +downloadorder +infowidget +ipfilter +kross +logviewer
-+magnetgenerator +mediaplayer plasma rss +scanfolder +search +shutdown +stats
-+upnp webinterface +zeroconf"
-
-COMMONDEPEND="
- <net-libs/libktorrent-${LIBKT_VERSION_MAX}
- >=net-libs/libktorrent-${LIBKT_VERSION_MIN}
- infowidget? ( dev-libs/geoip )
- mediaplayer? ( >=media-libs/taglib-1.5 )
- plasma? ( $(add_kdebase_dep libtaskmanager) )
- rss? ( $(add_kdebase_dep kdepimlibs) )
- shutdown? (
- $(add_kdebase_dep libkworkspace)
- $(add_kdebase_dep solid)
- )
-"
-DEPEND="${COMMONDEPEND}
- dev-libs/boost
- sys-devel/gettext
-"
-RDEPEND="${COMMONDEPEND}
- ipfilter? (
- app-arch/bzip2
- app-arch/unzip
- $(add_kdebase_dep kdebase-kioslaves)
- )
- kross? ( $(add_kdebase_dep krosspython) )
-"
-
-src_prepare() {
- if ! use plasma; then
- sed -i \
- -e "s:add_subdirectory(plasma):#nada:g" \
- CMakeLists.txt || die "Failed to make plasmoid optional"
- fi
-
- kde4-base_src_prepare
-}
-
-src_configure() {
- mycmakeargs=(
- $(cmake-utils_use_enable bwscheduler BWSCHEDULER_PLUGIN)
- $(cmake-utils_use_enable downloadorder DOWNLOADORDER_PLUGIN)
- $(cmake-utils_use_enable infowidget INFOWIDGET_PLUGIN)
- $(cmake-utils_use_with infowidget SYSTEM_GEOIP)
- $(cmake-utils_use_enable ipfilter IPFILTER_PLUGIN)
- $(cmake-utils_use_enable kross SCRIPTING_PLUGIN)
- $(cmake-utils_use_enable logviewer LOGVIEWER_PLUGIN)
- $(cmake-utils_use_enable magnetgenerator MAGNETGENERATOR_PLUGIN)
- $(cmake-utils_use_enable mediaplayer MEDIAPLAYER_PLUGIN)
- $(cmake-utils_use_enable rss SYNDICATION_PLUGIN)
- $(cmake-utils_use_enable scanfolder SCANFOLDER_PLUGIN)
- $(cmake-utils_use_enable search SEARCH_PLUGIN)
- $(cmake-utils_use_enable shutdown SHUTDOWN_PLUGIN)
- $(cmake-utils_use_enable stats STATS_PLUGIN)
- $(cmake-utils_use_enable upnp UPNP_PLUGIN)
- $(cmake-utils_use_enable webinterface WEBINTERFACE_PLUGIN)
- $(cmake-utils_use_enable zeroconf ZEROCONF_PLUGIN)
- )
- kde4-base_src_configure
-}
diff --git a/net-p2p/ktorrent/ktorrent-4.1.3.ebuild b/net-p2p/ktorrent/ktorrent-4.1.3.ebuild
deleted file mode 100644
index a1a8fa69b87d..000000000000
--- a/net-p2p/ktorrent/ktorrent-4.1.3.ebuild
+++ /dev/null
@@ -1,104 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/ktorrent/ktorrent-4.1.3.ebuild,v 1.1 2011/12/30 23:14:15 dilfridge Exp $
-
-EAPI=4
-
-KDE_SCM="git"
-KDE_MINIMAL="4.5"
-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}"
- KDE_HANDBOOK="optional"
- KDE_DOC_DIRS="doc"
-
- KDE_LINGUAS="ar ast be bg ca ca@valencia cs da de el en_GB eo es et eu
- fi fr ga gl hi hne hr hu is it ja km lt lv mai ms nb nds nl nn oc
- pl pt pt_BR ro ru se si sk sl sr sr@ijekavian sr@ijekavianlatin
- sr@latin sv tr uk zh_CN zh_TW"
- SRC_URI="http://ktorrent.org/downloads/${MY_PV}/${MY_P}.tar.bz2"
- S="${WORKDIR}"/"${MY_P}"
-
- KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
-else
- LIBKT_VERSION_MIN="${PV}"
- LIBKT_VERSION_MAX="99999999"
- KEYWORDS=""
-fi
-
-inherit kde4-base
-
-DESCRIPTION="A BitTorrent program for KDE."
-HOMEPAGE="http://ktorrent.org/"
-
-LICENSE="GPL-2"
-SLOT="4"
-IUSE="+bwscheduler debug +downloadorder +infowidget +ipfilter +kross +logviewer
-+magnetgenerator +mediaplayer plasma rss +scanfolder +search +shutdown +stats
-+upnp webinterface +zeroconf"
-
-COMMONDEPEND="
- <net-libs/libktorrent-${LIBKT_VERSION_MAX}
- >=net-libs/libktorrent-${LIBKT_VERSION_MIN}
- infowidget? ( dev-libs/geoip )
- mediaplayer? ( >=media-libs/taglib-1.5 )
- plasma? ( $(add_kdebase_dep libtaskmanager) )
- rss? ( $(add_kdebase_dep kdepimlibs) )
- shutdown? (
- $(add_kdebase_dep libkworkspace)
- $(add_kdebase_dep solid)
- )
-"
-DEPEND="${COMMONDEPEND}
- dev-libs/boost
- sys-devel/gettext
-"
-RDEPEND="${COMMONDEPEND}
- ipfilter? (
- app-arch/bzip2
- app-arch/unzip
- $(add_kdebase_dep kdebase-kioslaves)
- )
- kross? ( $(add_kdebase_dep krosspython) )
-"
-
-PATCHES=( "${FILESDIR}/${P}-tasks.patch" )
-
-src_prepare() {
- if ! use plasma; then
- sed -i \
- -e "s:add_subdirectory(plasma):#nada:g" \
- CMakeLists.txt || die "Failed to make plasmoid optional"
- fi
-
- kde4-base_src_prepare
-}
-
-src_configure() {
- mycmakeargs=(
- $(cmake-utils_use_enable bwscheduler BWSCHEDULER_PLUGIN)
- $(cmake-utils_use_enable downloadorder DOWNLOADORDER_PLUGIN)
- $(cmake-utils_use_enable infowidget INFOWIDGET_PLUGIN)
- $(cmake-utils_use_with infowidget SYSTEM_GEOIP)
- $(cmake-utils_use_enable ipfilter IPFILTER_PLUGIN)
- $(cmake-utils_use_enable kross SCRIPTING_PLUGIN)
- $(cmake-utils_use_enable logviewer LOGVIEWER_PLUGIN)
- $(cmake-utils_use_enable magnetgenerator MAGNETGENERATOR_PLUGIN)
- $(cmake-utils_use_enable mediaplayer MEDIAPLAYER_PLUGIN)
- $(cmake-utils_use_enable rss SYNDICATION_PLUGIN)
- $(cmake-utils_use_enable scanfolder SCANFOLDER_PLUGIN)
- $(cmake-utils_use_enable search SEARCH_PLUGIN)
- $(cmake-utils_use_enable shutdown SHUTDOWN_PLUGIN)
- $(cmake-utils_use_enable stats STATS_PLUGIN)
- $(cmake-utils_use_enable upnp UPNP_PLUGIN)
- $(cmake-utils_use_enable webinterface WEBINTERFACE_PLUGIN)
- $(cmake-utils_use_enable zeroconf ZEROCONF_PLUGIN)
- )
- kde4-base_src_configure
-}