bzr-xmloutput 0.8.8 (new formula)

Closes Homebrew/homebrew#49075.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
This commit is contained in:
Fred McCann 2016-02-11 09:40:05 -05:00 committed by Dominyk Tiller
parent f124522253
commit 93ac88a708

28
Formula/bzr-xmloutput.rb Normal file
View file

@ -0,0 +1,28 @@
class BzrXmloutput < Formula
desc "Bazaar plugin that provides a option to generate XML output"
homepage "https://launchpad.net/bzr-xmloutput"
url "https://launchpad.net/bzr-xmloutput/trunk/0.8.8/+download/bzr-xmloutput-0.8.8.tar.gz"
sha256 "73b9b2f6ce4d9910031df7fd153d56d14f833c20a106f099bee5a33463f73b36"
bottle :unneeded
depends_on "bazaar"
def install
(share/"bazaar/plugins/xmloutput").install Dir["*"]
end
test do
system "bzr", "whoami", "Homebrew"
system "bzr", "init-repo", "sample"
system "bzr", "init", "sample/trunk"
touch testpath/"sample/trunk/test.txt"
cd "sample/trunk" do
msg = "my commit"
system "bzr", "add", "test.txt"
system "bzr", "commit", "-m", msg
assert_match /<message>.*#{msg}/, shell_output("bzr log --xml")
end
end
end