homebrew-cask/Casks/netbeans.rb

34 lines
1.3 KiB
Ruby
Raw Normal View History

2015-12-18 09:15:28 +08:00
cask 'netbeans' do
2015-11-08 10:28:55 +08:00
version '8.1'
sha256 'adc3963891a62e7d716d4b2ee195bc57f7e42150dabfe684d0a8eedfc9b6c99a'
url "http://download.netbeans.org/netbeans/#{version}/final/bundles/netbeans-#{version}-macosx.dmg"
2015-04-16 01:19:40 +08:00
name 'NetBeans IDE'
homepage 'https://netbeans.org/'
license :oss
pkg "NetBeans #{version}.pkg"
# Theoretically this uninstall could conflict with a separate GlassFish
# installation.
#
# In practice, it appears that the normal GlassFish installation process does
# not use the OS X installer and so isn't in the pkgutil receipts database.
#
# https://glassfish.java.net/docs/4.0/installation-guide.pdf
#
# Arguably if the GlassFish installation by NetBeans inside its own target
# directory were to conflict with a standard GlassFish installation in the
# receipts database that would be a bug upstream with NetBeans not prefixing
# its GlassFish package with "org.netbeans."
#
2014-09-13 22:23:02 +08:00
# If this ever becomes an issue, :pkgutil => 'glassfish-.*' could be moved
# to a separate "zap" stanza.
#
# The NetBeans installer does some postflight unpacking of paths installed by
# the OS X installer, so it's insufficient to just delete the paths exposed
# by pkgutil, hence the additional ":delete" option below.
2014-11-22 22:12:43 +08:00
uninstall :pkgutil => 'org.netbeans.ide.*|glassfish-.*',
2014-09-18 19:57:58 +08:00
:delete => '/Applications/NetBeans'
end