11class Nsync < Formula
22 desc "C library that exports various synchronization primitives"
33 homepage "https://github.com/google/nsync"
4- url "https://github.com/google/nsync/archive/refs/tags/1.29.2 .tar.gz"
5- sha256 "1d63e967973733d2c97e841e3c05fac4d3fa299f01d14c86f2695594c7a4a2ec "
4+ url "https://github.com/google/nsync/archive/refs/tags/1.30.0 .tar.gz"
5+ sha256 "883a0b3f8ffc1950670425df3453c127c1a3f6ed997719ca1bbe7f474235b6cc "
66 license "Apache-2.0"
7- revision 1
87
98 bottle do
109 sha256 cellar : :any , arm64_tahoe : "2fdf47744fa4557e3c6caafb8688671775c4947ff5748365952b8b66ef817e49"
@@ -19,16 +18,11 @@ class Nsync < Formula
1918
2019 depends_on "cmake" => :build
2120
22- # PR ref: https://github.com/google/nsync/pull/24
23- patch :DATA
24-
2521 def install
2622 args = %w[
2723 -DBUILD_SHARED_LIBS=ON
2824 -DNSYNC_ENABLE_TESTS=OFF
2925 ]
30- # Workaround for CMake 4 compatibility
31- args << "-DCMAKE_POLICY_VERSION_MINIMUM=3.5"
3226 system "cmake" , "-S" , "." , "-B" , "_build" , *args , *std_cmake_args
3327 system "cmake" , "--build" , "_build"
3428 system "cmake" , "--install" , "_build"
@@ -52,17 +46,3 @@ def install
5246 system "./test"
5347 end
5448end
55-
56- __END__
57- diff --git a/CMakeLists.txt b/CMakeLists.txt
58- index fcc3f41..9dbe677 100644
59- --- a/CMakeLists.txt
60- +++ b/CMakeLists.txt
61- @@ -125,7 +125,6 @@ elseif ("${CMAKE_SYSTEM_NAME}X" STREQUAL "DarwinX")
62- ${NSYNC_OS_CPP_SRC}
63- "platform/c++11/src/nsync_semaphore_mutex.cc"
64- "platform/posix/src/clock_gettime.c"
65- - "platform/posix/src/nsync_semaphore_mutex.c"
66- )
67- elseif ("${CMAKE_SYSTEM_NAME}X" STREQUAL "LinuxX")
68- set (NSYNC_POSIX ON)
0 commit comments