cut v0.52.1
[Homebrew/homebrew-cask-versions.git] / Casks / git-annex.rb
blob2816b6465be5ddca9fbc7c97eb62177e5902accc
1 cask :v1 => 'git-annex' do
2   version :latest
3   sha256 :no_check
5   if MacOS.release <= :lion
6     url 'https://downloads.kitenet.net/git-annex/OSX/current/10.7.5_Lion/git-annex.dmg'
7   elsif MacOS.release == :mountain_lion
8     url 'https://downloads.kitenet.net/git-annex/OSX/current/10.8.2_Mountain_Lion/git-annex.dmg.bz2'
10     # This is a horrible hack to force the file extension.  The
11     # backend code should be fixed so that this is not needed.
12     preflight do
13       system '/bin/mv', '--', staged_path.join('git-annex-latest'), staged_path.join('git-annex-latest.dmg')
14     end
15     container :nested => 'git-annex-latest.dmg'
16   elsif MacOS.release == :mavericks
17     url 'https://downloads.kitenet.net/git-annex/OSX/current/10.9_Mavericks/git-annex.dmg'
18   else
19     url 'https://downloads.kitenet.net/git-annex/OSX/current/10.10_Yosemite/git-annex.dmg'
20   end
22   gpg "#{url}.sig",
23       :key_url => 'https://downloads.kitenet.net/git-annex/gpg-pubkey.asc'
24   homepage 'http://git-annex.branchable.com/'
25   license :unknown    # todo: change license and remove this comment; ':unknown' is a machine-generated placeholder
27   app 'git-annex.app'
28   binary 'git-annex.app/Contents/MacOS/git-annex'
29   binary 'git-annex.app/Contents/MacOS/git-annex-shell'
31   uninstall :launchctl => 'com.branchable.git-annex.assistant'
33   depends_on :macos => %w{
34                           :lion
35                           :mountain_lion
36                           :mavericks
37                           :yosemite
38                          }
40   caveats do
41     files_in_usr_local
42   end
43 end