2011-03-10 05:11:03 +00:00
|
|
|
class Ccrypt < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Encrypt and decrypt files and streams"
|
2015-02-14 21:23:01 +00:00
|
|
|
homepage "http://ccrypt.sourceforge.net/"
|
|
|
|
url "http://ccrypt.sourceforge.net/download/ccrypt-1.10.tar.gz"
|
|
|
|
mirror "https://mirrors.kernel.org/debian/pool/main/c/ccrypt/ccrypt_1.10.orig.tar.gz"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "87d66da2170facabf6f2fc073586ae2c7320d4689980cfca415c74688e499ba0"
|
2010-01-02 22:38:09 +00:00
|
|
|
|
2015-02-14 21:40:04 +00:00
|
|
|
bottle do
|
2016-02-23 16:33:12 +00:00
|
|
|
sha256 "28709273d08ed2188def37735842b6c4ae576042f391ebaed975938366c7c5f6" => :el_capitan
|
2015-11-19 15:45:31 +00:00
|
|
|
sha256 "a6772e44a314ed6bceacb544f5da9f6e3b5b5035007e4146a41b917d0017bcc7" => :yosemite
|
|
|
|
sha256 "d5bbf02562843fa96d4e248aa8973e0434d7044f47840b1e506d9d43f2b2d1bf" => :mavericks
|
|
|
|
sha256 "34eb45bc81353931dccf4b978857091073212a6a19dfde4d0e11479fb6a18ca8" => :mountain_lion
|
2015-02-14 21:40:04 +00:00
|
|
|
end
|
|
|
|
|
2015-08-28 16:02:49 +00:00
|
|
|
conflicts_with "ccat", :because => "both install `ccat` binaries"
|
|
|
|
|
2013-06-04 01:41:42 +00:00
|
|
|
fails_with :clang do
|
|
|
|
build 318
|
|
|
|
cause "Tests fail when optimizations are enabled"
|
|
|
|
end
|
2012-04-30 22:33:39 +00:00
|
|
|
|
2013-06-04 01:41:42 +00:00
|
|
|
def install
|
|
|
|
system "./configure", "--disable-dependency-tracking",
|
2012-04-30 22:33:39 +00:00
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--mandir=#{man}"
|
2015-02-14 21:23:01 +00:00
|
|
|
system "make", "install"
|
|
|
|
system "make", "check"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
touch "homebrew.txt"
|
|
|
|
system bin/"ccrypt", "-e", testpath/"homebrew.txt", "-K", "secret"
|
|
|
|
assert File.exist?("homebrew.txt.cpt")
|
|
|
|
assert !File.exist?("homebrew.txt")
|
|
|
|
|
|
|
|
system bin/"ccrypt", "-d", testpath/"homebrew.txt.cpt", "-K", "secret"
|
|
|
|
assert File.exist?("homebrew.txt")
|
|
|
|
assert !File.exist?("homebrew.txt.cpt")
|
2010-01-02 22:38:09 +00:00
|
|
|
end
|
|
|
|
end
|