2014-02-26 20:53:00 +08:00
|
|
|
class IntellijIdeaCe < Cask
|
2014-10-03 00:20:15 +08:00
|
|
|
version '13.1.5'
|
|
|
|
sha256 '1db4938b41de9e340e196bd76f0482f9a329d0a660a9c583fb502c3208731c81'
|
2014-06-27 08:01:19 +08:00
|
|
|
|
2014-08-13 15:51:37 +08:00
|
|
|
url "http://download.jetbrains.com/idea/ideaIC-#{version}.dmg"
|
2014-06-27 08:01:19 +08:00
|
|
|
homepage 'https://www.jetbrains.com/idea/index.html'
|
2014-10-01 23:33:07 +08:00
|
|
|
license :oss
|
2014-06-27 08:01:19 +08:00
|
|
|
|
2014-09-16 00:05:45 +08:00
|
|
|
app 'IntelliJ IDEA 13 CE.app'
|
2014-07-25 23:38:59 +08:00
|
|
|
|
2014-09-09 20:55:27 +08:00
|
|
|
postflight do
|
2014-10-04 21:56:16 +08:00
|
|
|
system '/usr/libexec/PlistBuddy', '-c', 'Set :JVMOptions:JVMVersion 1.6+', "#{destination_path}/IntelliJ IDEA 13 CE.app/Contents/Info.plist"
|
2014-07-25 23:38:59 +08:00
|
|
|
end
|
|
|
|
|
2014-10-22 18:16:41 +08:00
|
|
|
zap :delete => [
|
|
|
|
'~/Library/Application Support/IntelliJIdea13',
|
|
|
|
'~/Library/Preferences/IntelliJIdea13',
|
|
|
|
]
|
|
|
|
|
2014-10-04 21:56:16 +08:00
|
|
|
caveats <<-EOS.undent
|
2014-10-10 19:40:49 +08:00
|
|
|
#{title} may require Java 7 (an older version), available from the
|
2014-10-04 21:56:16 +08:00
|
|
|
caskroom-versions repository via
|
2014-05-26 22:01:32 +08:00
|
|
|
|
2014-10-04 21:56:16 +08:00
|
|
|
brew cask install caskroom/versions/java7
|
2014-05-26 22:01:32 +08:00
|
|
|
|
2014-10-10 19:40:49 +08:00
|
|
|
Alternatively, #{title} can be modified to use Java 8 as described in
|
2014-05-26 22:01:32 +08:00
|
|
|
|
2014-10-04 21:56:16 +08:00
|
|
|
https://github.com/caskroom/homebrew-cask/issues/4500#issuecomment-43955932
|
|
|
|
EOS
|
2012-11-20 01:52:13 +08:00
|
|
|
end
|