Browse Source

Update to Java 7u65.

master
Jens Braeuer 11 years ago
parent
commit
3aada80a89
  1. 10
      Casks/java7.rb

10
Casks/java7.rb

@ -1,12 +1,12 @@
class Java7 < Cask class Java7 < Cask
url 'http://download.oracle.com/otn-pub/java/jdk/7u60-b19/jdk-7u60-macosx-x64.dmg', url 'http://download.oracle.com/otn-pub/java/jdk/7u65-b17/jdk-7u65-macosx-x64.dmg',
:cookies => { :cookies => {
'oraclelicense' => 'accept-securebackup-cookie' 'oraclelicense' => 'accept-securebackup-cookie'
} }
homepage 'http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html' homepage 'http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html'
version '1.7.0_60' version '1.7.0_65'
sha256 'a868aab818cd114f652252ded5b159b5c47beb1a0a074cdb0e475ed79826c9df' sha256 'fedf474dd0d835da8acd66cfdd0cc9a5aefb3bd7dd83f17ded1ac647a348f583'
install 'JDK 7 Update 60.pkg' install 'JDK 7 Update 65.pkg'
after_install do after_install do
system '/usr/bin/sudo', '-E', '--', system '/usr/bin/sudo', '-E', '--',
'/usr/libexec/PlistBuddy', '-c', 'Add :JavaVM:JVMCapabilities: string BundledApp', "/Library/Java/JavaVirtualMachines/jdk#{version}.jdk/Contents/Info.plist" '/usr/libexec/PlistBuddy', '-c', 'Add :JavaVM:JVMCapabilities: string BundledApp', "/Library/Java/JavaVirtualMachines/jdk#{version}.jdk/Contents/Info.plist"
@ -25,7 +25,7 @@ class Java7 < Cask
system '/usr/bin/sudo', '-E', '--', system '/usr/bin/sudo', '-E', '--',
'/bin/ln', '-nsf', '--', "/Library/Java/JavaVirtualMachines/jdk#{version}.jdk/Contents/Home/jre/lib/server/libjvm.dylib", "/Library/Java/JavaVirtualMachines/jdk#{version}.jdk/Contents/Home/bundle/Libraries/libserver.dylib" '/bin/ln', '-nsf', '--', "/Library/Java/JavaVirtualMachines/jdk#{version}.jdk/Contents/Home/jre/lib/server/libjvm.dylib", "/Library/Java/JavaVirtualMachines/jdk#{version}.jdk/Contents/Home/bundle/Libraries/libserver.dylib"
end end
uninstall :pkgutil => 'com.oracle.jdk7u60', uninstall :pkgutil => 'com.oracle.jdk7u65',
:files => '/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK' :files => '/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK'
caveats <<-EOS.undent caveats <<-EOS.undent
This Cask makes minor modifications to the JRE to prevent any packaged This Cask makes minor modifications to the JRE to prevent any packaged

Loading…
Cancel
Save