2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-06-04 18:21:19 +00:00
|
|
|
|
|
|
|
class Yajl <Formula
|
2009-11-21 23:34:34 +00:00
|
|
|
homepage 'http://lloyd.github.com/yajl/'
|
2010-03-01 17:20:20 +00:00
|
|
|
url 'http://cloud.github.com/downloads/lloyd/yajl/yajl-1.0.9.tar.gz'
|
|
|
|
md5 '8643ff2fef762029e51c86882a4d0fc6'
|
2009-06-04 18:21:19 +00:00
|
|
|
|
2009-11-21 23:34:34 +00:00
|
|
|
# Configure uses cmake, even though it looks like we're
|
|
|
|
# just using autotools below.
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'cmake' => :build
|
2009-06-04 18:21:19 +00:00
|
|
|
|
|
|
|
def install
|
2009-08-07 14:41:43 +00:00
|
|
|
ENV.deparallelize
|
2009-06-04 18:21:19 +00:00
|
|
|
|
2010-03-01 17:20:20 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}"
|
2009-06-04 18:21:19 +00:00
|
|
|
system "make install"
|
2010-03-01 17:20:20 +00:00
|
|
|
(include + 'yajl').install Dir['src/api/*.h']
|
2009-06-04 18:21:19 +00:00
|
|
|
end
|
2010-03-01 17:20:20 +00:00
|
|
|
end
|