2014-11-14 01:25:56 +08:00
|
|
|
cask :v1 => 'git-annex' do
|
2014-10-07 22:43:00 +08:00
|
|
|
version :latest
|
|
|
|
sha256 :no_check
|
|
|
|
|
2015-01-05 23:40:18 +08:00
|
|
|
if MacOS.release <= :lion
|
2015-01-18 03:42:53 +08:00
|
|
|
# kitenet.net is the official download host per the vendor homepage
|
2014-12-26 01:45:57 +08:00
|
|
|
url 'https://downloads.kitenet.net/git-annex/OSX/current/10.7.5_Lion/git-annex.dmg'
|
|
|
|
elsif MacOS.release == :mountain_lion
|
2015-01-18 03:42:53 +08:00
|
|
|
# kitenet.net is the official download host per the vendor homepage
|
2014-12-26 01:45:57 +08:00
|
|
|
url 'https://downloads.kitenet.net/git-annex/OSX/current/10.8.2_Mountain_Lion/git-annex.dmg.bz2'
|
2014-10-07 22:43:00 +08:00
|
|
|
|
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.
|
2014-09-09 20:55:27 +08:00
|
|
|
preflight do
|
2014-11-21 22:37:55 +08:00
|
|
|
system '/bin/mv', '--', staged_path.join('git-annex-latest'), staged_path.join('git-annex-latest.dmg')
|
2014-03-25 00:48:26 +08:00
|
|
|
end
|
2014-10-09 23:40:46 +08:00
|
|
|
container :nested => 'git-annex-latest.dmg'
|
2014-12-26 01:45:57 +08:00
|
|
|
elsif MacOS.release == :mavericks
|
2015-01-18 03:42:53 +08:00
|
|
|
# kitenet.net is the official download host per the vendor homepage
|
2014-12-26 01:45:57 +08:00
|
|
|
url 'https://downloads.kitenet.net/git-annex/OSX/current/10.9_Mavericks/git-annex.dmg'
|
2014-08-09 22:10:15 +08:00
|
|
|
else
|
2015-01-18 03:42:53 +08:00
|
|
|
# kitenet.net is the official download host per the vendor homepage
|
2015-01-05 23:40:18 +08:00
|
|
|
url 'https://downloads.kitenet.net/git-annex/OSX/current/10.10_Yosemite/git-annex.dmg'
|
2013-11-25 07:50:26 +08:00
|
|
|
end
|
2014-10-07 22:43:00 +08:00
|
|
|
|
2014-09-16 01:53:37 +08:00
|
|
|
gpg "#{url}.sig",
|
|
|
|
:key_url => 'https://downloads.kitenet.net/git-annex/gpg-pubkey.asc'
|
2015-01-30 04:26:47 +08:00
|
|
|
name 'git-annex'
|
2015-06-29 14:32:18 +08:00
|
|
|
homepage 'https://git-annex.branchable.com/'
|
2015-09-01 00:54:19 +08:00
|
|
|
license :gpl
|
2014-10-07 22:43:00 +08:00
|
|
|
|
2014-09-16 00:05:37 +08:00
|
|
|
app '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-12-26 01:45:57 +08:00
|
|
|
|
2014-12-30 22:54:50 +08:00
|
|
|
uninstall :launchctl => 'com.branchable.git-annex.assistant'
|
|
|
|
|
2014-12-26 01:45:57 +08:00
|
|
|
depends_on :macos => %w{
|
|
|
|
:lion
|
|
|
|
:mountain_lion
|
|
|
|
:mavericks
|
|
|
|
:yosemite
|
|
|
|
}
|
|
|
|
|
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
|