From 3fd96d31e9dd2cbb87917e9c0ec3beb39e205502 Mon Sep 17 00:00:00 2001 From: Brad Beyenhof Date: Mon, 20 Jan 2014 15:06:08 -0800 Subject: make openssl optional Signed-off-by: Mike McQuaid --- Library/Formula/irssi.rb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Library') diff --git a/Library/Formula/irssi.rb b/Library/Formula/irssi.rb index ede883dd7..e78ce642c 100644 --- a/Library/Formula/irssi.rb +++ b/Library/Formula/irssi.rb @@ -5,12 +5,12 @@ class Irssi < Formula url 'http://irssi.org/files/irssi-0.8.15.tar.bz2' sha1 'b79ce8c2c98a76b004f63706e7868cd363000d89' - option "without-perl", "Build without perl support." + option "without-perl", "Build without perl support" depends_on :clt # See https://github.com/Homebrew/homebrew/issues/20952 depends_on 'pkg-config' => :build depends_on 'glib' - depends_on 'openssl' + depends_on 'openssl' => :optional devel do url 'http://irssi.org/files/irssi-0.8.16-rc1.tar.gz' @@ -24,7 +24,6 @@ class Irssi < Formula args =%W[ --prefix=#{prefix} --sysconfdir=#{etc} - --enable-ssl --with-bot --with-proxy --enable-ipv6 @@ -38,6 +37,10 @@ class Irssi < Formula args << "--with-perl=no" end + if build.with? "openssl" + args << "--enable-ssl" + end + system "./configure", *args # 'make' and 'make install' must be done separately on some systems -- cgit v1.2.3