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/'
|
2010-07-02 13:15:42 +00:00
|
|
|
url 'http://irssi.org/files/irssi-0.8.15.tar.bz2'
|
|
|
|
md5 '1dcb3f511b88df94b0c996f36668c7da'
|
2009-09-08 18:35:27 +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'
|
2009-09-08 18:35:27 +00:00
|
|
|
|
2010-06-30 03:04:25 +00:00
|
|
|
# Don't strip, to allow dynamic loading of modules
|
|
|
|
skip_clean 'bin'
|
2009-10-09 20:29:03 +00:00
|
|
|
|
2009-12-04 03:42:40 +00:00
|
|
|
def patches
|
2010-06-30 03:04:25 +00:00
|
|
|
# Fix Perl path
|
2009-12-04 03:42:40 +00:00
|
|
|
DATA
|
|
|
|
end
|
|
|
|
|
2009-09-08 18:35:27 +00:00
|
|
|
def install
|
2010-01-04 17:51:18 +00:00
|
|
|
ENV.append 'ARCHFLAGS', ' ' # wtf?
|
|
|
|
|
2010-06-30 03:04:25 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}",
|
|
|
|
"--with-perl=yes",
|
2011-07-24 23:17:30 +00:00
|
|
|
"--with-perl-lib=#{prefix}/lib/perl5/site_perl",
|
2010-06-30 03:04:25 +00:00
|
|
|
"--with-bot",
|
|
|
|
"--with-proxy",
|
|
|
|
"--enable-ssl",
|
|
|
|
"--enable-ipv6"
|
2009-09-08 18:35:27 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
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
|
|
|
|
|
|
|
|
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'`
|
|
|
|
|
|
|
|
if test "x$DYNLIB_MODULES" = "xno" -a "$want_perl" != "static"; then
|
|
|
|
want_perl=static
|