Last active
December 14, 2015 16:09
-
-
Save devinus/5112917 to your computer and use it in GitHub Desktop.
Homebrew formula for the latest iTerm2 tmux package (kept updated)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | |
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