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/'
|
2014-03-25 15:45:40 +00:00
|
|
|
url 'http://www.fossil-scm.org/download/fossil-src-20140127173344.tar.gz'
|
|
|
|
sha1 '9e547a27d2447f12df951e86670da12c7cfbd26a'
|
|
|
|
version '1.28'
|
2009-09-10 21:56:19 +00:00
|
|
|
|
2014-03-25 15:48:10 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha1 "c4f7800f7a88aee0f5c27dc8ee90e7d67dc90570" => :mavericks
|
|
|
|
sha1 "2b8fa6a214c937ea56e50841614cbcc68375153d" => :mountain_lion
|
|
|
|
sha1 "ad5e8b7cc41ae2a81f5b0ed84110d6e34b56622b" => :lion
|
|
|
|
end
|
|
|
|
|
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
|