homebrew-core/Formula/aescrypt.rb

34 lines
886 B
Ruby
Raw Normal View History

2010-05-21 00:25:19 +00:00
require 'formula'
2011-03-10 05:11:03 +00:00
class Aescrypt < Formula
desc "Program for encryption/decryption"
2010-05-21 00:25:19 +00:00
homepage 'http://aescrypt.sourceforge.net/'
2012-02-13 04:25:10 +00:00
url 'http://aescrypt.sourceforge.net/aescrypt-0.7.tar.gz'
sha1 '72756ccccd43a4f19796835395512616c86c273f'
2010-05-21 00:25:19 +00:00
2014-12-12 09:03:30 +00:00
bottle do
cellar :any
sha1 "0e83157b9bda1e52f645746b1e00eececffc896b" => :yosemite
sha1 "9b17c325b41375b2635eb7a5fd729f616e73dddb" => :mavericks
sha1 "7f8c9dbc1fe36d3a0b9fca80756a38e55c1fb1d5" => :mountain_lion
end
2010-05-21 00:25:19 +00:00
def install
system "./configure"
system "make"
bin.install "aescrypt", "aesget"
end
test do
(testpath/"key").write "kk=12345678901234567890123456789abc0"
require "open3"
Open3.popen3("#{bin}/aescrypt", "-k", testpath/"key") do |stdin, stdout, _|
stdin.write("hello")
stdin.close
# we can't predict the output
stdout.read.length > 0
end
2010-05-21 00:25:19 +00:00
end
end