From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:47451) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1isyqt-0002Fh-CL for guix-patches@gnu.org; Sat, 18 Jan 2020 19:54:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1isyqq-00013Q-V5 for guix-patches@gnu.org; Sat, 18 Jan 2020 19:54:06 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:36539) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1isyqq-00013H-RZ for guix-patches@gnu.org; Sat, 18 Jan 2020 19:54:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1isyqq-0000eW-S5 for guix-patches@gnu.org; Sat, 18 Jan 2020 19:54:04 -0500 Subject: [bug#39186] [PATCH 07/10] gnu: Add libktorrent. Resent-Message-ID: From: Hartmut Goebel Date: Sun, 19 Jan 2020 01:52:51 +0100 Message-Id: <20200119005254.9521-7-h.goebel@crazy-compilers.com> In-Reply-To: <20200119005254.9521-1-h.goebel@crazy-compilers.com> References: <20200119005254.9521-1-h.goebel@crazy-compilers.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 39186@debbugs.gnu.org * gnu/packages/kde-internet.scm (libktorrent): New variable. --- gnu/packages/kde-internet.scm | 45 +++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/gnu/packages/kde-internet.scm b/gnu/packages/kde-internet.scm index 56695b36e6..7549b7e3d7 100644 --- a/gnu/packages/kde-internet.scm +++ b/gnu/packages/kde-internet.scm @@ -34,6 +34,7 @@ #:use-module (gnu packages libidn) #:use-module (gnu packages linux) #:use-module (gnu packages messaging) + #:use-module (gnu packages multiprecision) #:use-module (gnu packages pkg-config) #:use-module (gnu packages qt) #:use-module (gnu packages rdesktop) @@ -372,3 +373,47 @@ server. VNC and RDP are supported. This package is part of the KDE networking module.") (license ;; GPL for programs, LGPL for libraries, FDL for documentation (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+)))) + +(define-public libktorrent + (package + (name "libktorrent") + (version "2.1.1") + (source + (origin + (method url-fetch) + ;; TODO: Base on version of ktorrent + (uri (string-append "mirror://kde//stable/ktorrent/5.1.2" + "/libktorrent-" version ".tar.xz")) + (sha256 + (base32 "0051zh8bb4p9wmcfn5ql987brhsaiw9880xdck7b5dm1a05mri2w")))) + (build-system qt-build-system) + (native-inputs + `(("extra-cmake-modules" ,extra-cmake-modules))) + (inputs + `(("boost" ,boost) + ("gmp" ,gmp) + ("karchive" ,karchive) + ("kcrash" ,kcrash) + ("ki18n" ,ki18n) + ("kio" ,kio) + ("libgcrypt" ,libgcrypt) + ("qca" ,qca) + ("qtbase" ,qtbase) + ("solid" ,solid))) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-before 'check 'check-setup + (lambda _ + ;; Make Qt render "offscreen", required for tests + (setenv "QT_QPA_PLATFORM" "offscreen") + #t))))) + (home-page "https://cgit.kde.org/libktorrent.git") + (synopsis "BitTorrent protocol library for C++ / Qt 5 / KDE Frameworks") + (description "The KTorrent library supports connectivity to HTTP and UDP +trackers, mainline DHT and the new generation Micro Transport +Protocol (uTP). In addition, it provides many powerful BitTorrent network +features including but not limited to torrent downloading and seeding, torrent +creation and downloaded data verification, magnet links, advanced peer +management, IP blocking lists.") + (license license:gpl2+))) -- 2.21.1