Skip to content

Instantly share code, notes, and snippets.

@erickreutz
Forked from devinus/tmux-iterm2.rb
Last active December 15, 2015 04:49
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 erickreutz/5203887 to your computer and use it in GitHub Desktop.
Save erickreutz/5203887 to your computer and use it in GitHub Desktop.
require 'formula'
class TmuxIterm2 < Formula
homepage 'https://code.google.com/p/iterm2/wiki/TmuxIntegration'
url 'https://iterm2.googlecode.com/files/tmux-for-iTerm2-20130319.tar.gz'
sha1 'f14a0bad6991b9e3380d5c3a6057e09f62597d1f'
depends_on 'pkg-config' => :build
depends_on 'libevent'
if build.head?
depends_on :automake
depends_on :libtool
end
def install
system "sh", "autogen.sh" if build.head?
ENV.append "LDFLAGS", '-lresolv'
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--sysconfdir=#{etc}"
system "make install"
(prefix+'etc/bash_completion.d').install "examples/bash_completion_tmux.sh" => 'tmux'
# Install addtional meta file
# prefix.install 'NOTES'
end
def caveats; <<-EOS.undent
Additional information can be found in:
#{prefix}/
EOS
end
def test
system "#{bin}/tmux", "-V"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment