homebrew-core/Formula/spdylay.rb
Stefan 25b29a361a spdylay 0.3.7
Closes Homebrew/homebrew#18063.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-03-07 16:24:53 -06:00

31 lines
815 B
Ruby

require 'formula'
class Spdylay < Formula
homepage 'https://github.com/tatsuhiro-t/spdylay'
url 'https://github.com/tatsuhiro-t/spdylay/archive/release-0.3.7.tar.gz'
sha1 'fbabca6aa53d51208ca60e5d104e402f072722e4'
depends_on 'autoconf' => :build
depends_on 'automake' => :build
depends_on 'libtool' => :build
depends_on 'pkg-config' => :build
depends_on 'libxml2'
depends_on 'openssl'
def install
system 'autoreconf -i'
system 'automake'
system 'autoconf'
ENV['ZLIB_CFLAGS'] = '-I/usr/include'
ENV['ZLIB_LIBS'] = '-L/usr/lib -lz'
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
end
def test
system "#{bin}/spdycat", "-ns", "https://www.google.com"
end
end