Skip to content

Instantly share code, notes, and snippets.

@guange2015
Last active December 15, 2015 12:28
Show Gist options
  • Save guange2015/5260292 to your computer and use it in GitHub Desktop.
Save guange2015/5260292 to your computer and use it in GitHub Desktop.
require 'formula'
# Documentation: https://github.com/mxcl/homebrew/wiki/Formula-Cookbook
# PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST!
class TmuxForIterm2 < Formula
homepage 'https://code.google.com/p/iterm2/downloads/detail?name=tmux-for-iTerm2-20130319.tar
url 'https://iterm2.googlecode.com/files/tmux-for-iTerm2-20130319.tar.gz'
sha1 'f14a0bad6991b9e3380d5c3a6057e09f62597d1f'
depends_on 'libevent'
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
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