yajl-1.0.5 formula

This commit is contained in:
Max Howell 2009-05-21 17:40:10 +01:00
parent ee385a2ca9
commit 25f9cfc01f

16
Formula/yajl.rb Normal file
View File

@ -0,0 +1,16 @@
$:.unshift "#{File.dirname __FILE__}/../Cellar/homebrew" #rubysucks
require 'brewkit'
homepage='http://lloyd.github.com/yajl/'
url='http://github.com/lloyd/yajl/tarball/1.0.5'
md5='f4a3cbc764c43231ed1aedc54438b69b'
deps=['cmake']
Formula.new(url, md5).brew do |prefix|
inreplace 'configure', 'cmake \.\.', "cmake -DCMAKE_INSTALL_PREFIX='#{prefix}' \.\."
system "./configure --prefix '#{prefix}'"
system "make install"
end