diff options
| author | Adam Vandenberg | 2010-08-11 09:58:02 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-08-11 09:58:02 -0700 |
| commit | 479d20707fcd8b0387396890d3f370ff55a234b2 (patch) | |
| tree | f01f5c07a17233394c10a7fe4dfb0124d0f8ff1b | |
| parent | 1d817d9eb7cec118b29e9974d2247eec77b2d4fa (diff) | |
| download | homebrew-479d20707fcd8b0387396890d3f370ff55a234b2.tar.bz2 | |
rtorrent - add warning if ncursesw is installed
| -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 |
