aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/tup.rb
blob: fa3010480ee60b3a7baa5c9c539102e05ce87c84 (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
30
31
32
33
34
35
36
37
38
39
require "formula"

class Tup < Formula
  homepage "http://gittup.org/tup/"
  url "https://github.com/gittup/tup/archive/v0.7.3.tar.gz"
  sha1 "e817ab1888b8aab7f784efa7fb90e91c216fae8d"
  head "https://github.com/gittup/tup.git"

  bottle do
    cellar :any
    sha1 "5c27fa734b85b0f170bc0ecc6fd5678160f2e5c9" => :mavericks
    sha1 "d6b68541413f647c5902e8256b4e7e454a2b176c" => :mountain_lion
    sha1 "938305bff64f99d93e093919e0c808f5786de913" => :lion
  end

  depends_on "pkg-config" => :build
  depends_on :osxfuse

  # Backport Yosemite compilation fix
  stable do
    if MacOS.version >= :yosemite
      patch do
        url "https://github.com/gittup/tup/commit/9812548b4d3833644f0cf8f70f62628a75ffbb56.diff"
        sha1 "439fb1e1692c95e09703d6c41055c06855276307"
      end
    end
  end

  def install
    ENV["TUP_LABEL"] = version
    system "./build.sh"
    bin.install "build/tup"
    man1.install "tup.1"
  end

  test do
    system "#{bin}/tup", "-v"
  end
end