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

class Bup < Formula
  homepage 'https://github.com/bup/bup'
  head 'https://github.com/bup/bup.git', :branch => 'master'
  url 'https://github.com/bup/bup/archive/0.25-rc4.tar.gz'
  version '0.25-rc4'
  sha1 '12f382dcb7e1d3b8496dfc32d2395e80cf5d971e'

  option "run-tests", "Run unit tests after compilation"

  depends_on :python

  def install
    python do
      system "make"
    end
    system "make test" if build.include? "run-tests"
    system "make", "install", "DESTDIR=#{prefix}", "PREFIX="
  end
end