mirror of
https://github.com/donl/homebrew-cask-versions.git
synced 2026-07-17 06:16:47 -06:00
accepts a single argument, which is a relative path to a pkg inside the extracted Cask; homebrew-cask will attempt to install this pkg after the Cask is extracted via `installer` because of the many different ways uninstallers work, this has several features: - `:script`: a script in the Cask which serves as an uninstaller (e.g. Vagrant, VirtualBox), uses `:args`, and `:input` keys to interact with said script - `:pkgutil`: a regexp which captures all package_ids installed by this cask; homebrew-cask will list all files installed under these ids and remove them - `:launchctl`: a list of bundle_ids for services that should be removed by homebrew-cask - `:files`: a fallback list of files to manually remove; helps when uninstallers miss something refs #661
8 lines
336 B
Ruby
8 lines
336 B
Ruby
class Virtualbox < Cask
|
|
url 'http://download.virtualbox.org/virtualbox/4.2.16/VirtualBox-4.2.16-86992-OSX.dmg'
|
|
homepage 'http://www.virtualbox.org'
|
|
version '4.2.16-86992'
|
|
sha1 '94a2f1ab48d2daa0b0a0640efd79ecdd5556c4d7'
|
|
install 'VirtualBox.pkg'
|
|
uninstall :script => 'VirtualBox_Uninstall.tool', :args => %w[--unattended]
|
|
end
|