Skip to content

Commit 35d5920

Browse files
committed
gobject-introspection 1.78.0
gobject-introspection: update build Signed-off-by: Rui Chen <[email protected]>
1 parent 5a2b7d3 commit 35d5920

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

Formula/g/gobject-introspection.rb

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ class GobjectIntrospection < Formula
33

44
desc "Generate introspection data for GObject libraries"
55
homepage "https://gi.readthedocs.io/en/latest/"
6-
url "https://download.gnome.org/sources/gobject-introspection/1.%3Cspan%20class="x x-first x-last">76/gobject-introspection-1.76.1.tar.xz"
7-
sha256 "196178bf64345501dcdc4d8469b36aa6fe80489354efe71cb7cb8ab82a3738bf"
6+
url "https://download.gnome.org/sources/gobject-introspection/1.%3Cspan%20class="x x-first x-last">78/gobject-introspection-1.78.0.tar.xz"
7+
sha256 "84f5bd2038bd52abbce74a639832c5b46a2d17e9c5a8ae14f9788e8516c04166"
88
license all_of: ["GPL-2.0-or-later", "LGPL-2.0-or-later", "MIT"]
99

1010
bottle do
@@ -18,6 +18,7 @@ class GobjectIntrospection < Formula
1818
end
1919

2020
depends_on "bison" => :build
21+
depends_on "cmake" => :build
2122
depends_on "meson" => :build
2223
depends_on "ninja" => :build
2324
depends_on "cairo"
@@ -37,16 +38,19 @@ class GobjectIntrospection < Formula
3738
sha256 "740c9fba499b1491689b0b1216f9e693e5cb35c9a8565df4314341122ce12f81"
3839
end
3940

40-
def install
41-
python3 = "python3.11"
41+
def python3
42+
which("python3.11")
43+
end
4244

45+
def install
4346
ENV["GI_SCANNER_DISABLE_CACHE"] = "true"
47+
4448
inreplace "giscanner/transformer.py", "/usr/share", "#{HOMEBREW_PREFIX}/share"
4549
inreplace "meson.build",
4650
"config.set_quoted('GOBJECT_INTROSPECTION_LIBDIR', join_paths(get_option('prefix'), get_option('libdir')))",
4751
"config.set_quoted('GOBJECT_INTROSPECTION_LIBDIR', '#{HOMEBREW_PREFIX}/lib')"
4852

49-
system "meson", "setup", "build", "-Dpython=#{which(python3)}",
53+
system "meson", "setup", "build", "-Dpython=#{python3}",
5054
"-Dextra_library_paths=#{HOMEBREW_PREFIX}/lib",
5155
*std_meson_args
5256
system "meson", "compile", "-C", "build", "--verbose"

0 commit comments

Comments
 (0)