homebrew-core/Formula/bup.rb
Brett Koonce 3e25078267 bup 0.25
Closes Homebrew/homebrew#25387.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-12-21 21:07:56 +00:00

20 lines
506 B
Ruby

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"
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