Skip to content

Commit 6bd7634

Browse files
committed
rofs-filtered: update to use modern cmake syntax
Signed-off-by: Rui Chen <[email protected]>
1 parent 4ae955f commit 6bd7634

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Formula/r/rofs-filtered.rb

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,12 @@ class RofsFiltered < Formula
1515
depends_on :linux # on macOS, requires closed-source macFUSE
1616

1717
def install
18-
mkdir "build" do
19-
system "cmake", "..", "-DCMAKE_INSTALL_SYSCONFDIR=#{etc}", *std_cmake_args
20-
system "make", "install"
21-
end
18+
system "cmake", "-S", ".", "-B", "build", "-DCMAKE_INSTALL_SYSCONFDIR=#{etc}", *std_cmake_args
19+
system "cmake", "--build", "build"
20+
system "cmake", "--install", "build"
21+
end
22+
23+
test do
24+
assert_match version.to_s, shell_output("#{bin}/rofs-filtered --version 2>&1")
2225
end
2326
end

0 commit comments

Comments
 (0)