2011-03-10 05:11:03 +00:00
|
|
|
class Cvsync < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Portable CVS repository synchronization utility"
|
2015-03-26 08:56:52 +00:00
|
|
|
homepage "http://www.cvsync.org/"
|
|
|
|
url "http://www.cvsync.org/dist/cvsync-0.24.19.tar.gz"
|
|
|
|
sha256 "75d99fc387612cb47141de4d59cb3ba1d2965157230f10015fbaa3a1c3b27560"
|
|
|
|
|
2016-04-09 19:19:51 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha256 "065a2cac3278d73129fc7b27b7f35d873f5aa17fff52aa4fe70eb896c211b6a8" => :el_capitan
|
|
|
|
sha256 "778da584a283cdfd5b817b98b936ab3c6ba6609a0bad1caaf64a15f595994208" => :yosemite
|
|
|
|
sha256 "08048bcff7a8953bc5a49b1ffa72e18021b5196eb6443c2defc43e4a632ac882" => :mavericks
|
|
|
|
end
|
|
|
|
|
2015-03-26 08:56:52 +00:00
|
|
|
depends_on "openssl"
|
2011-03-03 05:12:33 +00:00
|
|
|
|
|
|
|
def install
|
2015-03-26 08:56:52 +00:00
|
|
|
ENV["PREFIX"] = prefix
|
|
|
|
ENV["MANDIR"] = man
|
|
|
|
ENV["CVSYNC_DEFAULT_CONFIG"] = etc/"cvsync.conf"
|
|
|
|
ENV["CVSYNCD_DEFAULT_CONFIG"] = etc/"cvsyncd.conf"
|
|
|
|
ENV["HASH_TYPE"] = "openssl"
|
2011-03-03 05:12:33 +00:00
|
|
|
|
|
|
|
# Makefile from 2005 assumes Darwin doesn't define `socklen_t' and defines
|
|
|
|
# it with a CC macro parameter making gcc unhappy about double define.
|
2015-03-26 08:56:52 +00:00
|
|
|
inreplace "mk/network.mk",
|
|
|
|
/^CFLAGS \+= \-Dsocklen_t=int/, ""
|
2011-03-03 05:12:33 +00:00
|
|
|
|
|
|
|
# Remove owner and group parameters from install.
|
2015-03-26 08:56:52 +00:00
|
|
|
inreplace "mk/base.mk",
|
2011-03-03 05:12:33 +00:00
|
|
|
/^INSTALL_(.{3})_OPTS\?=.*/, 'INSTALL_\1_OPTS?= -c -m ${\1MODE}'
|
|
|
|
|
|
|
|
# These paths must exist or "make install" fails.
|
|
|
|
bin.mkpath
|
|
|
|
lib.mkpath
|
|
|
|
man1.mkpath
|
|
|
|
|
2015-03-26 08:56:52 +00:00
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
assert_match "#{version}", shell_output("#{bin}/cvsync -h 2>&1", 1)
|
2011-03-03 05:12:33 +00:00
|
|
|
end
|
|
|
|
end
|