aboutsummaryrefslogtreecommitdiffstats
path: root/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Formula')
-rw-r--r--Formula/yajl.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/Formula/yajl.rb b/Formula/yajl.rb
new file mode 100644
index 000000000..a4784d715
--- /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