diff options
| author | Dominyk Tiller | 2015-03-09 04:59:14 +0000 |
|---|---|---|
| committer | Brett Koonce | 2015-03-10 00:10:23 -0700 |
| commit | e48645ec0a345dec7d800f5d65c04b879cc1d245 (patch) | |
| tree | 107bdf1b0c9b11f775bed6dfd201e573f579f3a2 /Library/Formula | |
| parent | ffa32db0fd4e5f919e0c44beb216ee8171a133ba (diff) | |
| download | homebrew-e48645ec0a345dec7d800f5d65c04b879cc1d245.tar.bz2 | |
bup: fix HEAD compile, cleanup, add test
Closes #37524.
Closes #37525.
Signed-off-by: Brett Koonce <koonce@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/bup.rb | 35 |
1 files changed, 21 insertions, 14 deletions
diff --git a/Library/Formula/bup.rb b/Library/Formula/bup.rb index 330d77644..8f3d70f0b 100644 --- a/Library/Formula/bup.rb +++ b/Library/Formula/bup.rb @@ -1,26 +1,33 @@ -require "formula" - class Bup < Formula homepage "https://github.com/bup/bup" head "https://github.com/bup/bup.git" - url "https://github.com/bup/bup/archive/0.26.tar.gz" - sha1 "86e636818590fe40e1074c67545bb74de6e8306b" - - option "run-tests", "Run unit tests after compilation" - option "with-pandoc", "build and install the manpage (depends on pandoc)" - depends_on "pandoc" => [:optional, :build] + stable do + url "https://github.com/bup/bup/archive/0.26.tar.gz" + sha256 "8c25551fa723cfe5dcaaa671c5f0964d8caff22b068923df007a13169d8f015c" - # 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" + # Fix compilation on 10.10 + patch do + url "https://github.com/bup/bup/commit/75d089e7cdb7a7eb4d69c352f56dad5ad3aa1f97.diff" + sha256 "9a4615e91b7b2f43e5447e30aa4096f1b0bf65dc2081e7c08d852830ee217716" + end end + option "with-tests", "Run unit tests after compilation" + option "with-pandoc", "Build and install the manpages" + + deprecated_option "run-tests" => "with-tests" + + depends_on "pandoc" => [:optional, :build] + def install system "make" - system "make test" if build.include? "run-tests" + system "make", "test" if build.with? "tests" system "make", "install", "DESTDIR=#{prefix}", "PREFIX=" end + + test do + system bin/"bup", "init" + assert File.exist?("#{testpath}/.bup") + end end |
