11class Vte3 < Formula
22 desc "Terminal emulator widget used by GNOME terminal"
33 homepage "https://wiki.gnome.org/Apps/Terminal/VTE"
4- url "https://download.gnome.org/sources/vte/0.80 /vte-0.80.3 .tar.xz"
5- sha256 "2e596fd3fbeabb71531662224e71f6a2c37f684426136d62854627276ef4f699 "
4+ url "https://download.gnome.org/sources/vte/0.82 /vte-0.82.0 .tar.xz"
5+ sha256 "b0718db3254730701b43bf5e113cbf8cdb2c14715d32ee1e8a707dc6eb70535f "
66 license "LGPL-2.0-or-later"
77
88 bottle do
9- sha256 arm64_tahoe : "b7c0b88e41be193199bf8ec11cc7ab8a4bf20aa5dbcc4781df48430c16a378f1"
10- sha256 arm64_sequoia : "960756705e94da9d25ec5dc389a9ba7cc2f91df7fc0a355c90f7d33643130e7a"
11- sha256 arm64_sonoma : "3cd96db88e4b28490f5a9a40e2bf12737e8bc30edf62272b3e43ce1d89ff44e7"
12- sha256 arm64_ventura : "8b7acea9ae8aa671d249e2a24cefa855dc3657e05099d45c32501d9ba6591f13"
13- sha256 sonoma : "e0f7aef9cd845c59965d333204040a8262e1637965d028e411b69a78634cc830"
14- sha256 ventura : "0237892df0c51fe19e26558ad6a25f6a98b9d4b4dee2282ca2fed48f02b2f7f8"
15- sha256 arm64_linux : "4af2394777d998b709a29dd57bb755703d875d210e7818c5addf932ed385e626"
16- sha256 x86_64_linux : "0931a6292223f35b4ad272caf0a0cfd8006e37e31c23e773ee286c43ec6a9919"
9+ sha256 arm64_tahoe : "4be86ff0c3effae53e376ef410389724b3742bc465865e98c8940ea5565fdf21"
10+ sha256 arm64_sequoia : "553e798e90e775ca7f92eef0cd3598c7e3f5665a9e615b3cc218ec8ab4cdec42"
11+ sha256 arm64_sonoma : "1b648685eaa217374b62f0e8fc3745fe64f69e197c5be17b9f87a006c8ba39de"
12+ sha256 sonoma : "ca4dffe8c311488908e7536ea48f40a93f19b6af8a14ea46f299bfcf980b367f"
13+ sha256 arm64_linux : "8dcf49395109d138f6982b192abdd47a3aaae58ee5e9b1345fbb3ec65a8951b6"
14+ sha256 x86_64_linux : "03d235d294b1965a645540f9d1a28b8409f717921408b935dae2d1f9f39b7b98"
1715 end
1816
1917 depends_on "fast_float" => :build
@@ -37,6 +35,7 @@ class Vte3 < Formula
3735 depends_on "lz4"
3836 depends_on "pango"
3937 depends_on "pcre2"
38+ depends_on "simdutf"
4039
4140 uses_from_macos "python" => :build
4241
@@ -56,17 +55,22 @@ class Vte3 < Formula
5655 depends_on "systemd"
5756 end
5857
58+ # https://en.cppreference.com/w/cpp/compiler_support/23.html#cpp_lib_string_resize_and_overwrite_202110L
5959 fails_with :gcc do
60- version "9"
61- cause "Requires C++20"
60+ version "11"
61+ cause "Requires C++23 basic_string::resize_and_overwrite()"
62+ end
63+
64+ # Backport removal of constexpr
65+ patch do
66+ url "https://gitlab.gnome.org/GNOME/vte/-/commit/3d9f771b895ab2e9904466aebe5ec74438e6f363.diff"
67+ sha256 "35d4b558f3c5908638dc59621cf154ee35e318e601d4e9540b7daed98fff7814"
6268 end
6369
6470 # submitted upstream as https://gitlab.gnome.org/tschoonj/vte/merge_requests/1
6571 patch :DATA
6672
6773 def install
68- ENV . llvm_clang if OS . mac? && MacOS . version <= :ventura
69-
7074 ENV [ "XML_CATALOG_FILES" ] = etc /"xml/catalog"
7175
7276 system "meson" , "setup" , "build" , "-Dgir=true" ,
@@ -125,3 +129,27 @@ def install
125129 include_directories: incs,
126130 dependencies: libvte_gtk3_deps,
127131 cpp_args: libvte_gtk3_cppflags,
132+ diff --git a/src/boxed.hh b/src/boxed.hh
133+ index 4d4b07b..a526b59 100644
134+ --- a/src/boxed.hh
135+ +++ b/src/boxed.hh
136+ @@ -19,6 +19,7 @@
137+ // but we need this for non-enum/integral/floating types.
138+
139+ #include <type_traits>
140+ +#include <utility>
141+
142+ namespace vte {
143+
144+ diff --git a/src/parser.hh b/src/parser.hh
145+ index 071e506..27c6d8f 100644
146+ --- a/src/parser.hh
147+ +++ b/src/parser.hh
148+ @@ -18,6 +18,7 @@
149+
150+ #pragma once
151+
152+ +#include <algorithm>
153+ #include <cstdint>
154+ #include <cstdio>
155+ #include <optional>
0 commit comments