@@ -2,20 +2,12 @@ class Rtags < Formula
22 desc "Source code cross-referencer like ctags with a clang frontend"
33 homepage "https://github.com/Andersbakken/rtags"
44 license "GPL-3.0-or-later"
5- revision 3
65 head "https://github.com/Andersbakken/rtags.git" , branch : "master"
76
87 stable do
98 url "https://github.com/Andersbakken/rtags.git" ,
10- tag : "v2.40" ,
11- revision : "8597d6d2adbe11570dab55629ef9a684304ec3cd"
12-
13- # fix compiling with gcc 11
14- patch do
15- url "https://github.com/Andersbakken/rct/commit/31347b4ff91fa6ea68035e0e7b88ed0330016d7f.patch?full_index=1"
16- sha256 "9324dded21b6796e218b0f531ade00cc3b2ef725e00e8296c497db3de47638df"
17- directory "src/rct"
18- end
9+ tag : "v2.41" ,
10+ revision : "39339388256df662d0084b4a094d03e52748f9e8"
1911
2012 # fix lisp files, remove on release 2.42
2113 patch do
@@ -58,7 +50,10 @@ class Rtags < Formula
5850 uses_from_macos "zlib"
5951
6052 def install
61- system "cmake" , "-S" , "." , "-B" , "build" , "-DRTAGS_NO_BUILD_CLANG=ON" , *std_cmake_args
53+ # Fix to add backward compatibility for CMake version 4
54+ # `master` and `v2.41` are differ too much and so patch is not working
55+ # PR ref: https://github.com/Andersbakken/rtags/pull/1443
56+ system "cmake" , "-S" , "." , "-B" , "build" , "-DCMAKE_POLICY_VERSION_MINIMUM=3.5" , *std_cmake_args
6257 system "cmake" , "--build" , "build"
6358 system "cmake" , "--install" , "build"
6459 end
0 commit comments