diff options
| author | Tim D. Smith | 2014-12-08 23:14:04 -0800 |
|---|---|---|
| committer | Tim D. Smith | 2014-12-09 06:45:43 -0800 |
| commit | 299739ade9f56d71bdf7ddd45d388ba21d283204 (patch) | |
| tree | 1513c3b8f47f3afe3f7fb96e99705cb12833d481 /Library | |
| parent | 89bcb2a4eb8c629d0587efcd2ffd77da62364d2d (diff) | |
| download | homebrew-299739ade9f56d71bdf7ddd45d388ba21d283204.tar.bz2 | |
irssi: restore perl
Replaces perl functionality; adds fix to avoid picking up perl
destinations outside of Homebrew's prefix if a user has set PERL_MM_OPT
like CPAN suggests.
Discussion in #34685; resolves #34770; partially reverts ca09a39 from
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/irssi.rb | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/Library/Formula/irssi.rb b/Library/Formula/irssi.rb index deeeb035e..b38f1e534 100644 --- a/Library/Formula/irssi.rb +++ b/Library/Formula/irssi.rb @@ -4,7 +4,7 @@ class Irssi < Formula homepage "http://irssi.org/" url "http://irssi.org/files/irssi-0.8.17.tar.bz2" sha1 "3bdee9a1c1f3e99673143c275d2c40275136664a" - revision 1 + revision 2 bottle do sha1 "5d9cf38c35b97dc6056adb77759ad930f912f5fb" => :yosemite @@ -32,16 +32,22 @@ class Irssi < Formula --enable-ipv6 --enable-true-color --with-socks - --with-perl=no --with-ncurses=#{MacOS.sdk_path}/usr ] - args << "--disable-ssl" if build.without? "openssl" + if build.with? "perl" + args << "--with-perl=yes" + args << "--with-perl-lib=#{lib}/perl5/site_perl" + else + args << "--with-perl=no" + end - # It'd be nice to stick Perl support back in at some point but right now - # even explicitly setting a Perl libdir gets ignored by configure - # and it attempts to dump things in $HOME, causing permission hell. See: + # confuses Perl library path configuration # https://github.com/Homebrew/homebrew/issues/34685 + ENV.delete "PERL_MM_OPT" + + args << "--disable-ssl" if build.without? "openssl" + system "./configure", *args # "make" and "make install" must be done separately on some systems system "make" |
