diff options
author | Michael Palimaka <kensington@gentoo.org> | 2016-04-20 19:50:44 +1000 |
---|---|---|
committer | Michael Palimaka <kensington@gentoo.org> | 2016-04-20 20:34:37 +1000 |
commit | db85102f2c3595101bec328667f160dd2c30dfd6 (patch) | |
tree | 3014cbe65f7be3ea4e3021cd511f9bdda21c893a /net-libs | |
parent | kde-plasma/kwallet-pam: add changes from 5.6.2-r1 that were accidentally forg... (diff) | |
download | gentoo-db85102f2c3595101bec328667f160dd2c30dfd6.tar.gz gentoo-db85102f2c3595101bec328667f160dd2c30dfd6.tar.bz2 gentoo-db85102f2c3595101bec328667f160dd2c30dfd6.zip |
net-libs/libktorrent: version bump
Package-Manager: portage-2.2.28
Diffstat (limited to 'net-libs')
-rw-r--r-- | net-libs/libktorrent/Manifest | 1 | ||||
-rw-r--r-- | net-libs/libktorrent/libktorrent-2.0.1.ebuild | 76 |
2 files changed, 77 insertions, 0 deletions
diff --git a/net-libs/libktorrent/Manifest b/net-libs/libktorrent/Manifest index 8cea76b85bff..579bd356e3d3 100644 --- a/net-libs/libktorrent/Manifest +++ b/net-libs/libktorrent/Manifest @@ -1,2 +1,3 @@ DIST libktorrent-1.3.1.tar.bz2 863105 SHA256 2fe11ccb4bf2028c3da11e52cde890f1b3a90560e548eac89a4f8e1558b09725 SHA512 63dd4a642da4808cfe414bf4767185daf3233def5259c3f9ab899be58f263c16362eaa5e01383bf9acd78a381bc3915a84965d17f1bd10054cf94851294b622b WHIRLPOOL 1ad34d8e4ad3ad1b8a810d3a2eec1bd13a978ef6be1230521789021160ff0814909052fe2b39efb212276b944d7a5560c0bc0e104eb62f5399062c0d5194348e +DIST libktorrent-2.0.1.tar.xz 676304 SHA256 c70d9ee11a1ac95145284e2ab9aec689df21b7462f389389b8d54f892a273f42 SHA512 bb1723829461e9679a734fb39636016efdb49cf13b027f430f2272980d60f9bf261085df8b55d57bd59daab149a5e28ac124de65710fb3481167f9a0567bb1d7 WHIRLPOOL 6f989a880d42d1fcf2b704e9d4cf69025a33ecc51063fc4d958951f6b7d7ca0999baa71931f1af68a6b94bded98f0edd72f52c103b446f4828eadfdf9e604088 DIST libktorrent-2.0.tar.xz 676408 SHA256 478b1cad920d00c85605b686ed2ff893c8a875840370e9c261d1c7c102e92b9c SHA512 b1075a382fbe03e76d0bdc35fac4bece9ac538271a6c738d9dc1d37f609b11f74b7921e07640cbce56ee5aa9ca3799263fcadba49c31eeac908f64c13deae4fc WHIRLPOOL 86ce17cf897047a5a6fe63353586c4f5b50344d31e80729683d8e223ff0992449aa7d408b4eabf8ad7ac997d45c890cb7d25e3859b2dc22f554559e6684aa8a1 diff --git a/net-libs/libktorrent/libktorrent-2.0.1.ebuild b/net-libs/libktorrent/libktorrent-2.0.1.ebuild new file mode 100644 index 000000000000..769039e1e3c3 --- /dev/null +++ b/net-libs/libktorrent/libktorrent-2.0.1.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 ${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 +} |