summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2011-09-10 18:19:28 +0000
committerMichał Górny <mgorny@gentoo.org>2011-09-10 18:19:28 +0000
commit003e8ee38472713c9dbd077904bf1aebe55e1ac2 (patch)
tree2e7679bbd40642bb330c79043c08175eb0e5a95a /net-p2p
parentMarked ~hppa (bug #381749). (diff)
downloadhistorical-003e8ee38472713c9dbd077904bf1aebe55e1ac2.tar.gz
historical-003e8ee38472713c9dbd077904bf1aebe55e1ac2.tar.bz2
historical-003e8ee38472713c9dbd077904bf1aebe55e1ac2.zip
Version bump per bug #366623. Bump EAPI, migrate to autotools-utils. Fix libtorrent dep in previous version
Package-Manager: portage-2.2.0_alpha55_p1/cvs/Linux x86_64
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/rtorrent/ChangeLog10
-rw-r--r--net-p2p/rtorrent/Manifest28
-rw-r--r--net-p2p/rtorrent/files/rtorrent-0.8.9-canvas-fix.patch299
-rw-r--r--net-p2p/rtorrent/files/rtorrent-0.8.9-ncurses.patch17
-rw-r--r--net-p2p/rtorrent/rtorrent-0.8.7-r4.ebuild4
-rw-r--r--net-p2p/rtorrent/rtorrent-0.8.9.ebuild71
6 files changed, 410 insertions, 19 deletions
diff --git a/net-p2p/rtorrent/ChangeLog b/net-p2p/rtorrent/ChangeLog
index f250eaecc151..63e5c43f0843 100644
--- a/net-p2p/rtorrent/ChangeLog
+++ b/net-p2p/rtorrent/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for net-p2p/rtorrent
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/rtorrent/ChangeLog,v 1.162 2011/08/15 19:44:03 sochotnicky Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/rtorrent/ChangeLog,v 1.163 2011/09/10 18:19:28 mgorny Exp $
+
+*rtorrent-0.8.9 (10 Sep 2011)
+
+ 10 Sep 2011; Michał Górny <mgorny@gentoo.org> rtorrent-0.8.7-r4.ebuild,
+ +rtorrent-0.8.9.ebuild, +files/rtorrent-0.8.9-canvas-fix.patch,
+ +files/rtorrent-0.8.9-ncurses.patch:
+ Version bump per bug #366623. Bump EAPI, migrate to autotools-utils. Fix
+ libtorrent dep in previous version
*rtorrent-0.8.7-r4 (15 Aug 2011)
diff --git a/net-p2p/rtorrent/Manifest b/net-p2p/rtorrent/Manifest
index 778c9c37aa13..84b407fcc2e4 100644
--- a/net-p2p/rtorrent/Manifest
+++ b/net-p2p/rtorrent/Manifest
@@ -5,29 +5,25 @@ AUX rtorrent-0.8.2-gcc34.patch 659 RMD160 c89a0c7b2acb6db4ce19fbb7a75f1da65638cd
AUX rtorrent-0.8.6-canvas-fix.patch 11607 RMD160 01f3be5ecf0769a44e31f9852eb3da5454e85c75 SHA1 4d60d95845df05c9864ca50d3f84726d2b93ab14 SHA256 a843dcd8c3b7fe0179c24d53cb485d2f11156a189e58911bbd14e5e30db71925
AUX rtorrent-0.8.6-ncurses.patch 572 RMD160 c0e390c444e50d69d8dbe4727c76b5962651a570 SHA1 2267dce2ddfb1ea865ba50c95e4a5beaf24da533 SHA256 4bcc6f33fad67d14f44cfdc63409fc94ef917dc120c46e60ce175d36af3fcb02
AUX rtorrent-0.8.7-canvas-fix.patch 10095 RMD160 67315e412a1d071c32366ff0920ae2fe69ac4c6f SHA1 ead1c7099cd42fc48b3194c3e53a9b2d4e2d4311 SHA256 a40a88d17e3090d3a7244ae701b049687b3646f8cbecfe40a1456306b6b56fd7
+AUX rtorrent-0.8.9-canvas-fix.patch 9995 RMD160 e9d7c870b8a77e46fa8556544de6a5b39c3accb1 SHA1 952b4bb18e5001c8257a6dcecda66a5d0817d781 SHA256 f53eca85da4800f123f1f482dd49e07d40fcc4055e84f9450f3894cc51259415
+AUX rtorrent-0.8.9-ncurses.patch 618 RMD160 61969665a70c02d7a5e810c40c33d190191b0abf SHA1 cf9e67d7d6a17f22e9c081307e14dfe0bca6345e SHA256 67002221b79bb5e43e8ed05ae0ebb22130c10eaf5739acbb1fb424050f2e2a05
AUX rtorrentd.conf 13 RMD160 aafd4d8440f40ae380b482876968f80267dff3bd SHA1 8b50885e27a2ff85cd28fccb56c11ead26d0ba49 SHA256 6725e7a3ed74f1432bd6b317f2aec7f9609bc20dd81dbbfcc632342c9f99177b
AUX rtorrentd.init 837 RMD160 d20e886080480cb4f87dc7272b36db22ca4d76da SHA1 35e261746de7ca1396240047e1b2bd426a8b1857 SHA256 d8b29a500439a6be30b94b29af3f6b7fa7c61c067af59cf46b9d197268858242
DIST rtorrent-0.8.6.tar.gz 521045 RMD160 3d5109d4ee26c663b376e0b9f610ab6055c57ba9 SHA1 ffce3959ba91738bb444d689db3db1e2375b14ce SHA256 8c96c68e1524162abd1fc4b612d0c3d924fccc25159c0b3f208e69281f0b32db
DIST rtorrent-0.8.7.tar.gz 547435 RMD160 52564096341088087c7a316c8e7637df77b672b6 SHA1 691c95e948d02927edc05321e52cd1c63513fabc SHA256 1fd0c9b2b3fe81b035209417c4dd4514473411f16b15ffe7fefe87eaff1a58d2
+DIST rtorrent-0.8.9.tar.gz 570904 RMD160 d79eacf6d63d13514c07c1c35a662fea5f35aef1 SHA1 0ac51c185e98b5a386e5f1a07bca9a9963e2d6ce SHA256 cca70eb36a0c176bbd6fdb3afe2bc9f163fa4c9377fc33bc29689dec60cf6d84
EBUILD rtorrent-0.8.6-r1.ebuild 1596 RMD160 c4558712e434a91bd49bb99049badd7e8c1e975f SHA1 e2c47673cea00308d5dc63dcce21dfa4229ff8f3 SHA256 1c177f4f112c0e21611f404f1c15d98ec1be13f92fdc0e54bb587bd3c9677ce5
EBUILD rtorrent-0.8.6-r4.ebuild 1666 RMD160 15b8466b39eb46d3fedd8978cf8e5641219ba32c SHA1 b56cb4f72c7e1a3f790340dc62e8cd3d3d09acd8 SHA256 eb8746d33eeb701043483be7d6d0105870a416ee93172454bebb2a11b8a83b83
-EBUILD rtorrent-0.8.7-r4.ebuild 1795 RMD160 a8e40dfe458a701a484fa904670a921bfdd6d19e SHA1 733ccee5e13b43ca174ddea8645bc0a977be2f10 SHA256 91116fe4679ba4161e3b5fba9a3fa62bfbc96eca86110da8713be640c24754e7
-MISC ChangeLog 24134 RMD160 d4e72098d01161d9a6e5b93583121d4dc7969af7 SHA1 ae5fcb8d86ad80caf74d447f5c50aee526825a85 SHA256 67dde96d2f01474280bec837eabd753b9af88cb2703a50aa5d33ccceaffd6a7b
+EBUILD rtorrent-0.8.7-r4.ebuild 1789 RMD160 5285fa692756cad50bda9882873e1f4fcf45a92d SHA1 7e44800220f1f2d174859c2a5d74cede264a1e1e SHA256 d3fd7a7b3bb531e1f00539ad7a629d4444d5a082597a308b39cc4b0ab27d3522
+EBUILD rtorrent-0.8.9.ebuild 1810 RMD160 b67172bf43225f67e29ee147158d7f69f3fbbb3a SHA1 a17ae2a05595f79c728cc6c7c5a141d9a7f28a97 SHA256 4dc148fe3dc6a0990dae26b8b9283f067ea6f0bd67cd1204df2b273582780e1a
+MISC ChangeLog 24454 RMD160 8f12519d12a0b87eacadbe05c2040e9918ccd3d7 SHA1 4d1ea9b51a917970955782361fee8b0b7a7a8166 SHA256 2e1825ca7fabb87a7d00652a555a1339bd89e36d325f682abd7fd5584bb7d64b
MISC metadata.xml 461 RMD160 20828b74a80b51c1df06f6dba3aa63fbe7eec437 SHA1 7d50936803d36c9e88d2030bcf6647d4cede9d09 SHA256 db7942b39f614d72ff07b2ca64acbddd975cc016761d0037eb9edf786a4b295d
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.17 (GNU/Linux)
+Version: GnuPG v2.0.18 (GNU/Linux)
-iQIcBAEBCAAGBQJOSXc0AAoJELy9dS57CHJB+VoP/2UhYYlknnMXqlogqXRpLw49
-lE5049glZlqyZGiVHTir67p8CFp301rc4q9+aIUmhhCXSCaWB4HlCy5zk+XcD2QB
-pxe2xyaCeMSZrFEQUqJaEW/ZkSwl7dQ2M4zVNV+UXfa6sE793q6Fd8uwuOs1Q9mh
-A4YtTC0dp5PELz2XNv9MDnMKUfmOuhdfZJDa9BV9toYI71vRxmce/fgUCTkuJCJb
-2ctD08hs8Epj34Iow/2BPJtD6/c8Q4g3rmc7H6q6q3vFhhpF1bLEXFF0KmYXSUuO
-YeHZeoFRnJBiYNDE6xeH64mf4UYZHFrDeTEdIL5qJIA4BYQWs2/6BFgmPK3elJci
-ym13bJ8IK4fX9NRuylMJEBXAnx/a+9roZ9582WvxcqUkbIFhFF+1fyUTNRb22ZJ3
-MmG2fDho08aDRBUakcpeVIy3FBPAG5vB6SGVRmMgupFQAvx+hp/aAfzJJNgwjwhQ
-d4+zouYAZOziJvEco4VyLY3GFzhHu94BHWEM0EBYwDEneYfqkKyg5x3eBk0UnxWA
-dWsvvfNwG0zd7Lug+aznvZMGKN4IiVTyaC+4J8MwNiQ6Rn+r/UYS2z55fzAx6QqA
-q3TzrGQZDZTIs5W9pqTz69BkuT14ju4JEgvywjYRUTccCUxkQBwivOdU9pYa2AEX
-H3BUa8tgH+PfLKCtrKdu
-=0njr
+iJwEAQEIAAYFAk5rqrEACgkQfXuS5UK5QB3roAP/bqAcoMmDkzg5ozSvVTQoXSf8
+9mwSpMuT8R8wptNMafttbqGzP55g3QsDUkSATSD/VJ3YKACH97sR8zkbQ/B6qyPZ
+sCli7ZuHxhA0E9sgigTv9zafZXsAPpWxZyEePDFPP2CBfs86PleQSPw/eVbJGmd4
+ncpeRKxbKvIZR20aRsw=
+=Cbft
-----END PGP SIGNATURE-----
diff --git a/net-p2p/rtorrent/files/rtorrent-0.8.9-canvas-fix.patch b/net-p2p/rtorrent/files/rtorrent-0.8.9-canvas-fix.patch
new file mode 100644
index 000000000000..f95efd7fa10b
--- /dev/null
+++ b/net-p2p/rtorrent/files/rtorrent-0.8.9-canvas-fix.patch
@@ -0,0 +1,299 @@
+Index: rtorrent/src/display/window_download_list.h
+===================================================================
+--- rtorrent/src/display/window_download_list.h (revision 1163)
++++ rtorrent/src/display/window_download_list.h (working copy)
+@@ -59,6 +59,10 @@
+ virtual void redraw();
+
+ void set_view(core::View* l);
++ void set_done_fg_color(int64_t color);
++ void set_done_bg_color(int64_t color);
++ void set_active_fg_color(int64_t color);
++ void set_active_bg_color(int64_t color);
+
+ private:
+ core::View* m_view;
+Index: rtorrent/src/display/canvas.cc
+===================================================================
+--- rtorrent/src/display/canvas.cc (revision 1163)
++++ rtorrent/src/display/canvas.cc (working copy)
+@@ -92,6 +92,10 @@
+ m_isInitialized = true;
+
+ initscr();
++ start_color();
++ use_default_colors();
++ init_pair(2, -1, -1);
++ init_pair(1, -1, -1);
+ raw();
+ noecho();
+ nodelay(stdscr, TRUE);
+Index: rtorrent/src/display/window_download_list.cc
+===================================================================
+--- rtorrent/src/display/window_download_list.cc (revision 1163)
++++ rtorrent/src/display/window_download_list.cc (working copy)
+@@ -37,6 +37,7 @@
+ #include "config.h"
+
+ #include <rak/algorithm.h>
++#include <torrent/rate.h>
+
+ #include "core/download.h"
+ #include "core/view.h"
+@@ -96,12 +97,30 @@
+ char* position;
+ char* last = buffer + m_canvas->width() - 2 + 1;
+
++ if( pos >= m_canvas->height() ) break;
+ position = print_download_title(buffer, last, *range.first);
+- m_canvas->print(0, pos++, "%c %s", range.first == m_view->focus() ? '*' : ' ', buffer);
++ m_canvas->print(0, pos, "%c %s", range.first == m_view->focus() ? '*' : ' ', buffer);
++ if( (*range.first)->is_done() ) {
++ if( (*range.first)->info()->up_rate()->rate() != 0 ) {
++ m_canvas->set_attr(0, pos, m_canvas->width()-1, A_BOLD, 2);
++ } else {
++ m_canvas->set_attr(0, pos, m_canvas->width()-1, A_NORMAL, 2);
++ }
++ } else if( (*range.first)->info()->is_active() ) {
++ if( (*range.first)->info()->down_rate()->rate() != 0 ) {
++ m_canvas->set_attr(0, pos, m_canvas->width()-1, A_BOLD, 1);
++ } else {
++ m_canvas->set_attr(0, pos, m_canvas->width()-1, A_NORMAL, 1);
++ }
++ }
++ pos++;
++
++ if( pos >= m_canvas->height() ) break;
+
+ position = print_download_info(buffer, last, *range.first);
+ m_canvas->print(0, pos++, "%c %s", range.first == m_view->focus() ? '*' : ' ', buffer);
+
++ if( pos >= m_canvas->height() ) break;
+ position = print_download_status(buffer, last, *range.first);
+ m_canvas->print(0, pos++, "%c %s", range.first == m_view->focus() ? '*' : ' ', buffer);
+
+@@ -109,4 +128,41 @@
+ }
+ }
+
++void
++WindowDownloadList::set_done_fg_color(int64_t color) {
++ short fg, bg;
++ pair_content(2, &fg, &bg);
++ if( color < 0 ) color = -1;
++ color = color % 8;
++ init_pair(2, (short)color, bg);
+ }
++
++void
++WindowDownloadList::set_done_bg_color(int64_t color) {
++ short fg, bg;
++ pair_content(2, &fg, &bg);
++ if( color < 0 ) color = -1;
++ color = color % 8;
++ init_pair(2, fg, (short)color);
++}
++
++void
++WindowDownloadList::set_active_fg_color(int64_t color) {
++ short fg, bg;
++ pair_content(1, &fg, &bg);
++ if( color < 0 ) color = -1;
++ color = color % 8;
++ init_pair(1, (short)color, bg);
++}
++
++void
++WindowDownloadList::set_active_bg_color(int64_t color) {
++ short fg, bg;
++ pair_content(1, &fg, &bg);
++ if( color < 0 ) color = -1;
++ color = color % 8;
++ init_pair(1, fg, (short)color);
++}
++
++}
++
+Index: rtorrent/src/command_network.cc
+===================================================================
+--- rtorrent/src/command_network.cc (revision 1163)
++++ rtorrent/src/command_network.cc (working copy)
+@@ -742,4 +742,13 @@
+ CMD2_ANY ("dht.statistics", std::bind(&core::DhtManager::dht_statistics, control->dht_manager()));
+ CMD2_ANY ("dht.throttle.name", std::bind(&core::DhtManager::throttle_name, control->dht_manager()));
+ CMD2_ANY_STRING_V("dht.throttle.name.set", std::bind(&core::DhtManager::set_throttle_name, control->dht_manager(), std::placeholders::_2));
++
++ CMD2_ANY ("set_done_fg_color", std::bind(&ui::Root::get_done_fg_color, control->ui()));
++ CMD2_ANY_VALUE_V("done_fg_color", std::bind(&ui::Root::set_done_fg_color, control->ui(), std::placeholders::_2));
++ CMD2_ANY ("set_done_bg_color", std::bind(&ui::Root::get_done_bg_color, control->ui()));
++ CMD2_ANY_VALUE_V("done_bg_color", std::bind(&ui::Root::set_done_bg_color, control->ui(), std::placeholders::_2));
++ CMD2_ANY ("set_active_fg_color", std::bind(&ui::Root::get_active_fg_color, control->ui()));
++ CMD2_ANY_VALUE_V("active_fg_color", std::bind(&ui::Root::set_active_fg_color, control->ui(), std::placeholders::_2));
++ CMD2_ANY ("set_active_bg_color", std::bind(&ui::Root::get_active_bg_color, control->ui()));
++ CMD2_ANY_VALUE_V("active_bg_color", std::bind(&ui::Root::set_active_bg_color, control->ui(), std::placeholders::_2));
+ }
+Index: rtorrent/src/ui/download_list.cc
+===================================================================
+--- rtorrent/src/ui/download_list.cc (revision 1163)
++++ rtorrent/src/ui/download_list.cc (working copy)
+@@ -137,6 +137,11 @@
+ current_view()->next_focus();
+ }
+
++display::WindowDownloadList*
++DownloadList::current_window_list() {
++ return dynamic_cast<ElementDownloadList*>(m_uiArray[DISPLAY_DOWNLOAD_LIST])->window();
++}
++
+ void
+ DownloadList::activate_display(Display displayType) {
+ if (!is_active())
+Index: rtorrent/src/ui/download_list.h
+===================================================================
+--- rtorrent/src/ui/download_list.h (revision 1163)
++++ rtorrent/src/ui/download_list.h (working copy)
+@@ -101,6 +101,7 @@
+ void activate_display(Display d);
+
+ core::View* current_view();
++ display::WindowDownloadList* current_window_list();
+ void set_current_view(const std::string& name);
+
+ void slot_open_uri(SlotOpenUri s) { m_slotOpenUri = s; }
+Index: rtorrent/src/ui/element_download_list.h
+===================================================================
+--- rtorrent/src/ui/element_download_list.h (revision 1163)
++++ rtorrent/src/ui/element_download_list.h (working copy)
+@@ -60,6 +60,7 @@
+ void disable();
+
+ core::View* view() { return m_view; }
++ WDownloadList* window() { return m_window; }
+ void set_view(core::View* l);
+
+ void receive_command(const char* cmd);
+Index: rtorrent/src/ui/root.cc
+===================================================================
+--- rtorrent/src/ui/root.cc (revision 1163)
++++ rtorrent/src/ui/root.cc (working copy)
+@@ -44,6 +44,7 @@
+
+ #include "core/manager.h"
+ #include "display/frame.h"
++#include "display/window_download_list.h"
+ #include "display/window_http_queue.h"
+ #include "display/window_title.h"
+ #include "display/window_input.h"
+@@ -65,7 +66,11 @@
+ m_windowTitle(NULL),
+ m_windowHttpQueue(NULL),
+ m_windowInput(NULL),
+- m_windowStatusbar(NULL) {
++ m_windowStatusbar(NULL),
++ done_fg_color(-1),
++ done_bg_color(-1),
++ active_fg_color(-1),
++ active_bg_color(-1) {
+ }
+
+ void
+@@ -97,6 +102,10 @@
+ setup_keys();
+
+ m_downloadList->activate(rootFrame->frame(1));
++ m_downloadList->current_window_list()->set_done_fg_color(done_fg_color);
++ m_downloadList->current_window_list()->set_done_bg_color(done_bg_color);
++ m_downloadList->current_window_list()->set_active_fg_color(active_fg_color);
++ m_downloadList->current_window_list()->set_active_bg_color(active_bg_color);
+ }
+
+ void
+@@ -219,7 +228,47 @@
+ torrent::set_max_unchoked(maxUnchoked);
+ }
+
++int
++Root::get_done_fg_color() {
++ return done_fg_color;
++}
++
+ void
++Root::set_done_fg_color(int64_t color) {
++ done_fg_color = color;
++}
++
++int
++Root::get_done_bg_color() {
++ return done_bg_color;
++}
++
++void
++Root::set_done_bg_color(int64_t color) {
++ done_bg_color = color;
++}
++
++int
++Root::get_active_fg_color() {
++ return active_fg_color;
++}
++
++void
++Root::set_active_fg_color(int64_t color) {
++ active_fg_color = color;
++}
++
++int
++Root::get_active_bg_color() {
++ return active_bg_color;
++}
++
++void
++Root::set_active_bg_color(int64_t color) {
++ active_bg_color = color;
++}
++
++void
+ Root::adjust_down_throttle(int throttle) {
+ set_down_throttle(std::max<int>(torrent::down_throttle_global()->max_rate() / 1024 + throttle, 0));
+ }
+Index: rtorrent/src/ui/root.h
+===================================================================
+--- rtorrent/src/ui/root.h (revision 1163)
++++ rtorrent/src/ui/root.h (working copy)
+@@ -82,7 +82,16 @@
+ // Rename to raw or something, make base function.
+ void set_down_throttle_i64(int64_t throttle) { set_down_throttle(throttle >> 10); }
+ void set_up_throttle_i64(int64_t throttle) { set_up_throttle(throttle >> 10); }
++ int get_done_fg_color();
++ void set_done_fg_color(int64_t color);
++ int get_done_bg_color();
++ void set_done_bg_color(int64_t color);
++ int get_active_fg_color();
++ void set_active_fg_color(int64_t color);
++ int get_active_bg_color();
++ void set_active_bg_color(int64_t color);
+
++
+ void adjust_down_throttle(int throttle);
+ void adjust_up_throttle(int throttle);
+
+@@ -93,6 +102,11 @@
+
+ input::TextInput* current_input();
+
++ int64_t done_fg_color;
++ int64_t done_bg_color;
++ int64_t active_fg_color;
++ int64_t active_bg_color;
++
+ private:
+ void setup_keys();
+
+@@ -105,6 +119,7 @@
+ WStatusbar* m_windowStatusbar;
+
+ input::Bindings m_bindings;
++
+ };
+
+ }
diff --git a/net-p2p/rtorrent/files/rtorrent-0.8.9-ncurses.patch b/net-p2p/rtorrent/files/rtorrent-0.8.9-ncurses.patch
new file mode 100644
index 000000000000..49a008e634ba
--- /dev/null
+++ b/net-p2p/rtorrent/files/rtorrent-0.8.9-ncurses.patch
@@ -0,0 +1,17 @@
+rtorrent segfaults with latest ncurses (5.8).
+this patch fixes the issue.
+
+https://bugs.gentoo.org/show_bug.cgi?id=358271
+https://bugzilla.redhat.com/show_bug.cgi?id=682454
+http://libtorrent.rakshasa.no/ticket/2518
+--- src/display/canvas.h
++++ src/display/canvas.h
+@@ -48,7 +48,7 @@
+ public:
+ typedef std::vector<Attributes> attributes_list;
+
+- Canvas(int x = 0, int y = 0, int width = 0, int height = 0);
++ Canvas(int x = 0, int y = 0, int width = 1, int height = 1);
+ ~Canvas() { delwin(m_window); }
+
+ void refresh() { wnoutrefresh(m_window); }
diff --git a/net-p2p/rtorrent/rtorrent-0.8.7-r4.ebuild b/net-p2p/rtorrent/rtorrent-0.8.7-r4.ebuild
index 638830d78891..c4e7abd53349 100644
--- a/net-p2p/rtorrent/rtorrent-0.8.7-r4.ebuild
+++ b/net-p2p/rtorrent/rtorrent-0.8.7-r4.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/rtorrent/rtorrent-0.8.7-r4.ebuild,v 1.1 2011/08/15 19:44:03 sochotnicky Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/rtorrent/rtorrent-0.8.7-r4.ebuild,v 1.2 2011/09/10 18:19:28 mgorny Exp $
EAPI=2
@@ -15,7 +15,7 @@ SLOT="0"
KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
IUSE="color daemon debug ipv6 test xmlrpc"
-COMMON_DEPEND=">=net-libs/libtorrent-0.12.${PV##*.}
+COMMON_DEPEND="~net-libs/libtorrent-0.12.${PV##*.}
>=dev-libs/libsigc++-2.2.2:2
>=net-misc/curl-7.19.1
sys-libs/ncurses
diff --git a/net-p2p/rtorrent/rtorrent-0.8.9.ebuild b/net-p2p/rtorrent/rtorrent-0.8.9.ebuild
new file mode 100644
index 000000000000..f85001e5f469
--- /dev/null
+++ b/net-p2p/rtorrent/rtorrent-0.8.9.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/rtorrent/rtorrent-0.8.9.ebuild,v 1.1 2011/09/10 18:19:28 mgorny Exp $
+
+EAPI=4
+
+inherit autotools-utils eutils
+
+DESCRIPTION="BitTorrent Client using libtorrent"
+HOMEPAGE="http://libtorrent.rakshasa.no/"
+SRC_URI="http://libtorrent.rakshasa.no/downloads/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+IUSE="color daemon debug ipv6 test xmlrpc"
+
+COMMON_DEPEND=">=net-libs/libtorrent-0.12.${PV##*.}
+ >=dev-libs/libsigc++-2.2.2:2
+ >=net-misc/curl-7.19.1
+ sys-libs/ncurses
+ xmlrpc? ( dev-libs/xmlrpc-c )"
+RDEPEND="${COMMON_DEPEND}
+ daemon? ( app-misc/screen )"
+DEPEND="${COMMON_DEPEND}
+ test? ( dev-util/cppunit )
+ dev-util/pkgconfig"
+
+RESTRICT=test
+
+src_prepare() {
+ local PATCHES=(
+ "${FILESDIR}"/${P}-ncurses.patch
+ )
+ autotools-utils_src_prepare
+
+ use color && EPATCH_OPTS="-p1" epatch "${FILESDIR}"/${P}-canvas-fix.patch
+}
+
+src_configure() {
+ local myeconfargs=(
+ --disable-dependency-tracking
+ $(use_enable ipv6)
+ $(use_with xmlrpc xmlrpc-c)
+ )
+
+ autotools-utils_src_configure
+}
+
+src_install() {
+ local DOCS=( AUTHORS README TODO doc/rtorrent.rc )
+
+ autotools-utils_src_install
+ doman doc/rtorrent.1
+
+ if use daemon; then
+ newinitd "${FILESDIR}/rtorrentd.init" rtorrentd
+ newconfd "${FILESDIR}/rtorrentd.conf" rtorrentd
+ fi
+}
+
+pkg_postinst() {
+ if use color; then
+ elog "rtorrent colors patch"
+ elog "Set colors using the options below in .rtorrent.rc:"
+ elog "Options: done_fg_color, done_bg_color, active_fg_color, active_bg_color"
+ elog "Colors: 0 = black, 1 = red, 2 = green, 3 = yellow, 4 = blue,"
+ elog "5 = magenta, 6 = cyan and 7 = white"
+ elog "Example: done_fg_color = 1"
+ fi
+}