2014-03-07 09:36:37 +00:00
|
|
|
class Keepassc < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Curses-based password manager for KeePass v.1.x and KeePassX"
|
2015-05-08 23:27:00 +00:00
|
|
|
homepage "https://raymontag.github.com/keepassc/"
|
2015-01-27 13:43:54 +00:00
|
|
|
url "https://github.com/raymontag/keepassc/archive/1.7.0.tar.gz"
|
2015-05-08 23:27:00 +00:00
|
|
|
sha256 "218537f6a16f70d907d22a23d1a4dec952d7622c65fae65f03c9ee98e64938dd"
|
2014-05-07 01:53:39 +00:00
|
|
|
head "https://github.com/raymontag/keepassc.git", :branch => "development"
|
2014-03-07 09:36:37 +00:00
|
|
|
|
2015-01-27 14:26:11 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha1 "fba4d1c078e87272829edb0450d415ba69f65928" => :yosemite
|
|
|
|
sha1 "7a20f233d82f09d1fde95e382e83a321b05d04a7" => :mavericks
|
|
|
|
sha1 "be234b537c09d85d9cc75d4085196f796f0994fa" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2014-03-07 09:36:37 +00:00
|
|
|
depends_on :python3
|
|
|
|
|
|
|
|
resource "pycrypto" do
|
|
|
|
# homepage "https://www.dlitz.net/software/pycrypto"
|
|
|
|
url "https://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/pycrypto-2.6.1.tar.gz"
|
2015-05-08 23:27:00 +00:00
|
|
|
sha256 "f2ce1e989b272cfcb677616763e0a2e7ec659effa67a88aa92b3a65528f60a3c"
|
2014-03-07 09:36:37 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
resource "kppy" do
|
|
|
|
# homepage "https://github.com/raymontag/kppy"
|
|
|
|
url "https://github.com/raymontag/kppy/archive/1.4.0.tar.gz"
|
2015-05-08 23:27:00 +00:00
|
|
|
sha256 "a7ebcb7a13b037aada2785ca19cbc1ecaf0351ffa422ca6b487ece0b09ce1c10"
|
2014-03-07 09:36:37 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
2015-01-27 13:43:54 +00:00
|
|
|
ENV.prepend_create_path "PYTHONPATH", libexec+"lib/python3.4/site-packages"
|
|
|
|
install_args = %W[setup.py install --prefix=#{libexec}]
|
2014-03-07 09:36:37 +00:00
|
|
|
|
|
|
|
resource("pycrypto").stage { system "python3", *install_args }
|
|
|
|
resource("kppy").stage { system "python3", *install_args }
|
|
|
|
|
|
|
|
system "python3", *install_args
|
|
|
|
|
|
|
|
man1.install Dir["*.1"]
|
|
|
|
|
2015-01-27 13:43:54 +00:00
|
|
|
bin.install Dir[libexec/"bin/*"]
|
|
|
|
bin.env_script_all_files(libexec+"bin", :PYTHONPATH => ENV["PYTHONPATH"])
|
2014-03-07 09:36:37 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2015-01-27 13:43:54 +00:00
|
|
|
# Fetching help is the only non-interactive action we can perform, and since
|
|
|
|
# interactive actions are un-scriptable, there nothing more we can do.
|
2015-05-08 23:27:00 +00:00
|
|
|
system "#{bin}/keepassc", "--help"
|
2014-03-07 09:36:37 +00:00
|
|
|
end
|
|
|
|
end
|