cvs-fast-export 1.55 (new formula)

Replacement for deprecated cvsps

Closes #62806.

Signed-off-by: Sean Molenaar <1484494+SMillerDev@users.noreply.github.com>
master
John Benninghoff 2020-10-13 10:59:06 -05:00 committed by Sean Molenaar
parent ad80445a3b
commit 727b5bb69b
1 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,33 @@
class CvsFastExport < Formula
desc "Export an RCS or CVS history as a fast-import stream"
homepage "http://www.catb.org/~esr/cvs-fast-export/"
url "http://www.catb.org/~esr/cvs-fast-export/cvs-fast-export-1.55.tar.gz"
sha256 "af58e16667c6e02e8431ff666effe306d3b30086fab483170257890da1afc21b"
license "GPL-2.0-or-later"
depends_on "asciidoc" => :build
depends_on "docbook-xsl" => :build
depends_on "cvs" => :test
def install
ENV["XML_CATALOG_FILES"] = "#{etc}/xml/catalog"
system "make", "install", "prefix=#{prefix}"
end
test do
cvsroot = testpath/"cvsroot"
cvsroot.mkpath
system "cvs", "-d", cvsroot, "init"
test_content = "John Barleycorn"
mkdir "cvsexample" do
(testpath/"cvsexample/testfile").write(test_content)
ENV["CVSROOT"] = cvsroot
system "cvs", "import", "-m", "example import", "cvsexample", "homebrew", "start"
end
assert_match test_content, shell_output("find #{testpath}/cvsroot | #{bin}/cvs-fast-export")
end
end