From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9304B139694 for ; Tue, 27 Jun 2017 17:24:16 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E6BDB2340AF; Tue, 27 Jun 2017 17:24:15 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B27A0254010 for ; Tue, 27 Jun 2017 17:24:15 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A32EB341778 for ; Tue, 27 Jun 2017 17:24:14 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 523B0746F for ; Tue, 27 Jun 2017 17:24:12 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1498584232.a8bb9598578229d466cd6e82a1d9f3aeafe7d488.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/libktorrent/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-libs/libktorrent/libktorrent-2.0.1-r1.ebuild X-VCS-Directories: net-libs/libktorrent/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: a8bb9598578229d466cd6e82a1d9f3aeafe7d488 X-VCS-Branch: master Date: Tue, 27 Jun 2017 17:24:12 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 4e546053-92cc-4ef8-88be-78edbdca702e X-Archives-Hash: 0164d97a9dc0d6d39b1755afed68ed2c commit: a8bb9598578229d466cd6e82a1d9f3aeafe7d488 Author: Andreas Sturmlechner gentoo org> AuthorDate: Tue Jun 27 17:20:42 2017 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Tue Jun 27 17:23:52 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a8bb9598 net-libs/libktorrent: Block dev-libs/botan[gmp] for runtime crashes See also: https://github.com/randombit/botan/issues/1090 Thanks-to: Andrius Štikonas stikonas.eu> Package-Manager: Portage-2.3.6, Repoman-2.3.1 net-libs/libktorrent/libktorrent-2.0.1-r1.ebuild | 72 ++++++++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/net-libs/libktorrent/libktorrent-2.0.1-r1.ebuild b/net-libs/libktorrent/libktorrent-2.0.1-r1.ebuild new file mode 100644 index 00000000000..139323c86d1 --- /dev/null +++ b/net-libs/libktorrent/libktorrent-2.0.1-r1.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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" +fi + +KDE_TEST="forceoptional" +VIRTUALX_REQUIRED="test" +inherit kde5 + +DESCRIPTION="BitTorrent library based on KDE Frameworks" +HOMEPAGE="https://www.kde.org/applications/internet/ktorrent/" + +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 + !dev-libs/botan[gmp(-)] +" + +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 +}