homebrew-core/Formula/bup.rb

35 lines
1 KiB
Ruby
Raw Normal View History

class Bup < Formula
desc "Backup tool"
2014-07-21 02:22:28 +00:00
homepage "https://github.com/bup/bup"
url "https://github.com/bup/bup/archive/0.27.tar.gz"
sha256 "ae8a744a3415ce4766d1d896f3d48b9b2ae6167c7bc65d8d1a112f37b42720fb"
head "https://github.com/bup/bup.git"
2014-10-12 19:31:28 +00:00
2015-08-08 15:28:46 +00:00
bottle do
cellar :any
sha256 "3cf4a28be9d177fe8db9be897981a61fddb98c5b4e98bddc6cc2b5a9967324b0" => :yosemite
sha256 "e37ae889d53612d81f29a747367595f8ef17e04aea91aee2a564d452c9b43cc1" => :mavericks
sha256 "9c7b4eda48367a6c62786e8c74aa1b455ecc9525a6431d2a2837d13fb592c0f6" => :mountain_lion
end
2015-12-07 21:24:37 +00:00
option "with-test", "Run unit tests after compilation"
option "with-pandoc", "Build and install the manpages"
2015-12-07 21:24:37 +00:00
deprecated_option "run-tests" => "with-test"
deprecated_option "with-tests" => "with-test"
depends_on "pandoc" => [:optional, :build]
def install
2014-01-04 13:02:46 +00:00
system "make"
2015-12-07 21:24:37 +00:00
system "make", "test" if build.with? "test"
system "make", "install", "DESTDIR=#{prefix}", "PREFIX="
end
test do
system bin/"bup", "init"
assert File.exist?("#{testpath}/.bup")
end
end