Truecrypt install fails - 3 out of 6 hunks FAILED The first is just to show you where the installation is at this moment:


  n102:~ hendrikwindel$ brew info truecrypt
  truecrypt: stable 7.1a
  http://truecrypt.org/
  Conflicts with: fuse4x
  Not installed
  From: https://github.com/Homebrew/homebrew/commits/master/Library/Formula/truecrypt.rb
  ==&gt; Dependencies
  Build: pkg-config ✔, nasm ✔
  Required: wxmac ✔, osxfuse ✔


And now occurs the issue:


  n102:~ hendrikwindel$ brew install truecrypt
  ==&gt; Downloading ftp://ftp.archlinux.org/other/tc/truecrypt-7.1a.tar.gz
  Already downloaded: /Library/Caches/Homebrew/truecrypt-7.1a.tar.gz
  ==&gt; Patching
  patching file Main/Application.cpp
  Hunk #1 succeeded at 36 with fuzz 2.
  patching file Main/CommandLineInterface.cpp
  patching file Main/Forms/Forms.cpp
  Hunk #1 succeeded at 263 with fuzz 2.
  Hunk #2 FAILED at 305.
  Hunk #3 succeeded at 1443 with fuzz 2.
  Hunk #4 FAILED at 1468.
  Hunk #5 succeeded at 2894 with fuzz 2.
  Hunk #6 FAILED at 2951.
  3 out of 6 hunks FAILED -- saving rejects to file Main/Forms/Forms.cpp.rej
  patching file Main/Forms/MainFrame.cpp
  patching file Main/Forms/SelectDirectoryWizardPage.cpp
  patching file Main/Forms/SelectDirectoryWizardPage.h
  patching file Main/GraphicUserInterface.cpp
  patching file Main/TextUserInterface.cpp
  patching file Main/UserPreferences.cpp
  patching file Platform/Unix/Process.cpp
  Error: Applying DATA patch failed


I have no idea what could be wrong. There is only a short prehistory. But I think it isn't connected with this issue.
Bad News

The Truecrypt Formula on Homebrew has been removed due to bugs, and probably uncertainty in the community regarding truecrypt's safety.

There also used to be a homebrew cask which was removed due to installation bugs.  However, it was also moved to homebrew-unofficial and scheduled for removal.

For more information about the 3rd party audit, and why Truecrypt is still safe to use, please see the links mentioned here.

Good News

I have created a Homebrew Tap for Truecrypt 7.1a which fixes the installation problem, and works on OS X 10.10 Yosemite!

Installation

First, make sure you have installed homebrew-cask if you haven't yet:

brew install caskroom/cask/brew-cask


Then, run the following in your command-line:

brew tap trinitronx/homebrew-truecrypt


Usage

Note: For info run:

brew cask info truecrypt


Once the tap is installed, you can install truecrypt!

brew cask install truecrypt