We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d920b93 commit 4583800Copy full SHA for 4583800
Formula/rust.rb
@@ -1,6 +1,7 @@
1
class Rust < Formula
2
desc "Safe, concurrent, practical language"
3
homepage "https://www.rust-lang.org/"
4
+ revision 1
5
6
stable do
7
url "https://static.rust-lang.org/dist/rustc-1.18.0-src.tar.gz"
@@ -101,6 +102,14 @@ def install
101
102
rm_rf prefix/"lib/rustlib/install.log"
103
end
104
105
+ def post_install
106
+ Dir["#{lib}/rustlib/**/*.dylib"].each do |dylib|
107
+ chmod 0664, dylib
108
+ MachO::Tools.change_dylib_id(dylib, "@rpath/#{File.basename(dylib)}")
109
+ chmod 0444, dylib
110
+ end
111
112
+
113
test do
114
system "#{bin}/rustdoc", "-h"
115
(testpath/"hello.rs").write <<-EOS.undent
0 commit comments