aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/fossil.rb
blob: e1fe9a570579cb67b40ed3bce7c8e344f5eab3ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
require 'formula'

class Fossil < Formula
  homepage 'http://www.fossil-scm.org/'
  url 'http://www.fossil-scm.org/download/fossil-src-20130618210923.tar.gz'
  sha1 'b8de07de92483ba491c7e11c1d82147bce1cdaf9'
  version '1.26'

  head 'fossil://http://www.fossil-scm.org/'

  option 'without-json', 'Build without "json" command support.'
  option 'without-tcl', "Build without the tcl-th1 command bridge."

  def install
    args = []
    args << "--json" if build.with? 'json'
    args << "--with-tcl" if build.with? 'tcl'

    system "./configure", *args
    system "make"
    bin.install 'fossil'
  end
end