mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-08 23:18:10 -05:00
* Some ruby gem updates and cleanup Signed-off-by: Satadru Pramanik <satadru@gmail.com> * bump version Signed-off-by: Satadru Pramanik <satadru@gmail.com> * move gem installs to core install Signed-off-by: Satadru Pramanik <satadru@gmail.com> * add webkitgtk_6 binaries for x86_64, add librsvg binaries Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add rebuilt librsvg binary for x86_64. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * rename gem function internals to make more sense Signed-off-by: Satadru Pramanik <satadru@gmail.com> * adjust webkitgtk_6 deps Signed-off-by: Satadru Pramanik <satadru@gmail.com> * update ruby gem packages, add a ruby gem package update script to tools Signed-off-by: Satadru Pramanik <satadru@gmail.com> * suggested changes Signed-off-by: Satadru Pramanik <satadru@gmail.com> * rebuild parted Signed-off-by: Satadru Pramanik <satadru@gmail.com> * add parted binaries Signed-off-by: Satadru Pramanik <satadru@gmail.com> * suggested changes Signed-off-by: Satadru Pramanik <satadru@gmail.com> * refactor ruby buildsystem Signed-off-by: Satadru Pramanik <satadru@gmail.com> * add libsdl2, freerdp binaries Signed-off-by: Satadru Pramanik <satadru@gmail.com> * sync crew function to lib/fixup Signed-off-by: Satadru Pramanik <satadru@gmail.com> * shellcheck fix Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add const for CREW_UPDATE_CHECK_INTERVAL Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Move time_difference into function for neatness. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * suggested changes from @uberhacker Signed-off-by: Satadru Pramanik <satadru@gmail.com> * @Zopolis4 suggested change: Use git last update time Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add .blank? usage to downloader to avoid undefined method `empty?' for nil (NoMethodError) Signed-off-by: Satadru Pramanik <satadru@gmail.com> --------- Signed-off-by: Satadru Pramanik <satadru@gmail.com>
51 lines
1.7 KiB
Ruby
51 lines
1.7 KiB
Ruby
require 'package'
|
|
|
|
class Wing < Package
|
|
description 'Wing Personal is a free Python IDE designed for students and hobbyists.'
|
|
homepage 'https://wingware.com/'
|
|
version '10.0.4.0'
|
|
license 'Wingware-EULA'
|
|
compatibility 'x86_64'
|
|
source_url "https://wingware.com/pub/wing-personal/#{version}/wing-personal-#{version}-linux-x64.tar.bz2"
|
|
source_sha256 '169580d26a7c852c06951e9bb67394b382076c31a0ce3e9376c2ccc9554b5b74'
|
|
|
|
@major_ver = version.split('.').first
|
|
|
|
depends_on 'xcb_util_cursor'
|
|
depends_on 'xcb_util_keysyms'
|
|
depends_on 'xcb_util_wm'
|
|
depends_on 'sommelier'
|
|
|
|
no_compile_needed
|
|
no_shrink
|
|
|
|
def self.install
|
|
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
|
|
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/wing-personal"
|
|
FileUtils.mkdir_p "#{CREW_DEST_HOME}/.wingpersonal#{@major_ver}"
|
|
FileUtils.touch "#{CREW_DEST_HOME}/.wingpersonal#{@major_ver}/ide.log"
|
|
system "tar xvf binary-package-#{version}.tar"
|
|
FileUtils.rm ["binary-package-#{version}.tar", 'wing-install.py']
|
|
FileUtils.mv Dir['*'], "#{CREW_DEST_PREFIX}/share/wing-personal"
|
|
FileUtils.ln_s "#{CREW_PREFIX}/share/wing-personal/wing-personal", "#{CREW_DEST_PREFIX}/bin/wing"
|
|
end
|
|
|
|
def self.postinstall
|
|
ExitMessage.add "\nType 'wing' to get started.\n".lightblue
|
|
end
|
|
|
|
def self.postremove
|
|
config_dir = "#{HOME}/.wingpersonal#{@major_ver}"
|
|
if Dir.exist? config_dir
|
|
print "Would you like to remove the #{config_dir} directory? [y/N] "
|
|
case $stdin.gets.chomp.downcase
|
|
when 'y', 'yes'
|
|
FileUtils.rm_rf config_dir
|
|
puts "#{config_dir} removed.".lightgreen
|
|
else
|
|
puts "#{config_dir} saved.".lightgreen
|
|
end
|
|
end
|
|
end
|
|
end
|