csync: style nits
parent
d837df22f3
commit
f8e78c221f
|
@ -2,24 +2,20 @@ require 'formula'
|
||||||
|
|
||||||
class Csync < Formula
|
class Csync < Formula
|
||||||
homepage 'http://www.csync.org/'
|
homepage 'http://www.csync.org/'
|
||||||
|
head 'git://git.csync.org/projects/csync.git'
|
||||||
url 'http://www.csync.org/files/csync-0.49.9.tar.gz'
|
url 'http://www.csync.org/files/csync-0.49.9.tar.gz'
|
||||||
sha1 'fd7df6c13aa6fc6de74cb48c2ac35ad11f6d895d'
|
sha1 'fd7df6c13aa6fc6de74cb48c2ac35ad11f6d895d'
|
||||||
|
|
||||||
# Note: HEAD requires git:// protocol, https:// does not work.
|
|
||||||
head 'git://git.csync.org/projects/csync.git'
|
|
||||||
|
|
||||||
depends_on 'doxygen' => :build
|
|
||||||
depends_on 'cmake' => :build
|
|
||||||
depends_on 'check' => :build
|
depends_on 'check' => :build
|
||||||
depends_on 'sqlite'
|
depends_on 'cmake' => :build
|
||||||
depends_on 'iniparser'
|
depends_on 'doxygen' => :build
|
||||||
depends_on 'argp-standalone'
|
depends_on 'argp-standalone'
|
||||||
|
depends_on 'iniparser'
|
||||||
|
depends_on 'sqlite'
|
||||||
depends_on 'libssh' => :optional
|
depends_on 'libssh' => :optional
|
||||||
|
|
||||||
if build.head?
|
if build.head?
|
||||||
# Log4c and libsmbclient are optional in HEAD. See
|
# Log4c and libsmbclient are optional in HEAD.
|
||||||
# http://git.csync.org/projects/csync.git/commit/?id=13f05db93484ad6100c1987d11e7a6d33bd5d754
|
|
||||||
# http://git.csync.org/projects/csync.git/commit/?id=f064dbcde4e25cb4661be77a76be7279946be3d6
|
|
||||||
depends_on 'log4c' => :optional
|
depends_on 'log4c' => :optional
|
||||||
depends_on 'samba' => :optional
|
depends_on 'samba' => :optional
|
||||||
else
|
else
|
||||||
|
@ -41,10 +37,8 @@ class Csync < Formula
|
||||||
# yet. We also have to patch "link.txt" for all module
|
# yet. We also have to patch "link.txt" for all module
|
||||||
# targets. This should probably be reported upstream.
|
# targets. This should probably be reported upstream.
|
||||||
system "make csync"
|
system "make csync"
|
||||||
Dir['modules/CMakeFiles/*/link.txt'].each do |f|
|
inreplace Dir['modules/CMakeFiles/*/link.txt'] do |s|
|
||||||
inreplace f do |s|
|
s.gsub! '-o', "../src/libcsync.dylib ../src/std/libcstdlib.a -o"
|
||||||
s.gsub! '-o', "../src/libcsync.dylib ../src/std/libcstdlib.a -o"
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
# Now we can make and install.
|
# Now we can make and install.
|
||||||
system "make all"
|
system "make all"
|
||||||
|
|
Loading…
Reference in New Issue