homebrew-core/Formula/bup.rb

17 lines
460 B
Ruby
Raw Normal View History

2014-07-21 02:22:28 +00:00
require "formula"
class Bup < Formula
2014-07-21 02:22:28 +00:00
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
2014-01-04 13:02:46 +00:00
system "make"
system "make test" if build.include? "run-tests"
system "make", "install", "DESTDIR=#{prefix}", "PREFIX="
end
end