2010-08-10 18:53:50 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2012-04-28 21:31:03 +00:00
|
|
|
class PythonWithGdbm < Requirement
|
2013-01-19 01:30:43 +00:00
|
|
|
fatal true
|
|
|
|
|
2013-01-20 02:45:59 +00:00
|
|
|
satisfy { quiet_system "python", "-c", "import gdbm" }
|
|
|
|
|
2012-04-28 21:31:03 +00:00
|
|
|
def message; <<-EOS.undent
|
|
|
|
The Python being used does not include gdbm support,
|
|
|
|
but it is required to build this formula:
|
|
|
|
|
2012-05-08 01:54:56 +00:00
|
|
|
#{which 'python'}
|
2012-04-28 21:31:03 +00:00
|
|
|
|
|
|
|
Homebrew's Python includes gdbm support.
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Cvs2svn < Formula
|
2010-08-10 18:53:50 +00:00
|
|
|
homepage 'http://cvs2svn.tigris.org/'
|
2012-11-25 19:42:57 +00:00
|
|
|
url 'http://trac.macports.org/export/70472/distfiles/cvs2svn/cvs2svn-2.3.0.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '545237805ddb241054ba40b105b9c29b705539b8'
|
2010-08-10 18:53:50 +00:00
|
|
|
|
2012-04-28 21:31:03 +00:00
|
|
|
depends_on PythonWithGdbm.new
|
2010-08-10 18:53:50 +00:00
|
|
|
|
2012-04-28 21:31:03 +00:00
|
|
|
def install
|
2010-08-10 18:53:50 +00:00
|
|
|
system "python", "setup.py", "install", "--prefix=#{prefix}"
|
|
|
|
system "make man"
|
2010-09-19 18:15:10 +00:00
|
|
|
man1.install gzip('cvs2svn.1', 'cvs2git.1', 'cvs2bzr.1')
|
2011-12-12 03:59:30 +00:00
|
|
|
prefix.install %w[ BUGS COMMITTERS HACKING
|
2010-08-10 18:53:50 +00:00
|
|
|
cvs2bzr-example.options cvs2git-example.options cvs2hg-example.options
|
|
|
|
cvs2svn-example.options contrib ]
|
|
|
|
|
2012-11-25 19:42:57 +00:00
|
|
|
doc.install Dir['{doc,www}/*']
|
2010-08-10 18:53:50 +00:00
|
|
|
end
|
|
|
|
|
2012-11-25 19:42:57 +00:00
|
|
|
def caveats; <<-EOS.undent
|
2010-08-10 18:53:50 +00:00
|
|
|
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:
|
2012-11-25 19:42:57 +00:00
|
|
|
#{opt_prefix}
|
|
|
|
EOS
|
2010-08-10 18:53:50 +00:00
|
|
|
end
|
|
|
|
end
|