2013-11-25 07:50:26 +08:00
|
|
|
class GitAnnex < Cask
|
|
|
|
if MacOS.version == :mavericks
|
|
|
|
url 'http://downloads.kitenet.net/git-annex/OSX/current/10.9_Mavericks/git-annex.dmg'
|
|
|
|
else
|
|
|
|
url 'http://downloads.kitenet.net/git-annex/OSX/current/10.8.2_Mountain_Lion/git-annex.dmg.bz2'
|
2014-03-25 00:48:26 +08:00
|
|
|
# This is a horrible hack to force the file extension. The
|
|
|
|
# backend code should be fixed so that this is not needed.
|
|
|
|
before_install do
|
2014-05-14 21:13:18 +08:00
|
|
|
system '/bin/mv', '--', destination_path.join('git-annex-latest'), destination_path.join('git-annex-latest.dmg')
|
2014-03-25 00:48:26 +08:00
|
|
|
end
|
|
|
|
nested_container 'git-annex-latest.dmg'
|
2013-11-25 07:50:26 +08:00
|
|
|
end
|
|
|
|
homepage 'http://git-annex.branchable.com/'
|
2013-11-25 12:29:42 +08:00
|
|
|
version 'latest'
|
2014-05-08 20:51:31 +08:00
|
|
|
sha256 :no_check
|
2013-11-25 07:50:26 +08:00
|
|
|
link 'git-annex.app'
|
2014-02-25 01:08:28 +08:00
|
|
|
binary 'git-annex.app/Contents/MacOS/git-annex'
|
2014-05-01 06:40:06 +08:00
|
|
|
binary 'git-annex.app/Contents/MacOS/git-annex-shell'
|
2014-01-15 06:41:11 +08:00
|
|
|
caveats do
|
2014-02-25 01:08:28 +08:00
|
|
|
files_in_usr_local
|
2013-11-25 07:50:26 +08:00
|
|
|
end
|
|
|
|
end
|