homebrew-core/Formula/liboauth.rb
2019-10-14 22:31:00 +02:00

30 lines
1.2 KiB
Ruby

class Liboauth < Formula
desc "C library for the OAuth Core RFC 5849 standard"
homepage "https://liboauth.sourceforge.io"
url "https://downloads.sourceforge.net/project/liboauth/liboauth-1.0.3.tar.gz"
sha256 "0df60157b052f0e774ade8a8bac59d6e8d4b464058cc55f9208d72e41156811f"
revision 2
bottle do
cellar :any
sha256 "1ce26c143029edc957263b3f7c64449c385a5b016e7adbfb1bf40018df08a319" => :catalina
sha256 "2cc45826629d726ad5496c7d1ead73844d213f0862c981830645751ff0f678be" => :mojave
sha256 "c1f049ca62762088244421339f848a5de1e5e388ced1d15463da00a9b0222784" => :high_sierra
sha256 "d3a3ffc611c1d2047e2b56a632e7d4b4e5f4d0657483932fdcd4972455d28f60" => :sierra
end
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",
"--prefix=#{prefix}",
"--disable-curl"
system "make", "install"
end
end