Merge pull request #200213 from Homebrew/bump-tidelift-1.14.0
[Homebrew/homebrew-cask.git] / Casks / n / netbeans.rb
blobc3a4e8a5f9520e48ee1daa08394bfd693b865439
1 cask "netbeans" do
2   version "24"
3   sha256 "eb94dc42917d8df1137e8eaf2bfa4a1294f0fb30a6f48c47e59893f25a9ba70d"
5   url "https://dlcdn.apache.org/netbeans/netbeans-installers/#{version}/Apache-NetBeans-#{version}.pkg"
6   name "NetBeans IDE"
7   desc "Development environment, tooling platform and application framework"
8   homepage "https://netbeans.apache.org/"
10   # Major releases sometimes only use the major version (13) instead of
11   # major/minor (13.0).
12   livecheck do
13     url "https://netbeans.apache.org/front/main/download/"
14     regex(/>\s*Apache\s*NetBeans\s*v?(\d+(?:\.\d+)*)\s*</im)
15   end
17   depends_on macos: ">= :big_sur"
19   pkg "Apache-NetBeans-#{version}.pkg"
21   uninstall pkgutil: [
22               "org.apache.netbeans",
23               "org.netbeans.ide.*|glassfish.*",
24             ],
25             delete:  "/Applications/NetBeans"
27   zap trash: [
28     "~/Library/Application Support/NetBeans",
29     "~/Library/Caches/NetBeans",
30   ]
31 end