cut v0.52.1
[Homebrew/homebrew-cask-versions.git] / Casks / cargo.rb
blobe9c7c0c4cdb1305dd7d54da538d91b90073b5eba
1 cask :v1 => 'cargo' do
2   version :latest
3   sha256 :no_check
5   module Utils
6     def self.distname
7       'cargo-nightly-x86_64-apple-darwin'
8     end
9   end
11   url "http://static.rust-lang.org/cargo-dist/#{Utils.distname}.tar.gz"
12   homepage 'http://www.crates.io/'
13   license :oss
15   binary "#{Utils.distname}/bin/cargo"
17   artifact "#{Utils.distname}/share/man/man1/cargo.1", :target => '/usr/local/share/man/man1/cargo.1'
18   %w{LICENSE-APACHE LICENSE-MIT LICENSE-THIRD-PARTY README.md}.each do |doc_file|
19     artifact "#{Utils.distname}/share/doc/cargo/#{doc_file}", :target => "/usr/local/share/doc/cargo/#{doc_file}"
20   end
21 end