homebrew-core/Formula/json-c.rb

19 lines
597 B
Ruby
Raw Normal View History

require 'formula'
2013-04-11 07:26:10 +00:00
# Stick with 0.10; PostGIS doesn't build against 0.11
2011-03-10 05:11:03 +00:00
class JsonC < Formula
homepage 'https://github.com/json-c/json-c/wiki'
url 'https://github.com/downloads/json-c/json-c/json-c-0.10.tar.gz'
sha1 'f90f643c8455da21d57b3e8866868a944a93c596'
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
# The Makefile forgets to install this header. This is fixed upstream and
# can be pulled on the next release.
(include/'json').install 'json_object_iterator.h'
end
end