require 'formula' class Libgit2 < Formula homepage 'http://libgit2.github.com/' url 'https://github.com/libgit2/libgit2/tarball/v0.17.0' md5 '5a09dd1118d1354375407119d19e0f2c' head 'https://github.com/libgit2/libgit2.git', :branch => 'master' depends_on 'cmake' => :build def install mkdir 'build' do system "cmake", "..", "-DBUILD_TESTS=NO", *std_cmake_args system "make install" end end end