Skip to content

Commit

Permalink
nss: add 3.86 bottle.
Browse files Browse the repository at this point in the history
  • Loading branch information
gromgit committed Jan 19, 2023
1 parent 8e39a74 commit 3993e56
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Formula/nss.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class Nss < Formula
desc "Libraries for security-enabled client and server applications"
homepage "https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS"
url "https://ftp.mozilla.org/pub/security/nss/releases/NSS_3_78_RTM/src/nss-3.78.tar.gz"
sha256 "f455f341e787c1167328e80a84f77b9a557d595066dda6486a1874d72da68800"
url "https://ftp.mozilla.org/pub/security/nss/releases/NSS_3_86_RTM/src/nss-3.86.tar.gz"
sha256 "3f385fc686476bbba811035fa6821b542475d55747b18c20c221d4d66573b975"
license "MPL-2.0"

livecheck do
Expand All @@ -14,21 +14,20 @@ class Nss < Formula
end

bottle do
sha256 cellar: :any, arm64_monterey: "3957bd6ff1c7e9bc87bd9f609afc4e1d59967e383b9cef76d0380d45e8d9399f"
sha256 cellar: :any, arm64_big_sur: "69aee9c8f3496dfd337731bd64b478edd0563f295cdd22f5abf8566dd6c3fa9e"
sha256 cellar: :any, monterey: "58b263c734ebc9503e00eff3a9aad7176d3e0c6de7987c71ed0079a9dd17ea13"
sha256 cellar: :any, big_sur: "edd014cd5026204b29a2dae1b3bf72b446cc9c1319c8bb923d60e8b7e3207b66"
sha256 cellar: :any, catalina: "4dd85d8443322d2190f33c7e595a49cfa7548969fc1a176d7778b1d50d7b0c75"
sha256 cellar: :any_skip_relocation, x86_64_linux: "6704fa38552bbe9881b15386755aca8b3d71d9597ebe53c6faa879fd2fd9141a"
root_url "https://github.com/gromgit/homebrew-core-aarch64_linux/releases/download/nss"
sha256 cellar: :any_skip_relocation, aarch64_linux: "59bb67e69736aa5d416a936296b68a616fa23872e70b39f89a4afdac65825258"
end

depends_on "nspr"

uses_from_macos "sqlite"
uses_from_macos "zlib"

conflicts_with "arabica", because: "both install `mangle` binaries"
conflicts_with "resty", because: "both install `pp` binaries"
conflicts_with "googletest", because: "both install `libgtest.a`"

# TOFIX: super removes `-march=armv8-a+crypto` flag, breaking the build
env :std

def install
ENV.deparallelize
Expand All @@ -37,6 +36,7 @@ def install
args = %W[
BUILD_OPT=1
NSS_ALLOW_SSLKEYLOGFILE=1
NSS_DISABLE_GTESTS=1
NSS_USE_SYSTEM_SQLITE=1
NSPR_INCLUDE_DIR=#{Formula["nspr"].opt_include}/nspr
NSPR_LIB_DIR=#{Formula["nspr"].opt_lib}
Expand Down Expand Up @@ -72,7 +72,7 @@ def install
cp file, lib
end
end
# resolves conflict with openssl, see #28258
# resolves conflict with openssl, see legacy-homebrew#28258
rm lib/"libssl.a"

(bin/"nss-config").write config_file
Expand Down

0 comments on commit 3993e56

Please sign in to comment.