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
|
2013-04-07 02:34:41 +00:00
|
|
|
homepage 'http://lloyd.github.io/yajl/'
|
2013-03-17 15:56:57 +00:00
|
|
|
url 'https://github.com/lloyd/yajl/archive/2.0.4.tar.gz'
|
|
|
|
sha256 '0e78f516dc53ecce7dc073f9a9bb0343186b58ef29dcd1dad74e5e853b216dd5'
|
2009-06-04 18:21:19 +00:00
|
|
|
|
2014-02-23 12:31:08 +00:00
|
|
|
bottle do
|
|
|
|
sha1 "a02d27cc6b98912176bd636ee30aaca464a44ae8" => :mavericks
|
|
|
|
sha1 "1d8cec340ef78502d9e726a96c416c20ee7e85e1" => :mountain_lion
|
|
|
|
sha1 "1e7bbbf4f37b9a251c430b2438f3449cc62d5903" => :lion
|
|
|
|
end
|
|
|
|
|
2012-02-10 03:02:36 +00:00
|
|
|
# Configure uses cmake internally
|
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"
|
2013-03-17 15:56:57 +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
|