mxcl/homebrew — Issue #10336: Request Formula: Terminator
Author: davetcoleman
Created: 2012-02-20 02:31:58+00:00
State: open

I am attempting to create a formula for [GNOME Terminator](http://www.tenshu.net/p/terminator.html) - an awesome multi-screen terminal - but am running into many issues. This request is moved from [here](https://github.com/mxcl/homebrew/issues/9506).

I have made a lot of progress and have gotten a gui window to popup up - with an error. However its requiring me to upgrade the versions of lots of other recipes including cairo, pygtk, gtk, gobject, vt, etc. I've been going in circles for hours and I feel like I'm over my head - please help!

For reference, this has been done both in MacPorts [here](https://trac.macports.org/browser/trunk/dports/sysutils/terminator/Portfile?rev=72863) and Fink [here](http://fink.cvs.sourceforge.net/fink/dists/10.7/stable/main/finkinfo/gnome/terminator.info?view=markup) - so it should be possible here. I don't want to use them because my understanding is that Homebrew does not co-exist well with those old/ugly package managers. And Homebrew is awesome.

Thanks to the help of others on here and my own research this is the current version of the formula:
```
require 'formula'

class Terminator < Formula
url 'http://launchpad.net/terminator/trunk/0.96/+download/terminator_0.96.tar.gz'
homepage 'http://www.tenshu.net/p/terminator.html'
md5 '070e3878336b341c9e18339d89ba64fe'

depends_on 'gettext' => :build, 'intltool' => :build
depends_on 'pygtk'
depends_on 'vte'
depends_on 'hicolor-icon-theme'

def install
msgfmt = `which #{HOMEBREW_PREFIX}/Cellar/gettext/*/bin/msgfmt`.split(' ')[0]
inreplace 'setup.py' do |s|
s.gsub! "'msgfmt'", "'#{msgfmt}'"
end
system "python", "setup.py", "build"
system "python", "setup.py", "--without-icon-cache", "install", "--prefix=#{prefix}"
end

def test
system "terminator"
end
end
```

Terminator is a really amazing terminal app that would be really great to have on Mac. Thanks so much!