2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-10 21:56:19 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Fossil < Formula
|
2010-03-12 11:31:01 +00:00
|
|
|
homepage 'http://www.fossil-scm.org/'
|
2011-03-03 22:13:21 +00:00
|
|
|
head 'fossil://http://www.fossil-scm.org/'
|
2013-09-28 01:50:13 +00:00
|
|
|
url 'http://www.fossil-scm.org/download/fossil-src-20130911114349.tar.gz'
|
|
|
|
sha1 '2e2149fff30d63a1869ecb5a7d6b17996477612a'
|
|
|
|
version '1.27'
|
2009-09-10 21:56:19 +00:00
|
|
|
|
2013-08-23 04:29:21 +00:00
|
|
|
option 'without-json', 'Build without "json" command support.'
|
|
|
|
option 'without-tcl', "Build without the tcl-th1 command bridge."
|
|
|
|
|
2009-09-10 21:56:19 +00:00
|
|
|
def install
|
2013-08-23 04:29:21 +00:00
|
|
|
args = []
|
|
|
|
args << "--json" if build.with? 'json'
|
|
|
|
args << "--with-tcl" if build.with? 'tcl'
|
|
|
|
|
|
|
|
system "./configure", *args
|
2009-09-10 21:56:19 +00:00
|
|
|
system "make"
|
|
|
|
bin.install 'fossil'
|
|
|
|
end
|
|
|
|
end
|