aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorGeorge2014-08-25 13:13:40 +0100
committerJack Nagel2014-09-25 19:16:49 -0500
commitdecb35c24f235903053dbabce73c4b8b4b5c51b3 (patch)
treecc397d61b6d0b5af21e9ed2256c4bf3213578e6d /Library
parentbc31e2b78f7dc8ffafa7ebe1eb19f483af901ed4 (diff)
downloadhomebrew-decb35c24f235903053dbabce73c4b8b4b5c51b3.tar.bz2
truecrack 3.5
Closes #31874. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/truecrack.rb27
1 files changed, 27 insertions, 0 deletions
diff --git a/Library/Formula/truecrack.rb b/Library/Formula/truecrack.rb
new file mode 100644
index 000000000..3a8970585
--- /dev/null
+++ b/Library/Formula/truecrack.rb
@@ -0,0 +1,27 @@
+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"
+
+ # 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