diff --git a/Formula/keepassc.rb b/Formula/keepassc.rb index ec948e6c96..919d56975a 100644 --- a/Formula/keepassc.rb +++ b/Formula/keepassc.rb @@ -1,9 +1,7 @@ -require "formula" - class Keepassc < Formula homepage "http://raymontag.github.com/keepassc/" - url "https://github.com/raymontag/keepassc/archive/1.6.2.tar.gz" - sha1 "3366fc811b312ef2e64eb48a8b84380bc1a962b1" + url "https://github.com/raymontag/keepassc/archive/1.7.0.tar.gz" + sha1 "edc39b0aaaeaca101ab722cba7b19804b4b8f9b7" head "https://github.com/raymontag/keepassc.git", :branch => "development" depends_on :python3 @@ -21,8 +19,8 @@ class Keepassc < Formula end def install - ENV.prepend_create_path 'PYTHONPATH', libexec+'lib/python3.4/site-packages' - install_args = [ "setup.py", "install", "--prefix=#{libexec}" ] + ENV.prepend_create_path "PYTHONPATH", libexec+"lib/python3.4/site-packages" + install_args = %W[setup.py install --prefix=#{libexec}] resource("pycrypto").stage { system "python3", *install_args } resource("kppy").stage { system "python3", *install_args } @@ -31,13 +29,13 @@ class Keepassc < Formula man1.install Dir["*.1"] - bin.install Dir[libexec/'bin/*'] - bin.env_script_all_files(libexec+'bin', :PYTHONPATH => ENV['PYTHONPATH']) + bin.install Dir[libexec/"bin/*"] + bin.env_script_all_files(libexec+"bin", :PYTHONPATH => ENV["PYTHONPATH"]) end test do - # Fetching help is the only non-interactive action we can perform, - # and since interactive actions are un-scriptable, there nothing more we can do. + # Fetching help is the only non-interactive action we can perform, and since + # interactive actions are un-scriptable, there nothing more we can do. system "#{bin}/keepassc", "--help" end end