1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
require 'formula' class Greg <Formula head 'http://github.com/nddrylliog/greg.git' homepage 'http://github.com/nddrylliog/greg' def install inreplace 'Makefile' do |s| s.change_make_var! "PREFIX", prefix end bin.mkdir system "make install" end end