homebrew-cask/Casks/intellij-idea.rb

32 lines
1.1 KiB
Ruby
Raw Normal View History

2014-11-14 01:26:06 +08:00
cask :v1 => 'intellij-idea' do
2014-12-09 21:06:18 +08:00
version '14.0.2'
sha256 'cfab01c2b5b7265f0cf7b365872180261154a5e3ff1fc710c545d36e1f936a7b'
2014-08-13 15:51:37 +08:00
url "http://download.jetbrains.com/idea/ideaIU-#{version}.dmg"
homepage 'https://www.jetbrains.com/idea/index.html'
2014-11-12 08:38:39 +08:00
license :commercial
app 'IntelliJ IDEA 14.app'
2014-09-09 20:55:27 +08:00
postflight do
plist_set(':JVMOptions:JVMVersion', '1.6+')
end
2014-10-22 18:16:41 +08:00
zap :delete => [
'~/Library/Application Support/IntelliJIdea14',
'~/Library/Preferences/IntelliJIdea14',
2014-10-22 18:16:41 +08:00
]
2014-12-05 23:32:49 +08:00
# todo: transitional, replace #{self.name...} with #{token}
2014-10-04 21:56:28 +08:00
caveats <<-EOS.undent
2014-12-05 23:32:49 +08:00
#{self.name.sub(/^KlassPrefix/,'').gsub(/([a-zA-Z\d])([A-Z])/,'\1-\2').gsub(/([a-zA-Z\d])([A-Z])/,'\1-\2').downcase} may require Java 7 (an older version) available from the
2014-10-04 21:56:28 +08:00
caskroom-versions repository via
2014-10-04 21:56:28 +08:00
brew cask install caskroom/versions/java7
2014-12-05 23:32:49 +08:00
Alternatively, #{self.name.sub(/^KlassPrefix/,'').gsub(/([a-zA-Z\d])([A-Z])/,'\1-\2').gsub(/([a-zA-Z\d])([A-Z])/,'\1-\2').downcase} can be modified to use Java 8 as described in
2014-10-04 21:56:28 +08:00
https://github.com/caskroom/homebrew-cask/issues/4500#issuecomment-43955932
EOS
end