From f124522253143465c1e44ea337b71198007115d9 Mon Sep 17 00:00:00 2001 From: Fred McCann Date: Thu, 11 Feb 2016 09:48:01 -0500 Subject: [PATCH] qbzr 0.23.1 (new formula) Add qbzr bazaar plugin that adds qt GUIs for commands Closes Homebrew/homebrew#49078. Signed-off-by: Dominyk Tiller --- Formula/qbzr.rb | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Formula/qbzr.rb diff --git a/Formula/qbzr.rb b/Formula/qbzr.rb new file mode 100644 index 00000000000..1cf54a6c0f9 --- /dev/null +++ b/Formula/qbzr.rb @@ -0,0 +1,25 @@ +class Qbzr < Formula + desc "Simple Qt cross-platform frontend for some of Bazaar commands" + homepage "https://launchpad.net/qbzr" + url "https://launchpad.net/qbzr/0.23/0.23.1/+download/qbzr-0.23.1.tar.gz" + sha256 "3211adef11c975dfbb6c80285651e2e6f3bfa99f1baa1a95371e8490ea8ff441" + + bottle :unneeded + + depends_on "bazaar" + depends_on "pyqt" + + def install + (share/"bazaar/plugins/qbzr").install Dir["*"] + end + + def caveats; <<-EOS.undent + In order to use this plugin you must set your PYTHONPATH in your ~/.bashrc: + export PYTHONPATH="#{HOMEBREW_PREFIX}/lib/python2.7/site-packages:$PYTHONPATH" + EOS + end + + test do + assert_match /qbzr #{version}/, shell_output("bzr plugins") + end +end