homebrew-core/Formula/yajl.rb
Max Howell 97b1ada08d Created /Library moved brew tool to /bin
Moved Forumla and Cellar/homebrew into Library.

This way the homebrew core files are more sensibly placed, Cellar is
more internally consistent and only generated. And Homebrew is ready for
use straight out of the tarball.
2009-06-04 19:36:58 +01:00

21 lines
No EOL
519 B
Ruby

require 'brewkit'
class Yajl <Formula
@homepage='http://lloyd.github.com/yajl/'
@url='http://github.com/lloyd/yajl/tarball/1.0.5'
@md5='f4a3cbc764c43231ed1aedc54438b69b'
def deps
dep_test_bin 'cmake'
end
def install
ENV['MAKEFLAGS']='' # can't do parallel builds
# I have pushed this fix upstream
inreplace 'configure', 'cmake \.\.', "cmake -DCMAKE_INSTALL_PREFIX='#{prefix}' \.\." if @version == "1.0.5"
system "./configure --prefix '#{prefix}'"
system "make install"
end
end