aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorGregory Pakosz2012-10-02 09:57:42 +0300
committerAdam Vandenberg2012-10-02 07:03:03 -0700
commitf4a0f44a7d7930f3f9ae43dbe5dba539fc1e73ea (patch)
treed905ab46610e41224c845dbdb94bbc96f2cb8b94 /Library
parent4455ebe36a792a5055a85f000daa0b19fef3ada3 (diff)
downloadhomebrew-f4a0f44a7d7930f3f9ae43dbe5dba539fc1e73ea.tar.bz2
tmux: fix --HEAD
Closes #15232. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/tmux.rb23
1 files changed, 13 insertions, 10 deletions
diff --git a/Library/Formula/tmux.rb b/Library/Formula/tmux.rb
index 5e7b5c166..51c10d505 100644
--- a/Library/Formula/tmux.rb
+++ b/Library/Formula/tmux.rb
@@ -16,15 +16,17 @@ class Tmux < Formula
end
def patches
- # Fix for Japanese characters. See:
- # http://sourceforge.net/tracker/?func=detail&aid=3566884&group_id=200378&atid=973264
- p = ['http://sourceforge.net/tracker/download.php?group_id=200378&atid=973264&file_id=453002&aid=3566884']
- # This patch adds the implementation of osdep_get_cwd for Darwin platform,
- # so that tmux can get current working directory correctly under Mac OS.
- # NOTE: it applies to 1.6 only, and should be removed when 1.7 is out.
- # (because it has been merged upstream)
- p << DATA if build.stable?
-
+ p = []
+ if build.stable?
+ # Fix for Japanese characters. (Does not apply to head.) See:
+ # http://sourceforge.net/tracker/?func=detail&aid=3566884&group_id=200378&atid=973264
+ p << 'http://sourceforge.net/tracker/download.php?group_id=200378&atid=973264&file_id=453002&aid=3566884'
+ # This patch adds the implementation of osdep_get_cwd for Darwin platform,
+ # so that tmux can get current working directory correctly under Mac OS.
+ # NOTE: it applies to 1.6 only, and should be removed when 1.7 is out.
+ # (because it has been merged upstream)
+ p << DATA
+ end
p
end
@@ -33,7 +35,8 @@ class Tmux < Formula
ENV.append "LDFLAGS", '-lresolv'
system "./configure", "--disable-dependency-tracking",
- "--prefix=#{prefix}", "--sysconfdir=#{etc}"
+ "--prefix=#{prefix}",
+ "--sysconfdir=#{etc}"
system "make install"
(prefix+'etc/bash_completion.d').install "examples/bash_completion_tmux.sh" => 'tmux'