Skip to content

Instantly share code, notes, and snippets.

@bongole
Created July 14, 2011 08:18
Show Gist options
  • Save bongole/1082090 to your computer and use it in GitHub Desktop.
Save bongole/1082090 to your computer and use it in GitHub Desktop.
brew tmux-1.5 pbcopy fix patch
require 'formula'
class Tmux < Formula
url 'http://sourceforge.net/projects/tmux/files/tmux/tmux-1.5/tmux-1.5.tar.gz'
md5 '3d4b683572af34e83bc8b183a8285263'
homepage 'http://tmux.sourceforge.net'
depends_on 'libevent'
def patches
{ :p1 => DATA }
end
def install
ENV.append "LDFLAGS", '-lresolv'
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}", "--sysconfdir=#{etc}"
system "make install"
# Install bash completion scripts for use with bash-completion
(prefix+'etc/bash_completion.d').install "examples/bash_completion_tmux.sh" => 'tmux'
end
def caveats; <<-EOS.undent
Bash completion script was installed to:
#{etc}/bash_completion.d/tmux
EOS
end
end
__END__
--- tmux-1.5/configure.orig 2011-07-13 01:27:44.000000000 +0900
+++ tmux-1.5/configure 2011-07-13 01:32:32.000000000 +0900
@@ -5164,7 +5164,7 @@
# Look for daemon, compat/daemon.c used if missing.
ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
if test "x$ac_cv_func_daemon" = x""yes; then :
- found_daemon=yes
+ found_daemon=no
else
found_daemon=no
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment