diff options
| -rw-r--r-- | Library/Formula/rtorrent.rb | 9 |
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 |
