diff options
| author | John Albin Wilkins | 2010-08-11 02:53:50 +0800 |
|---|---|---|
| committer | Adam Vandenberg | 2010-08-10 20:41:26 -0700 |
| commit | b886d57a9a17c79ccd82aacd7fd220cf6094fb30 (patch) | |
| tree | dd96a171fdc47fb1df7ce176df5e65bf804029f0 /Library | |
| parent | 8679772b6f40ec4d2c1372a11b8cc696e2b3ec8f (diff) | |
| download | homebrew-b886d57a9a17c79ccd82aacd7fd220cf6094fb30.tar.bz2 | |
Add cvs2svn
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
* Use a run-time check to see if the default Python has gdbm
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/cvs2svn.rb | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/Library/Formula/cvs2svn.rb b/Library/Formula/cvs2svn.rb new file mode 100644 index 000000000..e37cbf375 --- /dev/null +++ b/Library/Formula/cvs2svn.rb @@ -0,0 +1,37 @@ +require 'formula' + +class Cvs2svn <Formula + url 'http://trac.macports.org/export/70472/distfiles/cvs2svn/cvs2svn-2.3.0.tar.gz' + homepage 'http://cvs2svn.tigris.org/' + md5 '6c412baec974f3ff64b9145944682a15' + + def install + unless quiet_system "/usr/bin/env", "python", "-c", "import gdbm" + onoe "The Python being used doesn't have gdbm support:" + puts `which python` + puts "The Homebrew-built Python does include gdbm support, which" + puts "is required for this formula." + exit 1 + end + + system "python", "setup.py", "install", "--prefix=#{prefix}" + system "make man" + man1.install [gzip('cvs2svn.1'), gzip('cvs2git.1'), gzip('cvs2bzr.1')] + prefix.install %w[ BUGS CHANGES COMMITTERS HACKING + cvs2bzr-example.options cvs2git-example.options cvs2hg-example.options + cvs2svn-example.options contrib ] + + doc.install Dir['doc/*'] + doc.install Dir['www/*'] + end + + def caveats; <<-EOF + NOTE: man pages have been installed, but for better documentation see: + #{HOMEBREW_PREFIX}/share/doc/cvs2svn/cvs2svn.html + or http://cvs2svn.tigris.org/cvs2svn.html. + + Contrib scripts and example options files are installed in: + #{prefix} + EOF + end +end |
