homebrew-cask/Casks/dendroscope.rb

27 lines
820 B
Ruby

cask :v1 => 'dendroscope' do
version '3.3.2'
sha256 '21eccfc97aba6400ecb9d81f1bc02a1f8fc9c4cd07e6c09b5f310d414b00c7e2'
# tuebingen.de is the official download host per the vendor homepage
url "http://ab.inf.uni-tuebingen.de/data/software/dendroscope3/download/Dendroscope_macos_#{version.gsub('.','_')}.dmg"
name 'Dendroscope'
homepage 'http://dendroscope.org/'
license :gpl
preflight do
system "#{staged_path}/Dendroscope Installer.app/Contents/MacOS/JavaApplicationStub", '-q', '-dir', "#{staged_path}"
end
app 'Dendroscope.app'
uninstall_preflight do
system "#{staged_path}/Dendroscope Uninstaller.app/Contents/MacOS/JavaApplicationStub", '-q'
end
caveats <<-EOS.undent
#{token} requires Java. You can install the latest version with
brew cask install java
EOS
end