Disable perl support in irssi so it will build without errors

Fixes Homebrew/homebrew#367

Signed-off-by: Max Howell <max@methylblue.com>

No reports of issues on 10.5 so I just disabled perl on 10.6.
This commit is contained in:
Rémi Prévost 2010-01-04 12:51:18 -05:00 committed by Max Howell
parent d6435d9e94
commit ad34f7a997

View file

@ -13,8 +13,19 @@ class Irssi <Formula
end
def install
ENV.append 'ARCHFLAGS', ' '
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking", "--with-modules", "--enable-ssl", "--enable-ipv6", "--with-perl=yes"
ENV.append 'ARCHFLAGS', ' ' # wtf?
cargs = ["--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking",
"--with-modules", "--enable-ssl", "--enable-ipv6"]
# http://github.com/mxcl/homebrew/issues/#issue/367
if MACOS_VERSION > 10.5
cargs << "--with-perl=no"
else
cargs << "--with-perl=yes"
end
system "./configure", *cargs
system "make install"
end
end