homebrew-core/Formula/csync.rb

43 lines
1.3 KiB
Ruby
Raw Normal View History

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"
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]
depends_on 'argp-standalone'
2013-08-17 18:50:00 +00:00
depends_on 'iniparser'
depends_on 'sqlite'
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
depends_on :macos => :lion
def install
2015-01-18 06:12:14 +00:00
mkdir "build" unless build.head?
cd 'build' do
system "cmake", "..", *std_cmake_args
# We need to run make csync first to make the "core",
# or the build system will freak out and try to link
# modules against core functions that aren't compiled
# yet. We also have to patch "link.txt" for all module
# targets. This should probably be reported upstream.
system "make csync"
2013-08-17 18:50:00 +00:00
inreplace Dir['modules/CMakeFiles/*/link.txt'] do |s|
s.gsub! '-o', "../src/libcsync.dylib ../src/std/libcstdlib.a -o"
end
# Now we can make and install.
system "make all"
system "make install"
end
end
test do
system bin/"csync", "-V"
end
end