aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/libgit2.rb
blob: 5b90a5f0da46bcc8a8e66cd09e6d531f8b8902f5 (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.18.0.tar.gz'
  sha1 '08b6b7520580615c5549ff739ba7d0c8e3617188'

  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