Skip to content

Commit

Permalink
openssl: restore Lion build support
Browse files Browse the repository at this point in the history
Using patch from Clemens Lang, submitted upstream at openssl/openssl#494.

Closes Homebrew/legacy-homebrew#46751.

Closes Homebrew/legacy-homebrew#46937.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
  • Loading branch information
DomT4 committed Dec 13, 2015
1 parent c6c01e0 commit 104d3ad
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions Formula/openssl.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class Openssl < Formula
desc "OpenSSL SSL/TLS cryptography library"
desc "SSL/TLS cryptography library"
homepage "https://openssl.org/"
url "https://www.openssl.org/source/openssl-1.0.2e.tar.gz"
mirror "https://dl.bintray.com/homebrew/mirror/openssl-1.0.2e.tar.gz"
Expand All @@ -12,20 +12,31 @@ class Openssl < Formula
sha256 "1c41a5dbe6728f3037be5003583009334b18922e9bc6bd0bb1065676ee32940b" => :mavericks
end

keg_only :provided_by_osx,
"Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries"

option :universal
option "without-test", "Skip build-time tests (not recommended)"

deprecated_option "without-check" => "without-test"

depends_on "makedepend" => :build

keg_only :provided_by_osx,
"Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries"
# Xcode 7 Clang fix introduced regression which makes older Clang versions
# incorrectly declare suitable instructions.
# https://github.com/openssl/openssl/issues/494
# https://svn.macports.org/repository/macports/trunk/dports/devel/openssl/files/fix-Apple-clang-version-detection.patch
if MacOS.version <= :lion
patch do
url "https://raw.githubusercontent.com/Homebrew/patches/312f6228/openssl/fix-Apple-clang-version-detection.patch"
sha256 "a3e0e13e6c70d85d916bb88cbddc134952794d6292fbab4f2740ac9a07759606"
end
end

def arch_args
{
:x86_64 => %w[darwin64-x86_64-cc enable-ec_nistp_64_gcc_128],
:i386 => %w[darwin-i386-cc]
:i386 => %w[darwin-i386-cc],
}
end

Expand Down

0 comments on commit 104d3ad

Please sign in to comment.