2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-06-04 18:21:19 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Yajl < Formula
|
2009-11-21 23:34:34 +00:00
|
|
|
homepage 'http://lloyd.github.com/yajl/'
|
2011-02-18 08:17:07 +00:00
|
|
|
url 'http://github.com/lloyd/yajl/tarball/1.0.11'
|
|
|
|
md5 '5b60f4d59b3b1fb42d7808d08460fb12'
|
|
|
|
|
|
|
|
def patches
|
|
|
|
# All YAJL releases so far have an rpath bug, though its fixed in upstream git:
|
2011-02-27 22:25:17 +00:00
|
|
|
"https://github.com/lloyd/yajl/commit/a31c4d0f9ad90b4b58508702fd877bb35039067e.patch"
|
2011-02-18 08:17:07 +00:00
|
|
|
end
|
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
|