diff options
| author | Jack Nagel | 2013-11-18 15:49:25 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-11-18 19:53:27 -0600 |
| commit | 976909fd640681e537b2e10f6c22c5b01bd91e98 (patch) | |
| tree | 0c89a89b45c9b2f61dea26200d5b7f5418cb2ebf /Library/Formula | |
| parent | cfe6c4ab316367c941cf68ea7a509f8c8abbc50d (diff) | |
| download | homebrew-976909fd640681e537b2e10f6c22c5b01bd91e98.tar.bz2 | |
Import CVS from dupes
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/cvs.rb | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/Library/Formula/cvs.rb b/Library/Formula/cvs.rb new file mode 100644 index 000000000..8291ec850 --- /dev/null +++ b/Library/Formula/cvs.rb @@ -0,0 +1,64 @@ +require 'formula' + +# Based on: +# Apple Open Source: http://www.opensource.apple.com/source/cvs/cvs-45/ +# MacPorts: https://trac.macports.org/browser/trunk/dports/devel/cvs/Portfile +# Creating a useful testcase: http://mrsrl.stanford.edu/~brian/cvstutorial/ + +class Cvs < Formula + homepage 'http://cvs.nongnu.org/' + url 'http://ftp.gnu.org/non-gnu/cvs/source/feature/1.12.13/cvs-1.12.13.tar.bz2' + sha1 '93a8dacc6ff0e723a130835713235863f1f5ada9' + + keg_only :provided_by_osx if MacOS.version < :mavericks + + def patches + { :p0 => + [ 'http://www.opensource.apple.com/source/cvs/cvs-45/patches/PR5178707.diff?txt', + 'http://www.opensource.apple.com/source/cvs/cvs-45/patches/ea.diff?txt', + 'http://www.opensource.apple.com/source/cvs/cvs-45/patches/endian.diff?txt', + 'http://www.opensource.apple.com/source/cvs/cvs-45/patches/fixtest-client-20.diff?txt', + 'http://www.opensource.apple.com/source/cvs/cvs-45/patches/fixtest-recase.diff?txt', + 'http://www.opensource.apple.com/source/cvs/cvs-45/patches/i18n.diff?txt', + 'http://www.opensource.apple.com/source/cvs/cvs-45/patches/initgroups.diff?txt', + 'http://www.opensource.apple.com/source/cvs/cvs-45/patches/nopic.diff?txt', + 'http://www.opensource.apple.com/source/cvs/cvs-45/patches/remove-info.diff?txt', + 'http://www.opensource.apple.com/source/cvs/cvs-45/patches/remove-libcrypto.diff?txt', + 'http://www.opensource.apple.com/source/cvs/cvs-45/patches/tag.diff?txt', + 'http://www.opensource.apple.com/source/cvs/cvs-45/patches/zlib.diff?txt' + ] + } + end + + def install + system "./configure", "--disable-debug", + "--disable-dependency-tracking", + "--prefix=#{prefix}", + "--infodir=#{info}", + "--mandir=#{man}", + "--sysconfdir=#{etc}", + "--with-gssapi", + "--enable-pam", + "--enable-encryption", + "--with-external-zlib", + "--enable-case-sensitivity", + "--with-editor=vim", + "ac_cv_func_working_mktime=no" + system "make" + ENV.deparallelize + system "make", "install" + end + + test do + system "mkdir", "cvsroot" + + cvsroot = %x[echo ${PWD}/cvsroot].chomp + + system "#{bin}/cvs", "-d", cvsroot, "init" + + mkdir "cvsexample" do + ENV['CVSROOT'] = "#{cvsroot}" + system "#{bin}/cvs", "import", "-m ", "'dir structure'", "cvsexample", "homebrew", "start" + end + end +end |
