diff options
| author | Adam Vandenberg | 2013-02-09 11:21:42 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2013-02-09 11:21:42 -0800 |
| commit | e5a1a52bf902022cf0765bb717230f1efac27edc (patch) | |
| tree | a31eecd3287adf6e6d9c2c3628a27bb189d05a5a /Library/Formula | |
| parent | c93e90947fdf0d992277ea4173d9ea42b140a445 (diff) | |
| download | homebrew-e5a1a52bf902022cf0765bb717230f1efac27edc.tar.bz2 | |
irssi: allow opting out of perl support
Closes #15389.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/irssi.rb | 32 |
1 files changed, 22 insertions, 10 deletions
diff --git a/Library/Formula/irssi.rb b/Library/Formula/irssi.rb index 8a60560cd..e049d1246 100644 --- a/Library/Formula/irssi.rb +++ b/Library/Formula/irssi.rb @@ -5,22 +5,34 @@ class Irssi < Formula url 'http://irssi.org/files/irssi-0.8.15.tar.bz2' sha1 'b79ce8c2c98a76b004f63706e7868cd363000d89' + option "without-perl", "Build without perl support." + depends_on 'pkg-config' => :build depends_on 'glib' # Fix Perl build flags and paths in man page - def patches; DATA; end + def patches; DATA; end unless build. def install - system "./configure", "--prefix=#{prefix}", - "--sysconfdir=#{etc}", - "--with-perl=yes", - "--with-perl-lib=#{lib}/perl5/site_perl", - "--with-bot", - "--with-proxy", - "--enable-ssl", - "--enable-ipv6", - "--with-socks" + args =%W[ + --prefix=#{prefix} + --sysconfdir=#{etc} + --with-bot + --with-proxy + --enable-ssl + --enable-ipv6 + --with-socks + ] + + if build.with? "perl" + args << "--with-perl=yes" + args << "--with-perl-lib=#{lib}/perl5/site_perl" + else + args << "--with-perl=no" + end + + system "./configure", *args + # 'make' and 'make install' must be done separately on some systems system "make" system "make install" |
