@@ -3,21 +3,22 @@ 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.76 /gobject-introspection-1.76.1 .tar.xz"
7
- sha256 "196178bf64345501dcdc4d8469b36aa6fe80489354efe71cb7cb8ab82a3738bf "
6
+ url "https://download.gnome.org/sources/gobject-introspection/1.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
11
- sha256 arm64_ventura : "0893c5b8d8dc89d1649c6d72c2d2a29fbe9412a5348a5e1fb28ebc284d46332e "
12
- sha256 arm64_monterey : "582383ac2d0f617df8638783bc39223626575e33e8248a5241ec115f576797ca "
13
- sha256 arm64_big_sur : "89eaa90a0ac005b0b0d320b301be097029def2049b44e26361b7bacc2c03dd39 "
14
- sha256 ventura : "3382ba757d765b37a4cc62ea56a1954df7e889de9eb876017040afc86ded8fd4 "
15
- sha256 monterey : "5e4879812fefd3b8edc8f0ce6c99e876c1c849537510df29305acf1ac9c2ae11 "
16
- sha256 big_sur : "17f6ce7c80d81bcb4a125fd2248a89489c71b9080935873c0a7b261facac4337 "
17
- sha256 x86_64_linux : "0ba66387b38379e17cf178709bba85e055385192c8596a117ea6ff97fc997574 "
11
+ sha256 arm64_ventura : "6b4ee982ddd1a6a724ae2f54dd477591efa7c48bccd75c342d2acae7eb7ff3ae "
12
+ sha256 arm64_monterey : "ca7bc73d0fc6709ab490cbaa403aa6cdf79d2ad5e8a3b112df149ce7b26c1282 "
13
+ sha256 arm64_big_sur : "4054a01f1538a066b61fb7229e10cde9e910e8ed6f6a6f1d14b244f12225eb37 "
14
+ sha256 ventura : "2dab70e61b9868bdab40eace98ad44cf1b9543a894a861a181e231ab5fa4a9fc "
15
+ sha256 monterey : "c805d29410abe00a7bcd510702e568411d7bef2fd023c49be5480daf7ca557c3 "
16
+ sha256 big_sur : "7011af2059a2c1169b74c02558756ea13d7d7fc0488e0dab3c88b99f3eaabfc5 "
17
+ sha256 x86_64_linux : "7f1aa60c7d14d1e5a81b3e0a90e9bfd4354d002d3353c98573dd078f3fbc59a8 "
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