Commit a2b7f9f0 authored by Ed Reel's avatar Ed Reel Committed by Chris Thurber

Add netbeans package (#3764)

parent 4e28ae26
require 'package'
class Netbeans < Package
description 'Apache NetBeans IDE is free open source software to quickly and easily develop desktop, mobile, and web applications with Java, JavaScript, HTML5, PHP, C/C++ and more.'
homepage 'https://netbeans.org/'
version '11.2'
source_url 'http://www.gtlib.gatech.edu/pub/apache/netbeans/netbeans/11.2/netbeans-11.2-bin.zip'
source_sha256 '6f3f77b042bddaa1e100f133747d0f59bad437adcdc662efda5fc961a170bb2d'
depends_on 'jdk8'
depends_on 'sommelier'
def self.install
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/netbeans"
FileUtils.rm Dir.glob('bin/*.exe')
FileUtils.mv Dir.glob('*'), "#{CREW_DEST_PREFIX}/share/netbeans"
FileUtils.ln_s "#{CREW_PREFIX}/share/netbeans/bin/netbeans", "#{CREW_DEST_PREFIX}/bin/netbeans"
end
def self.postinstall
puts
puts "Type 'netbeans' to get started.".lightblue
puts
puts "To remove, including all plugins and preferences, execute the following:".lightblue
puts "crew remove netbeans".lightblue
puts "rm -rf ~/.netbeans".lightblue
puts
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment