homebrew-cask/Casks/cargo.rb

23 lines
657 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"
2015-01-30 03:20:57 +08:00
name 'Cargo'
2015-01-17 11:26:07 +08:00
homepage 'https://crates.io/'
2014-10-10 08:26:24 +08:00
license :oss
2015-02-20 23:45:29 +08:00
binary "#{Utils.distname}/cargo/bin/cargo"
2014-10-10 08:26:24 +08:00
2015-02-20 23:45:29 +08:00
artifact "#{Utils.distname}/cargo/share/man/man1/cargo.1", :target => '/usr/local/share/man/man1/cargo.1'
2014-10-10 08:26:24 +08:00
%w{LICENSE-APACHE LICENSE-MIT LICENSE-THIRD-PARTY README.md}.each do |doc_file|
2015-02-20 23:45:29 +08:00
artifact "#{Utils.distname}/cargo/share/doc/cargo/#{doc_file}", :target => "/usr/local/share/doc/cargo/#{doc_file}"
2014-10-10 08:26:24 +08:00
end
end