homebrew-core/Formula/yajl.rb
BrewTestBot fcfa8c531d yajl: update 2.1.0 bottle.
Closes Homebrew/homebrew#29810.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-06-03 12:21:02 +01:00

31 lines
815 B
Ruby

require 'formula'
class Yajl < Formula
homepage 'http://lloyd.github.io/yajl/'
url 'https://github.com/lloyd/yajl/archive/2.1.0.tar.gz'
sha256 '3fb73364a5a30efe615046d07e6db9d09fd2b41c763c5f7d3bfb121cd5c5ac5a'
bottle do
cellar :any
sha1 "418941bfd0684cf14ae0bebc65324e99b76a3aa4" => :mavericks
sha1 "f59aa705d9324e1c4a47bbba7ba50b74b3649ca3" => :mountain_lion
sha1 "1bea5088df669781cc1835a97ae991773ad7b36b" => :lion
end
# Configure uses cmake internally
depends_on 'cmake' => :build
def install
ENV.deparallelize
system "cmake", ".", *std_cmake_args
system "make install"
(include/'yajl').install Dir['src/api/*.h']
end
test do
output = `echo "[0,1,2,3]" | '#{bin}/json_verify'`
assert $?.success?
assert_match /valid/i, output.strip
end
end