Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Create tmux-iterm2.rb

  • Loading branch information...
commit 40923df539b693e59975a87a20ac6c23689f3737 1 parent bb1c129
@olivier-o authored
Showing with 45 additions and 0 deletions.
  1. +45 −0 tmux-iterm2.rb
View
45 tmux-iterm2.rb
@@ -0,0 +1,45 @@
+require 'formula'
+
+class TmuxIterm2 < Formula
+ url 'http://iterm2.googlecode.com/files/iTerm2-1_0_0_20130122.zip'
+ sha1 'a5f55b545500ebcb97e842f65ea9c90dd457f228'
+
+ head 'git://tmux.git.sourceforge.net/gitroot/tmux/tmux'
+
+ depends_on 'pkg-config' => :build
+ depends_on 'libevent'
+
+ if build.head?
+ depends_on :automake
+ depends_on :libtool
+ end
+
+ def install
+ system "tar -xvf tmux-for-iTerm2-20130122.tar.gz"
+
+ Dir.chdir "tmux" do
+ system "sh", "autogen.sh" if build.head?
+
+ 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-iterm2'
+
+ # Install addtional meta file
+ prefix.install 'NOTES'
+ end
+ end
+
+ def caveats; <<-EOS.undent
+ Additional information can be found in:
+ #{prefix}/NOTES
+ EOS
+ end
+
+ def test
+ system "#{bin}/tmux", "-V"
+ end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.