blob: 5ee684f4c6a337f7876a684894651fe149c54d9f (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
 | class Ccrypt < Formula
  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"
  sha1 "95d4e524abb146946fe6af9d53ed0e5e294b34e2"
  bottle do
    sha1 "89c604ac653e2bd1cbf7b56494ab14ac4a6de3f3" => :yosemite
    sha1 "f6d046eb7552fe541bef3eda66a7155b2c284b80" => :mavericks
    sha1 "70ed9462ae982f2939f76dab3b335d84db53479f" => :mountain_lion
  end
  fails_with :clang do
    build 318
    cause "Tests fail when optimizations are enabled"
  end
  def install
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--mandir=#{man}"
    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")
  end
end
 |