diff options
| author | Berk D. Demir | 2011-03-02 21:12:33 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2011-03-03 07:50:36 -0800 |
| commit | e0f65767e1da394722a30399e0ffeb7d47b0dd19 (patch) | |
| tree | 8c8f65b96d35afb99a1998cfdf9969644c4618a3 | |
| parent | 259efc47cf7e7ef13267f0f6500b4580e9121ce8 (diff) | |
| download | homebrew-e0f65767e1da394722a30399e0ffeb7d47b0dd19.tar.bz2 | |
cvsync 0.24.19
CVSync is a portable CVS repository synchronization utility.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
| -rw-r--r-- | Library/Formula/cvsync.rb | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Library/Formula/cvsync.rb b/Library/Formula/cvsync.rb new file mode 100644 index 000000000..de90599f1 --- /dev/null +++ b/Library/Formula/cvsync.rb @@ -0,0 +1,29 @@ +require 'formula' + +class Cvsync <Formula + url 'ftp://ftp.cvsync.org/pub/cvsync/cvsync-0.24.19.tar.gz' + homepage 'http://www.cvsync.org/' + sha1 'a3c0673bf0f3b81b1eb45ac828a527d2a4e6d2f6' + + def install + ENV['PREFIX'] = prefix + ENV['MANDIR'] = man + ENV['HASH_TYPE'] = 'openssl' + + # Makefile from 2005 assumes Darwin doesn't define `socklen_t' and defines + # it with a CC macro parameter making gcc unhappy about double define. + inreplace 'mk/network.mk', + /^CFLAGS \+= \-Dsocklen_t=int/, '' + + # Remove owner and group parameters from install. + inreplace 'mk/base.mk', + /^INSTALL_(.{3})_OPTS\?=.*/, 'INSTALL_\1_OPTS?= -c -m ${\1MODE}' + + # These paths must exist or "make install" fails. + bin.mkpath + lib.mkpath + man1.mkpath + + system 'make install' + end +end |
