Skip to content

Instantly share code, notes, and snippets.

@yusukei
Created August 31, 2011 01:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yusukei/1182575 to your computer and use it in GitHub Desktop.
Save yusukei/1182575 to your computer and use it in GitHub Desktop.
tmux with pasteboard Formula
require 'formula'
class TmuxFix < 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'
depends_on 'tmux-MacOSX-pasteboard'
def patches
p = []
p << "https://raw.github.com/gist/1170871/f4ef29f5b96b36d71d48cb3ce8a2af5c10fb7573/gistfile1.diff"
return p
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment