2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-08 18:35:27 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Irssi < Formula
|
2010-05-13 17:45:24 +00:00
|
|
|
homepage 'http://irssi.org/'
|
2014-06-11 05:35:06 +00:00
|
|
|
url 'http://irssi.org/files/irssi-0.8.16.tar.bz2'
|
|
|
|
sha1 '631dd70b6d3872c5f81c1a46a6872fef5bd65ffb'
|
2009-09-08 18:35:27 +00:00
|
|
|
|
2014-06-11 05:53:24 +00:00
|
|
|
bottle do
|
|
|
|
sha1 "17f3a8f117308e65c5de44e977dbc083858c44f4" => :mavericks
|
|
|
|
sha1 "dfbc2f405189d536264342d72737ef272d0da360" => :mountain_lion
|
|
|
|
sha1 "529bf17edbb6bf5bcd200ed8a84d9190c9a244b3" => :lion
|
|
|
|
end
|
|
|
|
|
2014-01-20 23:06:08 +00:00
|
|
|
option "without-perl", "Build without perl support"
|
2013-02-09 19:21:42 +00:00
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2009-09-21 18:00:13 +00:00
|
|
|
depends_on 'glib'
|
2014-01-20 23:06:08 +00:00
|
|
|
depends_on 'openssl' => :optional
|
2009-09-08 18:35:27 +00:00
|
|
|
|
2014-01-10 02:44:26 +00:00
|
|
|
devel do
|
2014-06-11 05:35:06 +00:00
|
|
|
url 'http://irssi.org/files/snapshots/irssi-20140530.tar.gz'
|
|
|
|
sha1 '6bf61b3c3a384bacfd55c06aa9d4f7e288a30ac8'
|
2014-01-10 02:44:26 +00:00
|
|
|
end
|
|
|
|
|
2012-03-17 19:09:54 +00:00
|
|
|
# Fix Perl build flags and paths in man page
|
2014-03-19 17:07:53 +00:00
|
|
|
patch :DATA
|
2009-12-04 03:42:40 +00:00
|
|
|
|
2009-09-08 18:35:27 +00:00
|
|
|
def install
|
2014-05-08 21:57:05 +00:00
|
|
|
args = %W[
|
|
|
|
--disable-dependency-tracking
|
2013-02-09 19:21:42 +00:00
|
|
|
--prefix=#{prefix}
|
|
|
|
--sysconfdir=#{etc}
|
|
|
|
--with-bot
|
|
|
|
--with-proxy
|
|
|
|
--enable-ipv6
|
|
|
|
--with-socks
|
2014-05-11 23:22:23 +00:00
|
|
|
--with-ncurses=#{MacOS.sdk_path}/usr
|
2013-02-09 19:21:42 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
if build.with? "perl"
|
|
|
|
args << "--with-perl=yes"
|
|
|
|
args << "--with-perl-lib=#{lib}/perl5/site_perl"
|
|
|
|
else
|
|
|
|
args << "--with-perl=no"
|
|
|
|
end
|
|
|
|
|
2014-01-21 04:48:43 +00:00
|
|
|
args << "--enable-ssl" if build.with? "openssl"
|
2014-01-20 23:06:08 +00:00
|
|
|
|
2013-02-09 19:21:42 +00:00
|
|
|
system "./configure", *args
|
|
|
|
|
2011-11-27 04:57:17 +00:00
|
|
|
# 'make' and 'make install' must be done separately on some systems
|
|
|
|
system "make"
|
2009-09-08 18:35:27 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
2011-11-04 05:17:24 +00:00
|
|
|
|
2009-12-04 03:42:40 +00:00
|
|
|
__END__
|
|
|
|
--- a/configure 2009-12-03 19:35:07.000000000 -0800
|
|
|
|
+++ b/configure 2009-12-03 19:35:33.000000000 -0800
|
|
|
|
@@ -27419,7 +27419,7 @@
|
|
|
|
if test -z "$perlpath"; then
|
|
|
|
perl_check_error="perl binary not found"
|
|
|
|
else
|
|
|
|
- PERL_CFLAGS=`$perlpath -MExtUtils::Embed -e ccopts 2>/dev/null`
|
|
|
|
+ PERL_CFLAGS=`$perlpath -MExtUtils::Embed -e ccopts 2>/dev/null | $SED -e 's/-arch [^ ]\{1,\}//g'`
|
|
|
|
fi
|
2014-01-21 04:48:43 +00:00
|
|
|
|
2009-12-04 03:42:40 +00:00
|
|
|
if test "x$ac_cv_c_compiler_gnu" = "xyes" -a -z "`echo $host_os|grep 'bsd\|linux'`"; then
|
|
|
|
@@ -27437,7 +27437,7 @@
|
|
|
|
$as_echo "not found, building without Perl" >&6; }
|
|
|
|
want_perl=no
|
|
|
|
else
|
|
|
|
- PERL_LDFLAGS=`$perlpath -MExtUtils::Embed -e ldopts 2>/dev/null`
|
|
|
|
+ PERL_LDFLAGS=`$perlpath -MExtUtils::Embed -e ldopts 2>/dev/null | $SED -e 's/-arch [^ ]\{1,\}//g'`
|
2014-01-21 04:48:43 +00:00
|
|
|
|
2009-12-04 03:42:40 +00:00
|
|
|
if test "x$DYNLIB_MODULES" = "xno" -a "$want_perl" != "static"; then
|
|
|
|
want_perl=static
|
2011-11-04 05:17:24 +00:00
|
|
|
|
|
|
|
diff --git a/docs/irssi.1 b/docs/irssi.1
|
|
|
|
index 62c2844..482cd96 100644
|
|
|
|
--- a/docs/irssi.1
|
|
|
|
+++ b/docs/irssi.1
|
|
|
|
@@ -65,10 +65,10 @@ display brief usage message.
|
|
|
|
.SH SEE ALSO
|
|
|
|
.B Irssi
|
|
|
|
has been supplied with a huge amount of documentation. Check /help or look
|
|
|
|
-at the files contained by /usr/share/doc/irssi*
|
|
|
|
+at the files contained by HOMEBREW_PREFIX/share/doc/irssi*
|
|
|
|
.SH FILES
|
|
|
|
.TP
|
|
|
|
-.I /etc/irssi.conf
|
|
|
|
+.I HOMEBREW_PREFIX/etc/irssi.conf
|
|
|
|
Global configuration file
|
|
|
|
.TP
|
|
|
|
.I ~/.irssi/config
|
|
|
|
@@ -83,13 +83,13 @@ Default irssi theme
|
|
|
|
.I ~/.irssi/away.log
|
|
|
|
Logged messages in away status
|
|
|
|
.TP
|
|
|
|
-.I /usr/share/irssi/help/
|
|
|
|
+.I HOMEBREW_PREFIX/share/irssi/help/
|
|
|
|
Directory including many help files
|
|
|
|
.TP
|
|
|
|
-.I /usr/share/irssi/scripts/
|
|
|
|
+.I HOMEBREW_PREFIX/share/irssi/scripts/
|
|
|
|
Global scripts directory
|
|
|
|
.TP
|
|
|
|
-.I /usr/share/irssi/themes/
|
|
|
|
+.I HOMEBREW_PREFIX/share/irssi/themes/
|
|
|
|
Global themes directory
|
|
|
|
.TP
|
|
|
|
.I ~/.irssi/scripts/
|