aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/libgit2.rb
blob: 1ba2cbecc46c77da4d3594f440b2ccc6e9b0011a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
require "formula"

class Libgit2 < Formula
  homepage "http://libgit2.github.com/"
  url "https://github.com/libgit2/libgit2/archive/v0.21.2.tar.gz"
  sha1 "a16a59df1bfe073483be0c58a81cdbc89f7b7070"

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

  bottle do
    cellar :any
    sha1 "388688ca18d3ebe91dde4cb7b9fa67e632a4f9a0" => :yosemite
    sha1 "5bfd8d83f8ff1c62bea445c209efdb4ce3d3f641" => :mavericks
    sha1 "5b23f7fd5062d7bf1be3a3509d70502c594b1fc5" => :mountain_lion
  end

  depends_on "cmake" => :build
  depends_on "libssh2" => :optional
  depends_on "openssl"

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