keepassc 1.7.0
Closes Homebrew/homebrew#36274. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
a6f6a454c0
commit
a9859c8b59
1 changed files with 8 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue