2011-03-10 05:11:03 +00:00
|
|
|
class Fossil < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Distributed software configuration management"
|
2015-03-07 14:00:43 +00:00
|
|
|
homepage "https://www.fossil-scm.org/"
|
|
|
|
head "https://www.fossil-scm.org/", :using => :fossil
|
2015-06-22 10:44:43 +00:00
|
|
|
url "https://www.fossil-scm.org/download/fossil-src-1.33.tar.gz"
|
|
|
|
sha256 "6295c48289456f09e86099988058a12148dbe0051b72d413b4dff7216d6a7f3e"
|
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
|
2015-06-23 00:17:33 +00:00
|
|
|
sha256 "93c2998a284d05cdde365f968aacfcb05e6ce746a90e767de85c4e8a98084b4f" => :yosemite
|
|
|
|
sha256 "9e1a6a19e95dfd0a92eaf465a76326ecef672c67a4ba7854b3baa363b96f9dc9" => :mavericks
|
|
|
|
sha256 "3cf1b9a1e660e36e85d24b423c03d8742d515799060a15af3095ec5a3890894e" => :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
|
2015-03-07 14:00:43 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/fossil", "init", "test"
|
|
|
|
end
|
2009-09-10 21:56:19 +00:00
|
|
|
end
|