File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -39,14 +39,21 @@ class OpencascadeAT772 < Formula
39
39
depends_on "freeimage"
40
40
depends_on "freetype"
41
41
depends_on "tbb"
42
- depends_on "tcl-tk"
42
+ depends_on "tcl-tk@8" # TCL 9 issue: https://tracker.dev.opencascade.org/view.php?id=33725
43
43
44
44
on_linux do
45
+ depends_on "libx11"
45
46
depends_on "mesa" # For OpenGL
46
47
end
47
48
49
+ # Backport fix for incorrect type
50
+ patch do
51
+ url "https://github.com/Open-Cascade-SAS/OCCT/commit/7236e83dcc1e7284e66dc61e612154617ef715d6.patch?full_index=1"
52
+ sha256 "ed8848b3891df4894de56ae8f8c51f6a4b78477c0063d957321c1cace4613c29"
53
+ end
54
+
48
55
def install
49
- tcltk = Formula [ "tcl-tk" ]
56
+ tcltk = Formula [ "tcl-tk@8 " ]
50
57
libtcl = tcltk . opt_lib /shared_library ( "libtcl#{ tcltk . version . major_minor } " )
51
58
libtk = tcltk . opt_lib /shared_library ( "libtk#{ tcltk . version . major_minor } " )
52
59
@@ -96,8 +103,12 @@ def install
96
103
\. (\d +) # 4
97
104
(\. dylib)? # 5
98
105
/x
106
+
107
+ # NOTE: ipatch, `audit_result: false` should resolve the below
108
+ # MethodDeprecatedError: Calling gsub!(before, after, false) is deprecated!
109
+ # ...Use gsub!(before, after, audit_result: false) instead.
99
110
inreplace ( lib /"cmake/opencascade" ) . glob ( "*.cmake" ) do |s |
100
- s . gsub! tbb_regex , 'libtbb\1\2.\3\5' , false
111
+ s . gsub! tbb_regex , 'libtbb\1\2.\3\5' , audit_result : false
101
112
end
102
113
103
114
bin . env_script_all_files ( libexec , CASROOT : prefix )
You can’t perform that action at this time.
0 commit comments