2010-11-29 19:47:16 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Libgit2 < Formula
|
2012-02-21 06:04:21 +00:00
|
|
|
homepage 'http://libgit2.github.com/'
|
2012-05-23 18:17:22 +00:00
|
|
|
url 'https://github.com/libgit2/libgit2/tarball/v0.17.0'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 'a868978e1d322d967fb7877b757f7c6b81b37923'
|
2010-11-29 19:47:16 +00:00
|
|
|
|
2011-05-27 05:02:55 +00:00
|
|
|
head 'https://github.com/libgit2/libgit2.git', :branch => 'master'
|
2010-11-29 19:47:16 +00:00
|
|
|
|
2011-06-19 23:38:32 +00:00
|
|
|
depends_on 'cmake' => :build
|
|
|
|
|
2010-11-29 19:47:16 +00:00
|
|
|
def install
|
2012-02-22 04:48:36 +00:00
|
|
|
mkdir 'build' do
|
2012-05-22 21:37:04 +00:00
|
|
|
system "cmake", "..",
|
|
|
|
"-DBUILD_TESTS=NO",
|
|
|
|
*std_cmake_args
|
2011-06-19 23:38:32 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
2010-11-29 19:47:16 +00:00
|
|
|
end
|
|
|
|
end
|