commit:     5b9bc1274595b98681b262103817af0d4291dc66
Author:     Johannes Huber <johu <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 16 13:40:06 2016 +0000
Commit:     Johannes Huber <johu <AT> gentoo <DOT> org>
CommitDate: Sat Apr 16 13:42:00 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b9bc127

net-p2p/ktorrent: Version bump 5.0

Package-Manager: portage-2.2.28

 net-p2p/ktorrent/Manifest            |   1 +
 net-p2p/ktorrent/ktorrent-5.0.ebuild | 123 +++++++++++++++++++++++++++++++++++
 2 files changed, 124 insertions(+)

diff --git a/net-p2p/ktorrent/Manifest b/net-p2p/ktorrent/Manifest
index 5d0ff1a..1593790 100644
--- a/net-p2p/ktorrent/Manifest
+++ b/net-p2p/ktorrent/Manifest
@@ -1 +1,2 @@
 DIST ktorrent-4.3.1.tar.bz2 2943708 SHA256 
66094f6833347afb0c49e332f0ec15ec48db652cbe66476840846ffd5ca0e4a1 SHA512 
bf1fa144295cb00fccce3a511afe845bc7bf42d77d70205f5893686e7b1fa78c5799c46c7e4e04435ab6fdd4bc9b3b4a25bffb2c5538a25af36302c60742900e
 WHIRLPOOL 
61303c19f0160bba9bdd288415d86519594f26c5c062f394cee7924093506a9cc6236fd8eedec16c6f799f71a15cb4af15c4b7c079831dccb4e498b833c2234e
+DIST ktorrent-5.0.tar.xz 2153772 SHA256 
78aefd4660a57e7d512f68db08a0f01e29dc4500242e58cbe7fac4592e24afec SHA512 
29dcb5a8994d4757fa07fdc263f62d4ef425295d60e11a032a1bf6425c6378e55f0ce221b6ab9bb2f70579c8c423c405d2fa8e3ba5e7130bdfd637b3de5865e1
 WHIRLPOOL 
5f6e95ab84f83bbceba5a0d092dd1cdce5706099a07977df45101d5f16fc5ee319bb8cfd8146c8336242e9b0c7158ad235caf491999ec56ab6c260d17a915be5

diff --git a/net-p2p/ktorrent/ktorrent-5.0.ebuild 
b/net-p2p/ktorrent/ktorrent-5.0.ebuild
new file mode 100644
index 0000000..6acdc9d
--- /dev/null
+++ b/net-p2p/ktorrent/ktorrent-5.0.ebuild
@@ -0,0 +1,123 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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}/${MY_PV}/${MY_P}.tar.xz"
+       S="${WORKDIR}"/"${MY_P}"
+
+       KEYWORDS="~amd64 ~x86"
+else
+       LIBKT_VERSION_MIN="${PV}"
+       LIBKT_VERSION_MAX="99999999"
+       KEYWORDS=""
+fi
+
+KDE_HANDBOOK="forceoptional"
+inherit kde5
+
+DESCRIPTION="Powerful BitTorrent client based on KDE Frameworks"
+HOMEPAGE="http://ktorrent.pwsp.net/";
+
+LICENSE="GPL-2"
+IUSE="+bwscheduler +downloadorder +infowidget +logviewer
++magnetgenerator +mediaplayer +shutdown +upnp +zeroconf"
+
+COMMON_DEPEND="
+       $(add_frameworks_dep karchive)
+       $(add_frameworks_dep kcmutils)
+       $(add_frameworks_dep kconfig)
+       $(add_frameworks_dep kcoreaddons)
+       $(add_frameworks_dep kcrash)
+       $(add_frameworks_dep kdbusaddons)
+       $(add_frameworks_dep kdelibs4support)
+       $(add_frameworks_dep kdewebkit)
+       $(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 kxmlgui)
+       $(add_frameworks_dep solid)
+       $(add_frameworks_dep sonnet)
+       $(add_qt_dep qtdbus)
+       $(add_qt_dep qtgui)
+       $(add_qt_dep qtdeclarative)
+       $(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) )
+       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
+# }
+
+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_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_STATS_PLUGIN=$(usex stats)
+#              -DENABLE_WEBINTERFACE_PLUGIN=$(usex webinterface)
+       kde5_src_configure
+}

Reply via email to