require 'formula'

class Liboauth < Formula
  homepage 'http://liboauth.sourceforge.net'
  url 'https://downloads.sourceforge.net/project/liboauth/liboauth-1.0.3.tar.gz'
  sha1 '791dbb4166b5d2c843c8ff48ac17284cc0884af2'
  revision 1

  bottle do
    cellar :any
    sha1 "82c2ad1ea5f0821f2f6e00d132c6b8ae57f49957" => :yosemite
    sha1 "d3afebefa5ffd84735eae7a65cb841ad1c212178" => :mavericks
    sha1 "4ace4ab98187d48ab61be90e0b3f2c5123db9dbc" => :mountain_lion
  end

  depends_on "openssl"

  def install
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--disable-curl"
    system "make install"
  end
end
