homebrew-core/Formula/cvs2svn.rb

47 lines
1.4 KiB
Ruby
Raw Normal View History

2015-04-11 18:12:19 +00:00
class PythonWithGdbmRequirement < Requirement
2013-01-19 01:30:43 +00:00
fatal true
satisfy(:build_env => false) { quiet_system "python", "-c", "import gdbm" }
2013-01-20 02:45:59 +00:00
def message; <<-EOS.undent
The Python being used does not include gdbm support,
but it is required to build this formula:
2015-04-19 10:25:58 +00:00
#{which "python"}
Homebrew's Python includes gdbm support.
EOS
end
end
2011-03-10 05:11:03 +00:00
class Cvs2svn < Formula
desc "Tool for converting from CVS to Subversion"
2015-04-19 10:25:58 +00:00
homepage "http://cvs2svn.tigris.org/"
url "http://cvs2svn.tigris.org/files/documents/1462/49237/cvs2svn-2.4.0.tar.gz"
sha256 "a6677fc3e7b4374020185c61c998209d691de0c1b01b53e59341057459f6f116"
2015-04-11 18:12:19 +00:00
depends_on PythonWithGdbmRequirement
def install
2014-01-04 13:04:06 +00:00
system "python", "setup.py", "install", "--prefix=#{prefix}"
2015-04-19 10:25:58 +00:00
system "make", "man"
man1.install gzip("cvs2svn.1", "cvs2git.1", "cvs2bzr.1")
2014-01-04 13:04:06 +00:00
prefix.install %w[ BUGS COMMITTERS HACKING
cvs2bzr-example.options
cvs2git-example.options
cvs2hg-example.options
cvs2svn-example.options contrib ]
2015-04-19 10:25:58 +00:00
doc.install Dir["{doc,www}/*"]
end
2012-11-25 19:42:57 +00:00
def caveats; <<-EOS.undent
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
end
end