From 67c5a8d2c7c81c2a6a884895a7f39a1a9d23d999 Mon Sep 17 00:00:00 2001 From: FX Coudert Date: Wed, 4 Sep 2019 17:02:58 +0200 Subject: [PATCH] liboauth: move to OpenSSL 1.1 and patch --- Formula/liboauth.rb | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Formula/liboauth.rb b/Formula/liboauth.rb index 114c8bc99e..5c13edc337 100644 --- a/Formula/liboauth.rb +++ b/Formula/liboauth.rb @@ -3,7 +3,7 @@ class Liboauth < Formula homepage "https://liboauth.sourceforge.io" url "https://downloads.sourceforge.net/project/liboauth/liboauth-1.0.3.tar.gz" sha256 "0df60157b052f0e774ade8a8bac59d6e8d4b464058cc55f9208d72e41156811f" - revision 1 + revision 2 bottle do cellar :any @@ -15,7 +15,13 @@ class Liboauth < Formula sha256 "9bbd1a6e6cb7c089f3971858b84674545f4125e088072399bace245c29562f03" => :mavericks end - depends_on "openssl" + depends_on "openssl@1.1" + + # Patch for compatibility with OpenSSL 1.1 + patch :p0 do + url "https://raw.githubusercontent.com/freebsd/freebsd-ports/master/net/liboauth/files/patch-src_hash.c" + sha256 "a7b0295dab65b5fb8a5d2a9bbc3d7596b1b58b419bd101cdb14f79aa5cc78aea" + end def install system "./configure", "--disable-dependency-tracking",