summaryrefslogtreecommitdiffstats
path: root/ftp/rtorrent/PRE_BUILD
diff options
context:
space:
mode:
Diffstat (limited to 'ftp/rtorrent/PRE_BUILD')
-rwxr-xr-xftp/rtorrent/PRE_BUILD4
1 files changed, 3 insertions, 1 deletions
diff --git a/ftp/rtorrent/PRE_BUILD b/ftp/rtorrent/PRE_BUILD
index df62c4f8ff..c435e614b3 100755
--- a/ftp/rtorrent/PRE_BUILD
+++ b/ftp/rtorrent/PRE_BUILD
@@ -1,3 +1,5 @@
default_pre_build &&
cd $SOURCE_DIRECTORY &&
-patch -p1 < $SPELL_DIRECTORY/rtorrent-0.8.7-canvas-patch-fix-for-ncurses-5-8.patch
+if [[ $(installed_version ncurses) == 5.8 ]]; then
+patch -p0 < ${SPELL_DIRECTORY}/rtorrent-ncurses.patch
+fi