homebrew-cask/Casks/cargo.rb

22 lines
624 B
Ruby
Raw Normal View History

2014-11-14 01:25:32 +08:00
cask :v1 => 'cargo' do
2014-10-10 08:26:24 +08:00
version :latest
sha256 :no_check
2014-10-10 22:42:22 +08:00
module Utils
2014-10-10 08:26:24 +08:00
def self.distname
'cargo-nightly-x86_64-apple-darwin'
end
end
2015-01-17 11:26:07 +08:00
url "https://static.rust-lang.org/cargo-dist/#{Utils.distname}.tar.gz"
homepage 'https://crates.io/'
2014-10-10 08:26:24 +08:00
license :oss
binary "#{Utils.distname}/bin/cargo"
artifact "#{Utils.distname}/share/man/man1/cargo.1", :target => '/usr/local/share/man/man1/cargo.1'
%w{LICENSE-APACHE LICENSE-MIT LICENSE-THIRD-PARTY README.md}.each do |doc_file|
artifact "#{Utils.distname}/share/doc/cargo/#{doc_file}", :target => "/usr/local/share/doc/cargo/#{doc_file}"
end
end