homebrew-cask/Casks/cargo.rb

22 lines
716 B
Ruby
Raw Normal View History

2015-12-18 09:15:28 +08:00
cask '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
2016-07-05 06:36:11 +08:00
# rust-lang.org/cargo-dist was verified as official when first introduced to the cask
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
2015-02-20 23:45:29 +08:00
binary "#{Utils.distname}/cargo/bin/cargo"
artifact "#{Utils.distname}/cargo/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}/cargo/share/doc/cargo/#{doc_file}", target: "/usr/local/share/doc/cargo/#{doc_file}"
2014-10-10 08:26:24 +08:00
end
end