@@ -3,8 +3,8 @@ class GobjectIntrospection < Formula
3
3
4
4
desc "Generate introspection data for GObject libraries"
5
5
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 "
8
8
license all_of : [ "GPL-2.0-or-later" , "LGPL-2.0-or-later" , "MIT" ]
9
9
10
10
bottle do
@@ -18,6 +18,7 @@ class GobjectIntrospection < Formula
18
18
end
19
19
20
20
depends_on "bison" => :build
21
+ depends_on "cmake" => :build
21
22
depends_on "meson" => :build
22
23
depends_on "ninja" => :build
23
24
depends_on "cairo"
@@ -37,16 +38,19 @@ class GobjectIntrospection < Formula
37
38
sha256 "740c9fba499b1491689b0b1216f9e693e5cb35c9a8565df4314341122ce12f81"
38
39
end
39
40
40
- def install
41
- python3 = "python3.11"
41
+ def python3
42
+ which ( "python3.11" )
43
+ end
42
44
45
+ def install
43
46
ENV [ "GI_SCANNER_DISABLE_CACHE" ] = "true"
47
+
44
48
inreplace "giscanner/transformer.py" , "/usr/share" , "#{ HOMEBREW_PREFIX } /share"
45
49
inreplace "meson.build" ,
46
50
"config.set_quoted('GOBJECT_INTROSPECTION_LIBDIR', join_paths(get_option('prefix'), get_option('libdir')))" ,
47
51
"config.set_quoted('GOBJECT_INTROSPECTION_LIBDIR', '#{ HOMEBREW_PREFIX } /lib')"
48
52
49
- system "meson" , "setup" , "build" , "-Dpython=#{ which ( python3 ) } " ,
53
+ system "meson" , "setup" , "build" , "-Dpython=#{ python3 } " ,
50
54
"-Dextra_library_paths=#{ HOMEBREW_PREFIX } /lib" ,
51
55
*std_meson_args
52
56
system "meson" , "compile" , "-C" , "build" , "--verbose"
0 commit comments