summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Huber <johu@gentoo.org>2016-04-16 15:25:27 +0200
committerJohannes Huber <johu@gentoo.org>2016-04-16 15:42:00 +0200
commit4a140e89a06b03229318ce0db5a2d4892bf6bd1b (patch)
treedd60ba2a0b5b6d6dc0b1225c2151ca6d2adc4cac /net-libs
parentsys-block/partimage: Remove old (diff)
downloadgentoo-4a140e89a06b03229318ce0db5a2d4892bf6bd1b.tar.gz
gentoo-4a140e89a06b03229318ce0db5a2d4892bf6bd1b.tar.bz2
gentoo-4a140e89a06b03229318ce0db5a2d4892bf6bd1b.zip
net-libs/libktorrent: Version bump 2.0
Package-Manager: portage-2.2.28
Diffstat (limited to 'net-libs')
-rw-r--r--net-libs/libktorrent/Manifest1
-rw-r--r--net-libs/libktorrent/libktorrent-2.0.ebuild76
2 files changed, 77 insertions, 0 deletions
diff --git a/net-libs/libktorrent/Manifest b/net-libs/libktorrent/Manifest
index 85a5e4865459..8cea76b85bff 100644
--- a/net-libs/libktorrent/Manifest
+++ b/net-libs/libktorrent/Manifest
@@ -1 +1,2 @@
DIST libktorrent-1.3.1.tar.bz2 863105 SHA256 2fe11ccb4bf2028c3da11e52cde890f1b3a90560e548eac89a4f8e1558b09725 SHA512 63dd4a642da4808cfe414bf4767185daf3233def5259c3f9ab899be58f263c16362eaa5e01383bf9acd78a381bc3915a84965d17f1bd10054cf94851294b622b WHIRLPOOL 1ad34d8e4ad3ad1b8a810d3a2eec1bd13a978ef6be1230521789021160ff0814909052fe2b39efb212276b944d7a5560c0bc0e104eb62f5399062c0d5194348e
+DIST libktorrent-2.0.tar.xz 676408 SHA256 478b1cad920d00c85605b686ed2ff893c8a875840370e9c261d1c7c102e92b9c SHA512 b1075a382fbe03e76d0bdc35fac4bece9ac538271a6c738d9dc1d37f609b11f74b7921e07640cbce56ee5aa9ca3799263fcadba49c31eeac908f64c13deae4fc WHIRLPOOL 86ce17cf897047a5a6fe63353586c4f5b50344d31e80729683d8e223ff0992449aa7d408b4eabf8ad7ac997d45c890cb7d25e3859b2dc22f554559e6684aa8a1
diff --git a/net-libs/libktorrent/libktorrent-2.0.ebuild b/net-libs/libktorrent/libktorrent-2.0.ebuild
new file mode 100644
index 000000000000..6e568d0e4afc
--- /dev/null
+++ b/net-libs/libktorrent/libktorrent-2.0.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+if [[ ${PV} != 9999* ]]; then
+ inherit versionator
+ # upstream likes to skip that _ in beta releases
+ MY_PV="${PV/_/}"
+ KTORRENT_VERSION=$(($(get_major_version)+3)).$(get_version_component_range 2-3 ${MY_PV})
+ MY_P="${PN}-${MY_PV}"
+
+ SRC_URI="mirror://kde/stable/ktorrent/${KTORRENT_VERSION}/${MY_P}.tar.xz"
+ S="${WORKDIR}"/"${MY_P}"
+
+ KEYWORDS="~amd64 ~arm ~x86"
+else
+ KEYWORDS=""
+fi
+
+KDE_DOXYGEN="true"
+KDE_DOX_DIR="doc"
+KDE_TEST="forceoptional"
+VIRTUALX_REQUIRED="test"
+inherit kde5
+
+DESCRIPTION="BitTorrent library based on KDE Frameworks"
+HOMEPAGE="http://ktorrent.pwsp.net/"
+
+LICENSE="GPL-2"
+IUSE=""
+
+COMMON_DEPEND="
+ $(add_frameworks_dep karchive)
+ $(add_frameworks_dep kconfig)
+ $(add_frameworks_dep kcoreaddons)
+ $(add_frameworks_dep kcrash)
+ $(add_frameworks_dep ki18n)
+ $(add_frameworks_dep kio)
+ $(add_frameworks_dep solid)
+ $(add_qt_dep qtgui)
+ $(add_qt_dep qtnetwork)
+ $(add_qt_dep qtwidgets)
+ $(add_qt_dep qtxml)
+ app-crypt/qca:2[qt5]
+ >=dev-libs/gmp-6.0.0a:0=
+ dev-libs/libgcrypt:0=
+"
+DEPEND="${COMMON_DEPEND}
+ dev-libs/boost
+ sys-devel/gettext
+"
+RDEPEND="${COMMON_DEPEND}
+ !net-libs/libktorrent:4
+"
+
+src_prepare() {
+ kde5_src_prepare
+
+ # Gentoo workaround because gmp.h in MULTILIB_WRAPPED_HEADERS is breaking this
+ sed -i -e "/^find_package/ s/\"\${LibGMP_MIN_VERSION}\" //" \
+ CMakeLists.txt || die
+ sed -i -e "/^find_dependency/ s/ \"@LibGMP_MIN_VERSION@\"//" \
+ LibKTorrentConfig.cmake.in || die
+
+ # do not build non-installed example binary
+ sed -i -e "/add_subdirectory(examples)/d" CMakeLists.txt || die
+
+ if ! use test ; then
+ sed -i -e "/add_subdirectory(testlib)/d" CMakeLists.txt || die
+ sed -i -e "/add_subdirectory(tests)/d" \
+ src/{datachecker,dht,diskio,download,magnet,mse,net,peer,util,utp,torrent}/CMakeLists.txt \
+ || die "Failed to remove tests"
+ fi
+}