diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2014-11-24 22:00:58 +0100 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2014-11-24 22:01:08 +0100 |
| commit | df66fee79aad663897f27b2aac9933f4338b4f5f (patch) | |
| tree | 444320f9a27370712a5d230fb948fb286eca45dd /gnu | |
| parent | e8435c4d289107d240c395dd636363297bb15cb5 (diff) | |
gnu: Add libTorrent.
* gnu/packages/bittorrent.scm (libtorrent): New variable.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/bittorrent.scm | 35 |
1 files changed, 34 insertions, 1 deletions
diff --git a/gnu/packages/bittorrent.scm b/gnu/packages/bittorrent.scm index 8b4388668eb..24b6ccb4d38 100644 --- a/gnu/packages/bittorrent.scm +++ b/gnu/packages/bittorrent.scm | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | ;;; GNU Guix --- Functional package management for GNU | 1 | ;;; GNU Guix --- Functional package management for GNU |
| 2 | ;;; Copyright © 2014 Taylan Ulrich Bayirli/Kammer <taylanbayirli@gmail.com> | ||
| 2 | ;;; Copyright © 2014 Ludovic Courtès <ludo@gnu.org> | 3 | ;;; Copyright © 2014 Ludovic Courtès <ludo@gnu.org> |
| 3 | ;;; | 4 | ;;; |
| 4 | ;;; This file is part of GNU Guix. | 5 | ;;; This file is part of GNU Guix. |
| @@ -30,7 +31,8 @@ | |||
| 30 | #:use-module ((gnu packages compression) | 31 | #:use-module ((gnu packages compression) |
| 31 | #:select (zlib)) | 32 | #:select (zlib)) |
| 32 | #:use-module (gnu packages glib) | 33 | #:use-module (gnu packages glib) |
| 33 | #:use-module (gnu packages gtk)) | 34 | #:use-module (gnu packages gtk) |
| 35 | #:use-module (gnu packages check)) | ||
| 34 | 36 | ||
| 35 | (define-public transmission | 37 | (define-public transmission |
| 36 | (package | 38 | (package |
| @@ -88,3 +90,34 @@ DHT, µTP, PEX and Magnet Links.") | |||
| 88 | ;; | 90 | ;; |
| 89 | ;; A few files files carry an MIT/X11 license header. | 91 | ;; A few files files carry an MIT/X11 license header. |
| 90 | (license l:gpl3+))) | 92 | (license l:gpl3+))) |
| 93 | |||
| 94 | (define-public libtorrent | ||
| 95 | (package | ||
| 96 | (name "libtorrent") | ||
| 97 | (version "0.13.4") | ||
| 98 | (source (origin | ||
| 99 | (method url-fetch) | ||
| 100 | (uri (string-append | ||
| 101 | "http://libtorrent.rakshasa.no/downloads/libtorrent-" | ||
| 102 | version ".tar.gz")) | ||
| 103 | (sha256 | ||
| 104 | (base32 | ||
| 105 | "0ma910br5vxrfpm4f4w4942lpmhwvqjnnf9h8vpf52fw35qhjkkh")))) | ||
| 106 | (build-system gnu-build-system) | ||
| 107 | (inputs `(("openssl" ,openssl) | ||
| 108 | ("zlib" ,zlib))) | ||
| 109 | (native-inputs `(("pkg-config" ,pkg-config) | ||
| 110 | ;; Add this when you enable tests: | ||
| 111 | ;; ("cppunit" ,cppunit) | ||
| 112 | )) | ||
| 113 | (arguments | ||
| 114 | ;; FIXME: enable tests on the next release: | ||
| 115 | ;; https://github.com/rakshasa/libtorrent/issues/59 | ||
| 116 | `(#:tests? #f)) | ||
| 117 | (synopsis "BitTorrent library of rtorrent") | ||
| 118 | (description | ||
| 119 | "LibTorrent is a BitTorrent library used by and developed in parallel | ||
| 120 | with the BitTorrent client rtorrent. It is written in C++ with emphasis on | ||
| 121 | speed and efficiency.") | ||
| 122 | (home-page "http://libtorrent.rakshasa.no/") | ||
| 123 | (license l:gpl2+))) | ||
