From 25f9cfc01fdb193ce25cad623d51bf59c19d8eec Mon Sep 17 00:00:00 2001 From: Max Howell Date: Thu, 21 May 2009 17:40:10 +0100 Subject: [PATCH] yajl-1.0.5 formula --- Formula/yajl.rb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Formula/yajl.rb diff --git a/Formula/yajl.rb b/Formula/yajl.rb new file mode 100644 index 0000000000..a4784d7157 --- /dev/null +++ b/Formula/yajl.rb @@ -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 \ No newline at end of file