Skip to content

Commit 7c9f842

Browse files
committed
c-ares: reduce build dependency tree
1 parent d343f7a commit 7c9f842

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Formula/c-ares.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ class CAres < Formula
33
homepage "https://c-ares.org/"
44
# Check whether patch for `node.rb` can be removed at version bump
55
url "https://c-ares.org/download/c-ares-1.17.2.tar.gz"
6+
mirror "https://github.com/c-ares/c-ares/releases/download/cares-1_17_2/c-ares-1.17.2.tar.gz"
7+
mirror "http://fresh-center.net/linux/misc/dns/c-ares-1.17.2.tar.gz"
8+
mirror "http://fresh-center.net/linux/misc/dns/legacy/c-ares-1.17.2.tar.gz"
69
sha256 "4803c844ce20ce510ef0eb83f8ea41fa24ecaae9d280c468c582d2bb25b3913d"
710
license "MIT"
811
head "https://github.com/c-ares/c-ares.git", branch: "main"
@@ -21,14 +24,11 @@ class CAres < Formula
2124
end
2225

2326
depends_on "cmake" => :build
24-
depends_on "ninja" => :build
2527

2628
def install
27-
mkdir "build" do
28-
system "cmake", "..", "-GNinja", *std_cmake_args
29-
system "ninja"
30-
system "ninja", "install"
31-
end
29+
system "cmake", "-S", ".", "-B", "build", *std_cmake_args
30+
system "cmake", "--build", "build"
31+
system "cmake", "--install", "build"
3232
end
3333

3434
test do

0 commit comments

Comments
 (0)