homebrew-core/Formula/json_spirit.rb
Mike McQuaid 7f000e41f8 formulae: don't use GitHub zip files.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-03-08 00:54:35 +00:00

23 lines
554 B
Ruby

require 'formula'
class JsonSpirit < Formula
homepage 'http://www.codeproject.com/KB/recipes/JSON_Spirit.aspx'
url 'https://github.com/png85/json_spirit/archive/json_spirit-4.07.tar.gz'
sha1 'b29272c59f8f840c255f75a0949ba839b7cec13b'
depends_on 'boost'
depends_on 'cmake' => :build
def install
args = std_cmake_args
args << "-DBUILD_STATIC_LIBRARIES=ON"
system "cmake", *args
system "make"
args = std_cmake_args
args << "-DBUILD_STATIC_LIBRARIES=OFF"
system "cmake", *args
system "make install"
end
end