Skip to content

Commit

Permalink
gtk-vnc: update 1.3.1 bottle.
Browse files Browse the repository at this point in the history
  • Loading branch information
gromgit committed Jan 10, 2023
1 parent c47b1b3 commit a9e0e6b
Showing 1 changed file with 4 additions and 36 deletions.
40 changes: 4 additions & 36 deletions Formula/gtk-vnc.rb
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
class GtkVnc < Formula
desc "VNC viewer widget for GTK"
homepage "https://wiki.gnome.org/Projects/gtk-vnc"
url "https://download.gnome.org/sources/gtk-vnc/1.2/gtk-vnc-1.2.0.tar.xz"
sha256 "7aaf80040d47134a963742fb6c94e970fcb6bf52dc975d7ae542b2ef5f34b94a"
url "https://download.gnome.org/sources/gtk-vnc/1.3/gtk-vnc-1.3.1.tar.xz"
sha256 "512763ac4e0559d0158b6682ca5dd1a3bd633f082f5e4349d7158e6b5f80f1ce"
license "LGPL-2.1-or-later"

bottle do
sha256 arm64_monterey: "145945a233cb938e7f0171ad9339b11ef1d61a9f19af72201c12d7305175b50c"
sha256 arm64_big_sur: "b07922526eaea0881a6394907b9cc332fc37852c5206a92692468243d13a2ac8"
sha256 monterey: "80799a6281038d4100a8709fc45a69c891d937a681385fe4fdd32dc2c478777b"
sha256 big_sur: "f4961c57ac8d69639f2f0a95d307ec85b0cee23f204666989853382158bf8986"
sha256 catalina: "16cc1407520b9b5a6454507e1db7f7226d78320c353cd9f45130c9ba7883567c"
sha256 mojave: "218453c1fa7ae8b188ecbfe0ca408beefff3fbf168fa1fdd397ac73c4336c031"
sha256 x86_64_linux: "9ac4316ffc6dca96ef488bac50dae54d5a733f9bdd4f11da945fc90fc2f47981"
root_url "https://github.com/gromgit/homebrew-core-mojave/releases/download/gtk-vnc"
sha256 mojave: "a70a80ef57602259661209819013b117ef2357d3674071bafd04cc665455a464"
end

depends_on "gettext" => :build
Expand All @@ -24,18 +19,6 @@ class GtkVnc < Formula
depends_on "gtk+3"
depends_on "libgcrypt"

# Fix configuration failure with -Dwith-vala=disabled
# Remove in the next release.
patch do
url "https://gitlab.gnome.org/GNOME/gtk-vnc/-/commit/bdab05584bab5c2ecdd508df49b03e80aedd19fc.diff"
sha256 "1b260157be888d9d8e6053e6cfd7ae92a666c306f04f4f23a0a1ed68a06c777d"
end

# Fix compile failure in src/vncdisplaykeymap.c
# error: implicit declaration of function 'GDK_IS_QUARTZ_DISPLAY' is invalid in C99
# https://gitlab.gnome.org/GNOME/gtk-vnc/-/issues/16
patch :DATA

def install
mkdir "build" do
system "meson", *std_meson_args, "-Dwith-vala=disabled", ".."
Expand All @@ -48,18 +31,3 @@ def install
system "#{bin}/gvnccapture", "--help"
end
end

__END__
diff --git a/src/vncdisplaykeymap.c b/src/vncdisplaykeymap.c
index 9c029af..8d3ec20 100644
--- a/src/vncdisplaykeymap.c
+++ b/src/vncdisplaykeymap.c
@@ -69,6 +69,8 @@
#endif

#ifdef GDK_WINDOWING_QUARTZ
+#include <gdk/gdkquartz.h>
+
/* OS-X native keycodes */
#include "vncdisplaykeymap_osx2qnum.h"
#endif

0 comments on commit a9e0e6b

Please sign in to comment.