mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-05-01 03:00:26 -04:00
31 lines
1.1 KiB
Ruby
31 lines
1.1 KiB
Ruby
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
|