11class Proxygen < Formula
22 desc "Collection of C++ HTTP libraries"
33 homepage "https://github.com/facebook/proxygen"
4- url "https://github.com/facebook/proxygen/releases/download/v2025.08.25 .00/proxygen-v2025.08.25 .00.tar.gz"
5- sha256 "e7397cbe93bb8567438f033bc5b1e407b074061c72783d3f55388e416b63fcf0 "
4+ url "https://github.com/facebook/proxygen/releases/download/v2025.09.01 .00/proxygen-v2025.09.01 .00.tar.gz"
5+ sha256 "f8602dfd40e4d2a72726c5f63cc430a6abac7e72fa005739be695b3d5d4fc31e "
66 license "BSD-3-Clause"
77 head "https://github.com/facebook/proxygen.git" , branch : "main"
88
99 bottle do
10- rebuild 1
11- sha256 arm64_sequoia : "6bb39c37508260f20776ded6d8542b966dcc57855f067aa0bab6da8a425fcef7"
12- sha256 arm64_sonoma : "19cbde3ce930b7a9150a87cfbd67bb73fb6320436d5466d7d5762a525b386ad3"
13- sha256 arm64_ventura : "6d525af161582983242795d367b32f0cbc1d8edaad4632a6a09e64c426b09d41"
14- sha256 cellar : :any , sonoma : "5c5694ffc6401602394ab1227231cd38071f6c545a41e3933659da51988a9e3a"
15- sha256 cellar : :any , ventura : "bf12c14c6124f089c6b6821803e7a61ab9e697acb475e68d5e6472d4e3882cab"
16- sha256 cellar : :any_skip_relocation , arm64_linux : "c0cb2b7dcdbb48a2d49b034f6b4ef5750cd0b57dfcb9370ca3b1efd4b77e8ab9"
17- sha256 cellar : :any_skip_relocation , x86_64_linux : "f9ddf97e3cbb525994f69c0cbd4e530dedc266b819d4438ab092e01ac13f2404"
10+ sha256 arm64_sequoia : "c6f97eab85d0a8c7c98fdb955f4608a749e12aab6aac6d95d37bcb55266c869e"
11+ sha256 arm64_sonoma : "4046d4e325229150a4b3bdc5a47f862b61e6433bd616d23fb0f56c6492d10547"
12+ sha256 arm64_ventura : "0293c5d11f02ea35cdcf5459389c306bb62c445eb2692fd7d26739f365558475"
13+ sha256 cellar : :any , sonoma : "eff39e7c46bd810b9978e0d43c879e20dedcc13a5560db4350f9e3cab67cbede"
14+ sha256 cellar : :any , ventura : "2de9be28409b21a7e33d10bf239f7e7c98d47d76fa31701efa72c4df9918603e"
15+ sha256 cellar : :any_skip_relocation , arm64_linux : "d22132e208c9f4e7c220cc590702520ad99b3309b5c4a2ea84b4296e706a0a56"
16+ sha256 cellar : :any_skip_relocation , x86_64_linux : "e082af77c752ddb30c67107a49641f41125c4227baa2afcd7e77e7ea9f83846b"
1817 end
1918
2019 depends_on "cmake" => :build
@@ -37,26 +36,16 @@ class Proxygen < Formula
3736
3837 conflicts_with "hq" , because : "both install `hq` binaries"
3938
40- # Fix build with Boost 1.89.0, pr ref: https://github.com/facebook/proxygen/pull/570
41- patch do
42- url "https://github.com/facebook/proxygen/commit/10af948d7ff29bc8601e83127a9d9ab1c441fc58.patch?full_index=1"
43- sha256 "161937c94727ab34976d5f2f602e6b7fcaecc7c86236ce0f6cbd809a5f852379"
44- end
45-
46- # Fix various symbol resolution errors.
47- # https://github.com/facebook/proxygen/pull/572
48- patch do
49- url "https://github.com/facebook/proxygen/commit/7ad708b2206e4400240af5fd08e429b1b0cbedb3.patch?full_index=1"
50- sha256 "4e64f687017888af90c4c6e691923db75c1e067fc8b722b038d05ee67707767c"
51- end
52-
5339 # Fix name of `liblibhttperf2`.
5440 # https://github.com/facebook/proxygen/pull/574
5541 patch do
5642 url "https://github.com/facebook/proxygen/commit/415ed3320f3d110f1d8c6846ca0582a4db7d225a.patch?full_index=1"
5743 sha256 "4ea28c2f87732526afad0f2b2b66be330ad3d4fc18d0f20eb5e1242b557a6fcf"
5844 end
5945
46+ # Fix build with Boost 1.89.0, pr ref: https://github.com/facebook/proxygen/pull/570
47+ patch :DATA
48+
6049 def install
6150 args = [ "-DBUILD_SHARED_LIBS=ON" , "-DCMAKE_INSTALL_RPATH=#{ rpath } " ]
6251 if OS . mac?
@@ -81,3 +70,56 @@ def install
8170 Process . kill "TERM" , pid
8271 end
8372end
73+
74+ __END__
75+ diff --git i/CMakeLists.txt w/CMakeLists.txt
76+ index cc189df..9d61345 100644
77+ --- i/CMakeLists.txt
78+ +++ w/CMakeLists.txt
79+ @@ -80,17 +80,21 @@ find_package(ZLIB REQUIRED)
80+ find_package(OpenSSL REQUIRED)
81+ find_package(Threads)
82+ find_package(c-ares REQUIRED)
83+ -find_package(Boost 1.58 REQUIRED
84+ - COMPONENTS
85+ +set(PROXYGEN_BOOST_COMPONENTS
86+ iostreams
87+ context
88+ filesystem
89+ program_options
90+ regex
91+ - system
92+ thread
93+ chrono
94+ )
95+ +find_package(Boost 1.58 REQUIRED COMPONENTS ${PROXYGEN_BOOST_COMPONENTS})
96+ +if (Boost_MAJOR_VERSION EQUAL 1 AND Boost_MINOR_VERSION LESS 69)
97+ + list(APPEND PROXYGEN_BOOST_COMPONENTS system)
98+ + find_package(Boost 1.58 REQUIRED COMPONENTS ${PROXYGEN_BOOST_COMPONENTS})
99+ +endif()
100+ +string(REPLACE ";" " " PROXYGEN_BOOST_COMPONENTS "${PROXYGEN_BOOST_COMPONENTS}")
101+
102+ list(APPEND
103+ _PROXYGEN_COMMON_COMPILE_OPTIONS
104+ diff --git i/cmake/proxygen-config.cmake.in w/cmake/proxygen-config.cmake.in
105+ index 8899242..114aaf7 100644
106+ --- i/cmake/proxygen-config.cmake.in
107+ +++ w/cmake/proxygen-config.cmake.in
108+ @@ -31,16 +31,7 @@ find_dependency(Fizz)
109+ find_dependency(ZLIB)
110+ find_dependency(OpenSSL)
111+ find_dependency(Threads)
112+ -find_dependency(Boost 1.58 REQUIRED
113+ - COMPONENTS
114+ - iostreams
115+ - context
116+ - filesystem
117+ - program_options
118+ - regex
119+ - system
120+ - thread
121+ -)
122+ +find_dependency(Boost 1.58 REQUIRED COMPONENTS @PROXYGEN_BOOST_COMPONENTS@)
123+ find_dependency(c-ares REQUIRED)
124+
125+ if(NOT TARGET proxygen::proxygen)
0 commit comments