2012-07-01 12:05:26 +00:00
|
|
|
class Csync < Formula
|
2015-01-18 06:12:14 +00:00
|
|
|
homepage "http://www.csync.org/"
|
|
|
|
url "https://open.cryptomilk.org/attachments/download/27/csync-0.50.0.tar.xz"
|
|
|
|
sha1 "8df896be17f7f038260159469a6968a9d563cb3c"
|
2013-09-22 00:27:25 +00:00
|
|
|
|
2015-01-18 06:12:14 +00:00
|
|
|
head "git://git.csync.org/projects/csync.git"
|
2012-07-01 12:05:26 +00:00
|
|
|
|
2015-01-18 06:25:56 +00:00
|
|
|
bottle do
|
|
|
|
sha1 "c7934c397dc23b7f91bc73da7fc2a1086caf0644" => :yosemite
|
|
|
|
sha1 "4678a5c8787a3ef569ec8bc3ae62dbc011aa67dd" => :mavericks
|
|
|
|
sha1 "a47861728aa4d4cb4c26423afcc45ae942a415e5" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2012-07-01 12:05:26 +00:00
|
|
|
depends_on 'check' => :build
|
2013-08-17 18:50:00 +00:00
|
|
|
depends_on 'cmake' => :build
|
2013-08-17 18:53:12 +00:00
|
|
|
depends_on 'doxygen' => [:build, :optional]
|
2012-07-01 12:05:26 +00:00
|
|
|
depends_on 'argp-standalone'
|
2013-08-17 18:50:00 +00:00
|
|
|
depends_on 'iniparser'
|
|
|
|
depends_on 'sqlite'
|
2012-07-01 12:05:26 +00:00
|
|
|
depends_on 'libssh' => :optional
|
2015-01-18 06:12:14 +00:00
|
|
|
depends_on 'log4c' => :optional
|
|
|
|
depends_on 'samba' => :optional
|
2012-09-03 18:58:34 +00:00
|
|
|
|
2013-09-19 14:54:46 +00:00
|
|
|
depends_on :macos => :lion
|
|
|
|
|
2012-07-01 12:05:26 +00:00
|
|
|
def install
|
2015-01-18 06:12:14 +00:00
|
|
|
mkdir "build" unless build.head?
|
2015-01-22 01:44:40 +00:00
|
|
|
cd "build" do
|
2012-07-01 12:05:26 +00:00
|
|
|
system "cmake", "..", *std_cmake_args
|
2015-01-22 01:44:40 +00:00
|
|
|
system "make", "all"
|
|
|
|
system "make", "install"
|
2012-07-01 12:05:26 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2014-02-23 21:31:41 +00:00
|
|
|
test do
|
2014-05-20 04:04:26 +00:00
|
|
|
system bin/"csync", "-V"
|
2012-07-01 12:05:26 +00:00
|
|
|
end
|
|
|
|
end
|