Skip to content

Commit

Permalink
vte3 0.78.0
Browse files Browse the repository at this point in the history
vte3: add upstream build patch

Signed-off-by: Rui Chen <[email protected]>
  • Loading branch information
BrewTestBot authored and chenrui333 committed Oct 9, 2024
1 parent 20a0d65 commit f17385c
Showing 1 changed file with 57 additions and 3 deletions.
60 changes: 57 additions & 3 deletions Formula/v/vte3.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
class Vte3 < Formula

Check warning on line 1 in Formula/v/vte3.rb

View workflow job for this annotation

GitHub Actions / Linux

`brew linkage --cached --test --strict vte3` failed on Linux!

graphene

Check warning on line 1 in Formula/v/vte3.rb

View workflow job for this annotation

GitHub Actions / macOS 15-arm64

`brew linkage --cached --test --strict vte3` failed on macOS Sequoia (15) on Apple Silicon!

graphene

Check warning on line 1 in Formula/v/vte3.rb

View workflow job for this annotation

GitHub Actions / macOS 14-arm64

`brew linkage --cached --test --strict vte3` failed on macOS Sonoma (14) on Apple Silicon!

graphene

Check warning on line 1 in Formula/v/vte3.rb

View workflow job for this annotation

GitHub Actions / macOS 14-x86_64

`brew linkage --cached --test --strict vte3` failed on macOS Sonoma (14)!

graphene

Check warning on line 1 in Formula/v/vte3.rb

View workflow job for this annotation

GitHub Actions / macOS 13-arm64

`brew linkage --cached --test --strict vte3` failed on macOS Ventura (13) on Apple Silicon!

graphene

Check warning on line 1 in Formula/v/vte3.rb

View workflow job for this annotation

GitHub Actions / macOS 13-x86_64

`brew linkage --cached --test --strict vte3` failed on macOS Ventura (13)!

graphene
desc "Terminal emulator widget used by GNOME terminal"
homepage "https://wiki.gnome.org/Apps/Terminal/VTE"
url "https://download.gnome.org/sources/vte/0.76/vte-0.76.4.tar.xz"
sha256 "9c52d1da6c6f7409289351fc1cba8948cd3b47d048cbfede763a0f75b77453cc"
url "https://download.gnome.org/sources/vte/0.78/vte-0.78.0.tar.xz"
sha256 "07f09c6228a8bb3c1599dd0f5a6ec797b30d3010c3ac91cf21b69d9635dfaf7c"
license "LGPL-2.0-or-later"
revision 1

bottle do
sha256 arm64_sequoia: "4468041d31d005bde0d94d6eabcccb487d9695677da2c991d282ad3d99e4eb75"
Expand Down Expand Up @@ -35,12 +34,29 @@ class Vte3 < Formula
depends_on "pango"
depends_on "pcre2"

uses_from_macos "python" => :build

on_macos do
depends_on "llvm" => :build if DevelopmentTools.clang_build_version <= 1500
depends_on "gettext"
# Undefined symbols for architecture x86_64:
# "std::__1::__libcpp_verbose_abort(char const*, ...)", referenced from: ...
depends_on "llvm" if DevelopmentTools.clang_build_version <= 1400

# Use fast_float implementation for from_chars
# upstream bug report, https://gitlab.gnome.org/GNOME/vte/-/issues/2823
patch do
url "https://gitlab.gnome.org/kraj/vte/-/commit/c90b078ecf4382458a9af44d765d710eb46b0453.diff"
sha256 "fd8fd85339df1aa5ffb2617d6e67d26e26abb9caeb06ef7766b13341231c2c79"
end
patch do
url "https://gitlab.gnome.org/kraj/vte/-/commit/2a32e43e43b04771a3357d3d4ccbafa7714e0114.diff"
sha256 "f69f103b19de93f94fca05dea5a151b4109085ce716472acddb9a112502437d4"
end
patch do
url "https://gitlab.gnome.org/kraj/vte/-/commit/705e019713539bdaf2c50763ba585484c6253a59.diff"
sha256 "d09c512852a65a81f56b07c013ee0cc0c17b9dcbf63d9fcc2ac58173092bb80b"
end
end

on_linux do
Expand Down Expand Up @@ -73,6 +89,11 @@ def install
end
end

if ENV.compiler == :clang
ENV.append "CXXFLAGS", "-stdlib=libc++"
ENV.append "LDFLAGS", "-stdlib=libc++"
end

ENV["XML_CATALOG_FILES"] = etc/"xml/catalog"

system "meson", "setup", "build", "-Dgir=true",
Expand Down Expand Up @@ -133,3 +154,36 @@ def install
include_directories: incs,
dependencies: libvte_gtk3_deps,
cpp_args: libvte_gtk3_cppflags,
diff --git a/src/color-test.cc b/src/color-test.cc
index 0ed9089..1bfad31 100644
--- a/src/color-test.cc
+++ b/src/color-test.cc
@@ -165,7 +165,7 @@ static void
test_color_to_string (void)
{
auto test = [](std::string str,
- bool alpha = false) constexpr noexcept -> void
+ bool alpha = false) noexcept -> void
{
auto const value = parse<rgba>(str);
assert(value);
diff --git a/src/meson.build b/src/meson.build
index 228ecf0..fba5958 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -73,6 +73,7 @@ minifont_coverage_sources = custom_target(
),
capture: false,
command: [
+ python,
files('minifont-coverage.py'),
'--output', '@OUTPUT@',
'@INPUT@',
@@ -596,6 +597,7 @@ test_minifont_sources += custom_target(
),
capture: false,
command: [
+ python,
files('minifont-coverage.py'),
'--output', '@OUTPUT@',
'--tests',

0 comments on commit f17385c

Please sign in to comment.