aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorStefan2013-02-25 00:56:41 +0100
committerJack Nagel2013-03-07 16:24:53 -0600
commite55a98d269974fdd77dfd646925a7c4181363c28 (patch)
tree1c2866d0cd1278d25f4e0733209aab0c53e1f94e /Library/Formula
parentd9e371566be3acc89472b74d5803a78e0124acb3 (diff)
downloadhomebrew-e55a98d269974fdd77dfd646925a7c4181363c28.tar.bz2
spdylay 0.3.7
Closes #18063. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/spdylay.rb31
1 files changed, 31 insertions, 0 deletions
diff --git a/Library/Formula/spdylay.rb b/Library/Formula/spdylay.rb
new file mode 100644
index 000000000..d0346b538
--- /dev/null
+++ b/Library/Formula/spdylay.rb
@@ -0,0 +1,31 @@
+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