2014-05-19 02:20:14 +00:00
|
|
|
require "formula"
|
2010-02-20 14:23:03 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class JsonC < Formula
|
2014-05-19 02:20:14 +00:00
|
|
|
homepage "https://github.com/json-c/json-c/wiki"
|
2014-05-20 19:50:15 +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
|
2014-05-20 20:00:08 +00:00
|
|
|
revision 1
|
|
|
|
sha1 "937cec063a3ad30b7c806c59b2c605c21b47fbb4" => :mavericks
|
|
|
|
sha1 "e1a3bdda78ce63c746582f58548da7a04a6baff1" => :mountain_lion
|
|
|
|
sha1 "789f81ff4f5b7f5a1bbb971841496af8cd61c449" => :lion
|
2014-03-13 20:13:59 +00:00
|
|
|
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
|