forked from cartr/homebrew-qt4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqbzr.rb
26 lines (21 loc) · 727 Bytes
/
qbzr.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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"
revision 1
bottle :unneeded
depends_on "bazaar"
depends_on "cartr/qt4/pyqt@4"
def install
(share/"bazaar/plugins/qbzr").install Dir["*"]
end
def caveats; <<~EOS
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