Browse files

tmux: fix --HEAD

Closes #15232.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
  • Loading branch information...
1 parent 4455ebe commit f4a0f44a7d7930f3f9ae43dbe5dba539fc1e73ea @gpakosz gpakosz committed with adamv Oct 2, 2012
Showing with 13 additions and 10 deletions.
  1. +13 −10 Library/Formula/tmux.rb
View
23 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 @@ def install
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'

0 comments on commit f4a0f44

Please sign in to comment.