homebrew-core/Formula/spdylay.rb
Ted Pennings 4cd0935be7 Convert all 'def test' formulae to 'test do'
Closes Homebrew/homebrew#26942.
Closes Homebrew/homebrew#26946.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-02-24 19:54:02 -08:00

32 lines
828 B
Ruby

require 'formula'
class Spdylay < Formula
homepage 'https://github.com/tatsuhiro-t/spdylay'
url 'https://github.com/tatsuhiro-t/spdylay/archive/v1.2.3.tar.gz'
sha1 '96a04068ca0b5df10e37f8d60379b2cb9c5f67d6'
depends_on 'autoconf' => :build
depends_on 'automake' => :build
depends_on 'libtool' => :build
depends_on 'pkg-config' => :build
depends_on 'libevent' => :recommended
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
test do
system "#{bin}/spdycat", "-ns", "https://www.google.com"
end
end