homebrew-core/Formula/spdylay.rb
Stefan a556ef82a7 spdylay 1.2.1
Closes Homebrew/homebrew#24991.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-12-06 08:01:18 -08:00

31 lines
789 B
Ruby

require 'formula'
class Spdylay < Formula
homepage 'https://github.com/tatsuhiro-t/spdylay'
url 'https://github.com/tatsuhiro-t/spdylay/archive/v1.2.1.tar.gz'
sha1 '2fa1e30fcf746dbb9e8d473545890dccf6f17171'
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-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
end
def test
system "#{bin}/spdycat", "-ns", "https://www.google.com"
end
end