mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 07:57:59 -05:00
Add netbeans package (#3764)
This commit is contained in:
30
packages/netbeans.rb
Normal file
30
packages/netbeans.rb
Normal file
@@ -0,0 +1,30 @@
|
||||
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
|
||||
Reference in New Issue
Block a user