Skip to content

Commit 9b5731d

Browse files
chenrui333carlocab
andcommitted
curl: remove conflicts_with wcurl
- use our formula for `wcurl` Co-authored-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Signed-off-by: Rui Chen <rui@chenrui.dev> Signed-off-by: Patrick Linnane <patrick@linnane.io>
1 parent 04ec952 commit 9b5731d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Formula/c/curl.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,16 @@ class Curl < Formula
6262
depends_on "libidn2"
6363
end
6464

65-
conflicts_with "wcurl", because: "both install `wcurl` binary"
66-
6765
def install
6866
tag_name = "curl-#{version.to_s.tr(".", "_")}"
6967
if build.stable? && stable.mirrors.grep(/github\.com/).first.exclude?(tag_name)
7068
odie "Tag name #{tag_name} is not found in the GitHub mirror URL! " \
7169
"Please make sure the URL is correct."
7270
end
7371

72+
# Use our `curl` formula with `wcurl`
73+
inreplace "scripts/wcurl", 'CMD="curl "', "CMD=\"#{opt_bin}/curl \""
74+
7475
system "autoreconf", "--force", "--install", "--verbose" if build.head?
7576

7677
args = %W[

0 commit comments

Comments
 (0)