2010-02-20 14:23:03 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class JsonC < Formula
|
2012-09-11 16:52:14 +00:00
|
|
|
homepage 'https://github.com/json-c/json-c/wiki'
|
2013-06-21 12:13:42 +00:00
|
|
|
url 'https://github.com/json-c/json-c/archive/json-c-0.11-20130402.tar.gz'
|
|
|
|
version '0.11'
|
|
|
|
sha1 '1910e10ea57a743ec576688700df4a0cabbe64ba'
|
2010-02-20 14:23:03 +00:00
|
|
|
|
2014-03-13 20:13:59 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha1 "44f79306bc549ac82fb2007184a757e6d94ae320" => :mavericks
|
|
|
|
sha1 "0d3169dcd74efedb465598463026dc8c1b3192a1" => :mountain_lion
|
|
|
|
sha1 "13d7c03bb2c64a60d392390e693f750ccb38be6c" => :lion
|
|
|
|
end
|
|
|
|
|
2014-03-21 18:40:23 +00:00
|
|
|
option :universal
|
|
|
|
|
2010-02-20 14:23:03 +00:00
|
|
|
def install
|
2014-03-21 18:40:23 +00:00
|
|
|
ENV.universal_binary if build.universal?
|
|
|
|
|
2012-09-11 16:52:14 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
2013-06-21 12:13:42 +00:00
|
|
|
ENV.deparallelize
|
2013-04-07 23:22:13 +00:00
|
|
|
system "make install"
|
2010-02-20 14:23:03 +00:00
|
|
|
end
|
|
|
|
end
|