2014-12-06 18:24:57 +00:00
|
|
|
require "formula"
|
2009-09-10 21:56:19 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Fossil < Formula
|
2014-12-06 18:24:57 +00:00
|
|
|
homepage "http://www.fossil-scm.org/"
|
2014-12-18 18:06:05 +00:00
|
|
|
head "http://www.fossil-scm.org/", :using => :fossil
|
2014-12-06 18:24:57 +00:00
|
|
|
url "http://www.fossil-scm.org/download/fossil-src-20140612172556.tar.gz"
|
|
|
|
sha1 "173c3350ba39ecfee6e660f866b4f3104e351b33"
|
|
|
|
version "1.29"
|
2009-09-10 21:56:19 +00:00
|
|
|
|
2014-03-25 15:48:10 +00:00
|
|
|
bottle do
|
2014-12-06 18:33:03 +00:00
|
|
|
cellar :any
|
|
|
|
sha1 "977cde0938a0b751938aaac28cab1fe7ef479e9b" => :yosemite
|
|
|
|
sha1 "f45d99ad80bdda2852a8dcb9e1292b5117d0ae56" => :mavericks
|
|
|
|
sha1 "b00e434097adba303767426916654da1f17d7f39" => :mountain_lion
|
2014-03-25 15:48:10 +00:00
|
|
|
end
|
|
|
|
|
2014-12-06 18:24:57 +00:00
|
|
|
option "without-json", "Build without 'json' command support"
|
|
|
|
option "without-tcl", "Build without the tcl-th1 command bridge"
|
|
|
|
|
|
|
|
depends_on "openssl"
|
2013-08-23 04:29:21 +00:00
|
|
|
|
2009-09-10 21:56:19 +00:00
|
|
|
def install
|
2013-08-23 04:29:21 +00:00
|
|
|
args = []
|
2014-12-06 18:24:57 +00:00
|
|
|
args << "--json" if build.with? "json"
|
|
|
|
args << "--with-tcl" if build.with? "tcl"
|
2013-08-23 04:29:21 +00:00
|
|
|
|
|
|
|
system "./configure", *args
|
2009-09-10 21:56:19 +00:00
|
|
|
system "make"
|
2014-12-06 18:24:57 +00:00
|
|
|
bin.install "fossil"
|
2009-09-10 21:56:19 +00:00
|
|
|
end
|
|
|
|
end
|