2012-02-15 19:04:45 +00:00
|
|
|
class Bup < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Backup tool"
|
2014-07-21 02:22:28 +00:00
|
|
|
homepage "https://github.com/bup/bup"
|
2015-08-07 20:50:02 +00:00
|
|
|
url "https://github.com/bup/bup/archive/0.27.tar.gz"
|
|
|
|
sha256 "ae8a744a3415ce4766d1d896f3d48b9b2ae6167c7bc65d8d1a112f37b42720fb"
|
2012-02-15 19:04:45 +00:00
|
|
|
|
2015-08-07 20:50:02 +00:00
|
|
|
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
|
2016-02-08 23:43:01 +00:00
|
|
|
cellar :any_skip_relocation
|
|
|
|
sha256 "bf2d8a6a88eb1684605159488740b8aa7bfab24a0bb82119b5073c9b99d024f7" => :el_capitan
|
2015-08-08 15:28:46 +00:00
|
|
|
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"
|
2015-03-09 04:59:14 +00:00
|
|
|
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"
|
2015-03-09 04:59:14 +00:00
|
|
|
|
|
|
|
depends_on "pandoc" => [:optional, :build]
|
|
|
|
|
2012-02-15 19:04:45 +00:00
|
|
|
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"
|
2013-11-17 20:19:59 +00:00
|
|
|
system "make", "install", "DESTDIR=#{prefix}", "PREFIX="
|
2012-02-15 19:04:45 +00:00
|
|
|
end
|
2015-03-09 04:59:14 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
system bin/"bup", "init"
|
|
|
|
assert File.exist?("#{testpath}/.bup")
|
|
|
|
end
|
2012-02-15 19:04:45 +00:00
|
|
|
end
|