@@ -2,6 +2,7 @@ class Boost < Formula
2
2
desc "Collection of portable C++ source libraries"
3
3
homepage "https://www.boost.org/"
4
4
license "BSL-1.0"
5
+ revision 1
5
6
head "https://github.com/boostorg/boost.git" , branch : "master"
6
7
7
8
stable do
@@ -30,18 +31,15 @@ class Boost < Formula
30
31
end
31
32
32
33
bottle do
33
- rebuild 2
34
- sha256 cellar : :any , arm64_sequoia : "c05f399132e5fdca2e010ba1d9af155e956a8ed70dcfd57aa285a772efac3efa"
35
- sha256 cellar : :any , arm64_sonoma : "8f6d3d3c76708a287c0157a0e48f0e2b8c7175ee23269c03c8eb0ad7c003dc86"
36
- sha256 cellar : :any , arm64_ventura : "7eb491c2e34ff445b92883bba4483f085c35eeb40cc6f021636d09c9fc3b7b25"
37
- sha256 cellar : :any , arm64_monterey : "e1942964bba4803b5c01bf1b69f1fa15908e4f1372732f7bf2edb5fa1be54a75"
38
- sha256 cellar : :any , sonoma : "eb5a1eab5cfa550707a4e2148451c9a9c2b0ecdd2b7a4f4cf786cc830055e80c"
39
- sha256 cellar : :any , ventura : "f40318ac4b779df9fbb13bed9166a39eb9819438fe8b9c4b764cca973f739295"
40
- sha256 cellar : :any , monterey : "bd5f3394381a43315858c033adfbc430ead8e53d607686efef760637fe77298f"
41
- sha256 cellar : :any_skip_relocation , x86_64_linux : "9b54de744fca5203371e41bbe08f18fe347d9873558b9b0e1c40b60e4bc5515c"
34
+ sha256 cellar : :any , arm64_sequoia : "7ed42f5454994b547066d52549a57edd157ca6f80a9f2d73fe69eec4a7bbc5ee"
35
+ sha256 cellar : :any , arm64_sonoma : "70a85cfceb6b54c0ace4956b937aae3cde81a874741f5d9aa5938ffdd7de3d77"
36
+ sha256 cellar : :any , arm64_ventura : "da2a9898cde2900e528109b4e0c4db3e26c3f5c7f8d0830c9523c4b3bc9d44a0"
37
+ sha256 cellar : :any , sonoma : "ccd461109e3760cefcc170e8ec75c166e780aba32fa852581e2f88e777bd40aa"
38
+ sha256 cellar : :any , ventura : "6c3b8d51bcbae0c803953304c8c8d9c5743e29df9659b9a28d9fc5f0a6df24e9"
39
+ sha256 cellar : :any_skip_relocation , x86_64_linux : "cd0a090c857598cd14490425b8a80351355e23c064d57d7e0a29ca1ea016d9fd"
42
40
end
43
41
44
- depends_on "icu4c"
42
+ depends_on "icu4c@75 "
45
43
depends_on "xz"
46
44
depends_on "zstd"
47
45
@@ -59,11 +57,11 @@ def install
59
57
end
60
58
61
59
# libdir should be set by --prefix but isn't
62
- icu4c_prefix = Formula [ "icu4c" ] . opt_prefix
60
+ icu4c = deps . map ( & :to_formula ) . find { | f | f . name . match? ( /^icu4c@ \d +$/ ) }
63
61
bootstrap_args = %W[
64
62
--prefix=#{ prefix }
65
63
--libdir=#{ lib }
66
- --with-icu=#{ icu4c_prefix }
64
+ --with-icu=#{ icu4c . opt_prefix }
67
65
]
68
66
69
67
# Handle libraries that will not be built.
@@ -88,9 +86,10 @@ def install
88
86
link=shared,static
89
87
]
90
88
91
- # Boost is using "clang++ -x c" to select C compiler which breaks C++14
92
- # handling using ENV.cxx14. Using "cxxflags" and "linkflags" still works.
93
- args << "cxxflags=-std=c++14"
89
+ # Boost is using "clang++ -x c" to select C compiler which breaks C++
90
+ # handling in superenv. Using "cxxflags" and "linkflags" still works.
91
+ # C++17 is due to `icu4c`.
92
+ args << "cxxflags=-std=c++17"
94
93
args << "cxxflags=-stdlib=libc++" << "linkflags=-stdlib=libc++" if ENV . compiler == :clang
95
94
96
95
system "./bootstrap.sh" , *bootstrap_args
0 commit comments