blob: c1fb90896f8311af5f910f5a44501552e254d83d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
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-rc4.tar.gz'
version '0.25-rc4'
sha1 'f3dc0539443587390d9a720cf49a48e33b24317b'
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
|