require 'formula' class Fontforge :build depends_on 'gettext' depends_on 'pango' depends_on 'potrace' def install system "./configure", "--prefix=#{prefix}", "--enable-double", "--without-freetype-bytecode", "--without-python" inreplace "Makefile" do |s| s.gsub! "/Applications", "$(prefix)" s.gsub! "/usr/local/bin", "$(bindir)" end system "make" system "make install" end def caveats; <<-EOS.undent fontforge is an X11 application. To install the Mac OS X wrapper application run: $ brew linkapps or: $ sudo ln -s #{prefix}/FontForge.app /Applications EOS end end