homebrew-core/Formula/yajl.rb

25 lines
664 B
Ruby
Raw Normal View History

require 'formula'
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/'
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"
end
2009-11-21 23:34:34 +00:00
# Configure uses cmake, even though it looks like we're
# just using autotools below.
depends_on 'cmake' => :build
def install
ENV.deparallelize
system "./configure", "--prefix=#{prefix}"
system "make install"
(include + 'yajl').install Dir['src/api/*.h']
end
end