aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/truecrack.rb
blob: 36a38fdfce2752c2e286fcab49bf8aad1435cedc (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
require "formula"

class Truecrack < Formula
  homepage "https://code.google.com/p/truecrack/"
  url "https://truecrack.googlecode.com/files/truecrack_v35.tar.gz"
  sha1 "21b2a0f2f860ecf401cfc1ac8191638b7410fc64"
  version "3.5"

  bottle do
    cellar :any
    sha1 "605d9c2eda636f918413f4ae3d9146bfa5168516" => :mavericks
    sha1 "a320ed86f967c5b0e430c6506804f5a1574d3143" => :mountain_lion
    sha1 "67c8b6637db713e7582f6db320fdc1926e7f531b" => :lion
  end

  # Fix missing return value compilation issue
  # https://code.google.com/p/truecrack/issues/detail?id=41
  patch do
    url "https://gist.githubusercontent.com/anonymous/b912a1ede06eb1e8eb38/raw/1394a8a6bedb7caae8ee034f512f76a99fe55976/truecrack-return-value-fix.patch"
    sha1 "6a0fa8a58284dec2352e7c090f68bb03d4dc75ab"
  end

  def install
    system "./configure", "--enable-cpu",
                          "--disable-debug",
                          "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    system "make", "install"
  end

  test do
    system "#{bin}/truecrack"
  end
end