Skip to content

Commit 50f6dec

Browse files
committed
Set the 'keg_only' flag for the OpenSSL3 formula
Fix #1
1 parent 8f5994c commit 50f6dec

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

Formula/[email protected]

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# FIXME: This formula conflicts with the Homebrew official 'openssl@3' formula. (https://github.com/sqlitebrowser/homebrew-tap/issues/1)
2-
# Until fixed, you can install this formula before running 'brew unlink openssl@3'
31
class SqlbOpensslAT3 < Formula
42
desc "Cryptography and SSL/TLS Toolkit"
53
homepage "https://openssl.org/"
@@ -21,14 +19,11 @@ class SqlbOpensslAT3 < Formula
2119
regex(/href=.*?openssl[._-]v?(\d+(?:\.\d+)+)\.t/i)
2220
end
2321

22+
keg_only :shadowed_by_macos, "macOS provides LibreSSL"
23+
2424
depends_on arch: :arm64
2525
depends_on "ca-certificates"
2626

27-
link_overwrite "bin/c_rehash", "bin/openssl", "include/openssl/*"
28-
link_overwrite "lib/libcrypto*", "lib/libssl*"
29-
link_overwrite "lib/pkgconfig/libcrypto.pc", "lib/pkgconfig/libssl.pc", "lib/pkgconfig/openssl.pc"
30-
link_overwrite "share/doc/openssl/*", "share/man/man*/*ssl"
31-
3227
# SSLv2 died with 1.1.0, so no-ssl2 no longer required.
3328
# SSLv3 & zlib are off by default with 1.1.0 but this may not
3429
# be obvious to everyone, so explicitly state it for now to
@@ -125,4 +120,4 @@ def caveats
125120
assert_equal checksum, expected_checksum
126121
end
127122
end
128-
end
123+
end

0 commit comments

Comments
 (0)