2014-07-21 02:22:28 +00:00
|
|
|
require "formula"
|
2012-02-15 19:04:45 +00:00
|
|
|
|
|
|
|
class Bup < Formula
|
2014-07-21 02:22:28 +00:00
|
|
|
homepage "https://github.com/bup/bup"
|
2014-12-03 22:44:40 +00:00
|
|
|
head "https://github.com/bup/bup.git"
|
2014-07-21 02:22:28 +00:00
|
|
|
url "https://github.com/bup/bup/archive/0.26.tar.gz"
|
|
|
|
sha1 "86e636818590fe40e1074c67545bb74de6e8306b"
|
2012-02-15 19:04:45 +00:00
|
|
|
|
|
|
|
option "run-tests", "Run unit tests after compilation"
|
2014-12-16 14:37:03 +00:00
|
|
|
option "with-pandoc", "build and install the manpage (depends on pandoc)"
|
2014-12-16 12:29:32 +00:00
|
|
|
|
2014-12-16 14:53:10 +00:00
|
|
|
depends_on "pandoc" => [:optional, :build]
|
2012-02-15 19:04:45 +00:00
|
|
|
|
2014-10-12 19:31:28 +00:00
|
|
|
# Fix compilation on 10.10
|
|
|
|
# https://github.com/bup/bup/commit/75d089e7cdb7a7eb4d69c352f56dad5ad3aa1f97
|
|
|
|
patch do
|
|
|
|
url "https://github.com/bup/bup/commit/75d089e7cdb7a7eb4d69c352f56dad5ad3aa1f97.diff"
|
|
|
|
sha1 "a97d4292a7398d0bca2eb2ea0a99fb40a049c178"
|
|
|
|
end
|
|
|
|
|
2012-02-15 19:04:45 +00:00
|
|
|
def install
|
2014-01-04 13:02:46 +00:00
|
|
|
system "make"
|
2012-02-15 19:04:45 +00:00
|
|
|
system "make test" if build.include? "run-tests"
|
2013-11-17 20:19:59 +00:00
|
|
|
system "make", "install", "DESTDIR=#{prefix}", "PREFIX="
|
2012-02-15 19:04:45 +00:00
|
|
|
end
|
|
|
|
end
|