Skip to content

Commit 0c86ea4

Browse files
rmrfrs 0.8.8 (new formula)
1 parent 0fc2736 commit 0c86ea4

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

Formula/r/rmrfrs.rb

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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

0 commit comments

Comments
 (0)