class Mactex < Cask
  url 'http://mirror.ctan.org/systems/mac/mactex/MacTeX.pkg'
  homepage 'http://www.tug.org/mactex/'
  version 'latest'
  no_checksum
  install 'MacTeX.pkg'
  uninstall :pkgutil => 'org.tug.mactex.texlive2013'
end

class Mactex < Cask
  url 'http://mirror.ctan.org/systems/mac/mactex/MacTeX.pkg'
  homepage 'http://www.tug.org/mactex/'
  version 'latest'
  no_checksum
  install 'MacTeX.pkg'
  uninstall :pkgutil => 'org.tug.mactex.texlive2013'
  
  def caveats; <<-EOS.undent
    You may need to add the MacTeX bin directory to your PATH.
    
    export PATH=/usr/texbin:$PATH
    
    EOS
  end
end

Add PATH caveats to MacTeX Cask
Add PATH caveats to MacTeX Cask

Warns user that they may need to add the mactex `/usr/texbin` directory to their
PATH manually, as the package does not seem to do this or symlink automatically.

Fixes #2277.

See also [this comment](https://github.com/phinze/homebrew-cask/pull/2284#commitcomment-4974770)
on #2284 for more information.
