2009-06-04 18:21:19 +00:00
|
|
|
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
|
2009-06-18 10:13:11 +00:00
|
|
|
BinaryDep.new 'cmake'
|
2009-06-04 18:21:19 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
2009-08-07 14:41:43 +00:00
|
|
|
ENV.deparallelize
|
2009-06-04 18:21:19 +00:00
|
|
|
|
|
|
|
# I have pushed this fix upstream
|
2009-09-02 13:32:28 +00:00
|
|
|
inreplace 'configure', 'cmake ..', "cmake #{std_cmake_parameters} .." if @version == "1.0.5"
|
2009-06-04 18:21:19 +00:00
|
|
|
|
|
|
|
system "./configure --prefix '#{prefix}'"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|