aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2010-08-11 09:58:02 -0700
committerAdam Vandenberg2010-08-11 09:58:02 -0700
commit479d20707fcd8b0387396890d3f370ff55a234b2 (patch)
treef01f5c07a17233394c10a7fe4dfb0124d0f8ff1b /Library
parent1d817d9eb7cec118b29e9974d2247eec77b2d4fa (diff)
downloadhomebrew-479d20707fcd8b0387396890d3f370ff55a234b2.tar.bz2
rtorrent - add warning if ncursesw is installed
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/rtorrent.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/Library/Formula/rtorrent.rb b/Library/Formula/rtorrent.rb
index f5daca228..f4214f6a7 100644
--- a/Library/Formula/rtorrent.rb
+++ b/Library/Formula/rtorrent.rb
@@ -11,6 +11,15 @@ class Rtorrent <Formula
depends_on 'xmlrpc-c' => :optional
def install
+ if Formula.factory('ncursesw').installed?
+ opoo "Compiling rtorrent with ncursesw installed can segfault at runtime"
+ puts "You may need to do:"
+ puts " brew unlink ncursesw"
+ puts " brew install rtorrent"
+ puts " brew link ncursesw"
+ puts "for rtorrent to compile correctly."
+ end
+
args = ["--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}"]
args << "--with-xmlrpc-c" if Formula.factory("xmlrpc-c").installed?
system "./configure", *args