cargo.rb: do not hardcode /usr/local (#38260)

This commit is contained in:
Vítor Galvão 2017-09-05 17:56:33 +01:00 committed by GitHub
parent 698b6f08c9
commit aaefb103db
1 changed files with 2 additions and 2 deletions

View File

@ -14,8 +14,8 @@ cask 'cargo' do
homepage 'https://crates.io/'
binary "#{Utils.distname}/cargo/bin/cargo"
artifact "#{Utils.distname}/cargo/share/man/man1/cargo.1", target: '/usr/local/share/man/man1/cargo.1'
artifact "#{Utils.distname}/cargo/share/man/man1/cargo.1", target: "#{HOMEBREW_PREFIX}/share/man/man1/cargo.1"
['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}"
artifact "#{Utils.distname}/cargo/share/doc/cargo/#{doc_file}", target: "#{HOMEBREW_PREFIX}/share/doc/cargo/#{doc_file}"
end
end