aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/libgit2.rb
blob: 369733052ab50a804dd19393c029e263ec63778e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require 'formula'

class Libgit2 < Formula
  homepage 'http://libgit2.github.io/'
  url 'https://github.com/libgit2/libgit2/archive/v0.19.0.tar.gz'
  sha1 '72cc461d366c5ace3385470a1f209ff84d0a4bb3'

  head 'https://github.com/libgit2/libgit2.git', :branch => 'development'

  depends_on 'cmake' => :build

  def install
    mkdir 'build' do
      system "cmake", "..",
                      "-DBUILD_TESTS=NO",
                      *std_cmake_args
      system "make install"
    end
  end
end