2013-02-24 23:56:41 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Spdylay < Formula
|
|
|
|
homepage 'https://github.com/tatsuhiro-t/spdylay'
|
2013-03-12 11:34:18 +00:00
|
|
|
url 'https://github.com/tatsuhiro-t/spdylay/archive/release-0.3.8.tar.gz'
|
|
|
|
sha1 '1aab41a7b667dd26f43675f681708395c82d9904'
|
2013-02-24 23:56:41 +00:00
|
|
|
|
|
|
|
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
|