@@ -3,13 +3,24 @@ class Curl < Formula
3
3
homepage "https://curl.se"
4
4
# Don't forget to update both instances of the version in the GitHub mirror URL.
5
5
# `url` goes below this comment when the `stable` block is removed.
6
- url "https://curl.se/download/curl-8.13.0.tar.bz2"
7
- mirror "https://github.com/curl/curl/releases/download/curl-8_13_0/curl-8.13.0.tar.bz2"
8
- mirror "http://fresh-center.net/linux/www/curl-8.13.0.tar.bz2"
9
- mirror "http://fresh-center.net/linux/www/legacy/curl-8.13.0.tar.bz2"
10
- sha256 "e0d20499260760f9865cb6308928223f4e5128910310c025112f592a168e1473"
6
+
11
7
license "curl"
12
8
9
+ stable do
10
+ url "https://curl.se/download/curl-8.14.0.tar.bz2"
11
+ mirror "https://github.com/curl/curl/releases/download/curl-8_14_0/curl-8.14.0.tar.bz2"
12
+ mirror "http://fresh-center.net/linux/www/curl-8.14.0.tar.bz2"
13
+ mirror "http://fresh-center.net/linux/www/legacy/curl-8.14.0.tar.bz2"
14
+ sha256 "efa1403c5ac4490c8d50fc0cabe97710abb1bf2a456e375a56d960b20a1cba80"
15
+
16
+ # fix https://github.com/curl/curl/issues/17473
17
+ # curl_multi_add_handle() returning OOM when using more than 400 handles
18
+ patch do
19
+ url "https://github.com/curl/curl/commit/d16ccbd55de80c271fe822f4ba8b6271fd9166ff.patch?full_index=1"
20
+ sha256 "d30d4336e2422bedba66600b4c05a3bed7f9c51c1163b75d9ee8a27424104745"
21
+ end
22
+ end
23
+
13
24
livecheck do
14
25
url "https://curl.se/download/"
15
26
regex ( /href=.*?curl[._-]v?(.*?)\. t/i )
@@ -52,18 +63,6 @@ class Curl < Formula
52
63
depends_on "libidn2"
53
64
end
54
65
55
- # Fixes failure to download certdata.txt due to a redirect
56
- patch do
57
- url "https://github.com/curl/curl/commit/eeed87f0563d3ca73ff53813418d1f9f03c81fe5.patch?full_index=1"
58
- sha256 "f7461a8042ca8ef86492338458ccd79ee286d17773487513928d7ed6ae25818c"
59
- end
60
-
61
- # Fixes build on macOS 10.12 and earlier
62
- patch do
63
- url "https://github.com/curl/curl/commit/d7914f75aa8ecdd68cdbb130c1351a7432597fe4.patch?full_index=1"
64
- sha256 "2ba45be5c9238abc914c2a47cd604cbd08972583b310c9079b7b7909b352001b"
65
- end
66
-
67
66
def install
68
67
tag_name = "curl-#{ version . to_s . tr ( "." , "_" ) } "
69
68
if build . stable? && stable . mirrors . grep ( /github\. com/ ) . first . exclude? ( tag_name )
0 commit comments