aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/bup.rb
blob: 2ad85e289fa441bc873a4abec46c5195e1d0e5d1 (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.26.tar.gz"
  sha1 "86e636818590fe40e1074c67545bb74de6e8306b"

  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