11class Seal < Formula
22 desc "Easy-to-use homomorphic encryption library"
33 homepage "https://github.com/microsoft/SEAL"
4- url "https://github.com/microsoft/SEAL/archive/refs/tags/v4.1.2 .tar.gz"
5- sha256 "acc2a1a127a85d1e1ffcca3ffd148f736e665df6d6b072df0e42fff64795a13c "
4+ url "https://github.com/microsoft/SEAL/archive/refs/tags/v4.3.0 .tar.gz"
5+ sha256 "2c843054d795d0f36944e5cf1e9ab4b72b239af2ab427905394ed1c69c13bca3 "
66 license "MIT"
77
88 bottle do
@@ -24,14 +24,8 @@ class Seal < Formula
2424 end
2525
2626 resource "hexl" do
27- url "https://github.com/IntelLabs/hexl/archive/refs/tags/v1.2.5.tar.gz"
28- sha256 "3692e6e6183dbc49253e51e86c3e52e7affcac925f57db0949dbb4d34b558a9a"
29- end
30-
31- # patch cmake configs, remove in next release
32- patch do
33- url "https://github.com/microsoft/SEAL/commit/13e94ef0e01aa9874885bbfdbca1258ab380ddeb.patch?full_index=1"
34- sha256 "19e3dde5aeb78c01dbe5ee73624cf4621060d071ab1a437515eedc00b47310a1"
27+ url "https://github.com/IntelLabs/hexl/archive/refs/tags/v1.2.6.tar.gz"
28+ sha256 "5035cedff6984060c10e2ce7587dab83483787ea2010e1b60d18d19bb3538f3b"
3529 end
3630
3731 def install
@@ -40,8 +34,6 @@ def install
4034 hexl_args = %w[
4135 -DHEXL_BENCHMARK=OFF
4236 -DHEXL_TESTING=OFF
43- -DHEXL_EXPORT=ON
44- -DCMAKE_POLICY_VERSION_MINIMUM=3.5
4537 ]
4638 system "cmake" , "-S" , "." , "-B" , "build" , *hexl_args , *std_cmake_args
4739 system "cmake" , "--build" , "build"
@@ -50,14 +42,14 @@ def install
5042 ENV . append "LDFLAGS" , "-L#{ lib } "
5143 end
5244
45+ inreplace "CMakeLists.txt" , "find_package(HEXL 1)" , "find_package(HEXL)" if Hardware ::CPU . intel?
46+
5347 args = %W[
5448 -DBUILD_SHARED_LIBS=ON
5549 -DSEAL_BUILD_DEPS=OFF
5650 -DSEAL_USE_ALIGNED_ALLOC=#{ OS . mac? ? "ON" : "OFF" }
5751 -DSEAL_USE_INTEL_HEXL=#{ Hardware ::CPU . intel? ? "ON" : "OFF" }
58- -DHEXL_DIR=#{ lib } /cmake
5952 -DCMAKE_CXX_FLAGS=-I#{ include }
60- -DCMAKE_POLICY_VERSION_MINIMUM=3.5
6153 ]
6254
6355 system "cmake" , "-S" , "." , "-B" , "build" , *args , *std_cmake_args
0 commit comments