File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 1+ class Rmrfrs < Formula
2+ desc "Filesystem cleaning tool"
3+ homepage "https://github.com/trinhminhtriet/rmrfrs"
4+ url "https://github.com/trinhminhtriet/rmrfrs/archive/refs/tags/v0.8.8.tar.gz"
5+ sha256 "50fb55c8dba436998de87725427ee336045a2ee67d7ef9430ce875fcf8826d51"
6+ license "MIT"
7+ head "https://github.com/trinhminhtriet/rmrfrs.git" , branch : "master"
8+
9+ depends_on "rust" => :build
10+ depends_on "rustup" => :test
11+
12+ def install
13+ system "cargo" , "install" , *std_cargo_args ( path : "rmrfrs" )
14+ end
15+
16+ test do
17+ # Show that we can use a different toolchain than the one provided by the `rust` formula.
18+ # https://github.com/Homebrew/homebrew-core/pull/134074#pullrequestreview-1484979359
19+ ENV . prepend_path "PATH" , Formula [ "rustup" ] . bin
20+ system "rustup" , "set" , "profile" , "minimal"
21+ system "rustup" , "default" , "beta"
22+
23+ system "cargo" , "init"
24+ system "cargo" , "build"
25+ assert_path_exists testpath /"target"
26+ system bin /"rmrfrs" , "--all" , testpath
27+ refute_path_exists testpath /"target"
28+ end
29+ end
You can’t perform that action at this time.
0 commit comments