2015-12-18 09:15:28 +08:00
|
|
|
cask 'netbeans' do
|
2016-10-05 03:13:38 +08:00
|
|
|
version '8.2'
|
|
|
|
sha256 'ddcf37e91d960cca6b6a37c95eabf2c6f15330ed708bfd79be796de00da20e5e'
|
2014-06-27 08:01:31 +08:00
|
|
|
|
2014-09-11 23:38:01 +08:00
|
|
|
url "http://download.netbeans.org/netbeans/#{version}/final/bundles/netbeans-#{version}-macosx.dmg"
|
2015-04-16 01:19:40 +08:00
|
|
|
name 'NetBeans IDE'
|
2014-06-27 08:01:31 +08:00
|
|
|
homepage 'https://netbeans.org/'
|
|
|
|
|
2014-12-28 00:40:56 +08:00
|
|
|
pkg "NetBeans #{version}.pkg"
|
2016-01-04 03:19:02 +08:00
|
|
|
|
2013-10-06 07:20:43 +08:00
|
|
|
# Theoretically this uninstall could conflict with a separate GlassFish
|
|
|
|
# installation.
|
|
|
|
#
|
|
|
|
# In practice, it appears that the normal GlassFish installation process does
|
2016-06-14 03:21:09 +08:00
|
|
|
# not use the macOS installer and so isn't in the pkgutil receipts database.
|
2013-10-06 07:20:43 +08:00
|
|
|
#
|
|
|
|
# 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."
|
|
|
|
#
|
2016-10-16 12:06:08 +08:00
|
|
|
# If this ever becomes an issue, pkgutil: 'glassfish.*' could be moved to a
|
|
|
|
# separate "zap" stanza.
|
2014-09-13 22:23:02 +08:00
|
|
|
#
|
2013-10-06 07:20:43 +08:00
|
|
|
# The NetBeans installer does some postflight unpacking of paths installed by
|
2016-06-14 03:21:09 +08:00
|
|
|
# the macOS installer, so it's insufficient to just delete the paths exposed
|
2014-10-07 22:49:44 +08:00
|
|
|
# by pkgutil, hence the additional ":delete" option below.
|
2014-11-22 22:12:43 +08:00
|
|
|
|
2016-10-16 12:06:08 +08:00
|
|
|
uninstall pkgutil: 'org.netbeans.ide.*|glassfish.*',
|
2016-01-18 09:27:20 +08:00
|
|
|
delete: '/Applications/NetBeans'
|
2013-10-06 07:20:43 +08:00
|
|
|
end
|