aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/bup.rb
blob: df4160f1e252d64984209a342081740752ec65cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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.tar.gz'
  sha1 'f32ba39582d0e8875632f282c54f7377ed2a4df9'

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

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