2010-11-29 19:47:16 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Libgit2 < Formula
|
2013-07-21 20:06:13 +00:00
|
|
|
homepage 'http://libgit2.github.com/'
|
2013-11-27 18:54:54 +00:00
|
|
|
url 'https://github.com/libgit2/libgit2/archive/v0.20.0.tar.gz'
|
|
|
|
sha1 '811bbe4fe4fc83236ba42d23e3b449f1b95b4bab'
|
2010-11-29 19:47:16 +00:00
|
|
|
|
2013-01-04 02:28:28 +00:00
|
|
|
head 'https://github.com/libgit2/libgit2.git', :branch => 'development'
|
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
|