2013-02-24 23:56:41 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Spdylay < Formula
|
|
|
|
homepage 'https://github.com/tatsuhiro-t/spdylay'
|
2014-02-15 18:08:59 +00:00
|
|
|
url 'https://github.com/tatsuhiro-t/spdylay/archive/v1.2.3.tar.gz'
|
|
|
|
sha1 '96a04068ca0b5df10e37f8d60379b2cb9c5f67d6'
|
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
|
2014-02-18 03:39:29 +00:00
|
|
|
depends_on 'libevent' => :recommended
|
2013-02-24 23:56:41 +00:00
|
|
|
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'
|
|
|
|
|
2013-05-10 02:39:59 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
2013-02-24 23:56:41 +00:00
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
|
2014-02-23 21:31:41 +00:00
|
|
|
test do
|
2013-02-24 23:56:41 +00:00
|
|
|
system "#{bin}/spdycat", "-ns", "https://www.google.com"
|
|
|
|
end
|
|
|
|
end
|