Skip to content

Commit

Permalink
Merge pull request Homebrew#202271 from Homebrew/seal-cmake
Browse files Browse the repository at this point in the history
seal: update checksum and cmake syntax
  • Loading branch information
BrewTestBot authored Dec 23, 2024
2 parents 7c3f570 + 6be1edd commit 91158fb
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions Formula/s/seal.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,17 @@ class Seal < Formula
desc "Easy-to-use homomorphic encryption library"
homepage "https://github.com/microsoft/SEAL"
url "https://github.com/microsoft/SEAL/archive/refs/tags/v4.1.2.tar.gz"
sha256 "55601ea4c9ab96eb29a8e37027637774e64a2868d02852474d625ffced0b92cb"
sha256 "acc2a1a127a85d1e1ffcca3ffd148f736e665df6d6b072df0e42fff64795a13c"
license "MIT"

bottle do
sha256 cellar: :any, arm64_sequoia: "95d3610de7c109265e775fcb6ef1547f2cb2f71d2be1a0e1d3c616cc0a708157"
sha256 cellar: :any, arm64_sonoma: "fde6d946891affcafc3e5231b576a1b67aed87ab83cd225eace77d72827b1193"
sha256 cellar: :any, arm64_ventura: "45449875a4c66daedc4730ee32d6c9d03875fc2139927d7c9e5716ebc2598e94"
sha256 cellar: :any, arm64_monterey: "b782ba0559923f33086a020b63ab5bcd05fa5262f40a166eb0d3be7ebdd26131"
sha256 cellar: :any, sonoma: "f2d97c6b546621bc7a19cf8825787ec57f953ce9caa36d9e41005611d0262e00"
sha256 cellar: :any, ventura: "7dcd8c0c88ffe2156af805090507e07389f5a66213f72b48a5ba817929f8b2a2"
sha256 cellar: :any, monterey: "0d4a9d88654ccfc0becd6841ed2eaabdfb5673aae8b8477c8751de112404295b"
sha256 cellar: :any_skip_relocation, x86_64_linux: "284c52f3e1190e14db52e5cf0518ef6fb78011b2a611d7081b1572ca0933ce19"
rebuild 1
sha256 cellar: :any, arm64_sequoia: "d722e8423730c3ec9aee70ed7c8655f674d11214b3f223be032b1c1eaa75059e"
sha256 cellar: :any, arm64_sonoma: "ebfbfe9d6480f7f9d2ed977467595aec941ba25a97755507340710020adc4425"
sha256 cellar: :any, arm64_ventura: "86478b9f5e642a9c5a151053a4f1eb6b85a760e7e9e627cc4bbc2fb9f4b25e58"
sha256 cellar: :any, sonoma: "e38a08c1096eb328fbc578e337330e437f73284fe02b46eb794bcbbd14f5e6d9"
sha256 cellar: :any, ventura: "f7bb995a9e3436465ae5147f8348bc72781829765f37c6eeba3666f2b37b6181"
sha256 cellar: :any_skip_relocation, x86_64_linux: "d36a437367854b03cfa9802ee07ca8c22377be28ea20de45b8e23f70d6906ea7"
end

depends_on "cmake" => [:build, :test]
Expand All @@ -36,19 +35,19 @@ class Seal < Formula
def install
if Hardware::CPU.intel?
resource("hexl").stage do
hexl_args = std_cmake_args + %w[
hexl_args = %w[
-DHEXL_BENCHMARK=OFF
-DHEXL_TESTING=OFF
-DHEXL_EXPORT=ON
]
system "cmake", "-S", ".", "-B", "build", *hexl_args
system "cmake", "-S", ".", "-B", "build", *hexl_args, *std_cmake_args
system "cmake", "--build", "build"
system "cmake", "--install", "build"
end
ENV.append "LDFLAGS", "-L#{lib}"
end

args = std_cmake_args + %W[
args = %W[
-DBUILD_SHARED_LIBS=ON
-DSEAL_BUILD_DEPS=OFF
-DSEAL_USE_ALIGNED_ALLOC=#{(OS.mac? && MacOS.version > :mojave) ? "ON" : "OFF"}
Expand All @@ -57,9 +56,10 @@ def install
-DCMAKE_CXX_FLAGS=-I#{include}
]

system "cmake", ".", *args
system "make"
system "make", "install"
system "cmake", "-S", ".", "-B", "build", *args, *std_cmake_args
system "cmake", "--build", "build"
system "cmake", "--install", "build"

pkgshare.install "native/examples"
end

Expand Down

0 comments on commit 91158fb

Please sign in to comment.