PageRenderTime 38ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/Library/Formula/irssi.rb

http://github.com/mxcl/homebrew
Ruby | 92 lines | 79 code | 10 blank | 3 comment | 4 complexity | 18928f5ba67bb40ca1da13fd50c90b5c MD5 | raw file
  1. require 'formula'
  2. class Irssi < Formula
  3. homepage 'http://irssi.org/'
  4. url 'http://irssi.org/files/irssi-0.8.15.tar.bz2'
  5. md5 '1dcb3f511b88df94b0c996f36668c7da'
  6. depends_on 'pkg-config' => :build
  7. depends_on 'glib'
  8. # Don't strip, to allow dynamic loading of modules
  9. skip_clean 'bin'
  10. def patches
  11. # Fix Perl path and path in man page
  12. DATA
  13. end
  14. def install
  15. ENV.append 'ARCHFLAGS', ' ' # wtf?
  16. system "./configure", "--prefix=#{prefix}",
  17. "--sysconfdir=#{etc}",
  18. "--with-perl=yes",
  19. "--with-perl-lib=#{lib}/perl5/site_perl",
  20. "--with-bot",
  21. "--with-proxy",
  22. "--enable-ssl",
  23. "--enable-ipv6",
  24. "--with-socks"
  25. # 'make' and 'make install' must be done separately on some systems
  26. system "make"
  27. system "make install"
  28. end
  29. end
  30. __END__
  31. --- a/configure 2009-12-03 19:35:07.000000000 -0800
  32. +++ b/configure 2009-12-03 19:35:33.000000000 -0800
  33. @@ -27419,7 +27419,7 @@
  34. if test -z "$perlpath"; then
  35. perl_check_error="perl binary not found"
  36. else
  37. - PERL_CFLAGS=`$perlpath -MExtUtils::Embed -e ccopts 2>/dev/null`
  38. + PERL_CFLAGS=`$perlpath -MExtUtils::Embed -e ccopts 2>/dev/null | $SED -e 's/-arch [^ ]\{1,\}//g'`
  39. fi
  40. if test "x$ac_cv_c_compiler_gnu" = "xyes" -a -z "`echo $host_os|grep 'bsd\|linux'`"; then
  41. @@ -27437,7 +27437,7 @@
  42. $as_echo "not found, building without Perl" >&6; }
  43. want_perl=no
  44. else
  45. - PERL_LDFLAGS=`$perlpath -MExtUtils::Embed -e ldopts 2>/dev/null`
  46. + PERL_LDFLAGS=`$perlpath -MExtUtils::Embed -e ldopts 2>/dev/null | $SED -e 's/-arch [^ ]\{1,\}//g'`
  47. if test "x$DYNLIB_MODULES" = "xno" -a "$want_perl" != "static"; then
  48. want_perl=static
  49. diff --git a/docs/irssi.1 b/docs/irssi.1
  50. index 62c2844..482cd96 100644
  51. --- a/docs/irssi.1
  52. +++ b/docs/irssi.1
  53. @@ -65,10 +65,10 @@ display brief usage message.
  54. .SH SEE ALSO
  55. .B Irssi
  56. has been supplied with a huge amount of documentation. Check /help or look
  57. -at the files contained by /usr/share/doc/irssi*
  58. +at the files contained by HOMEBREW_PREFIX/share/doc/irssi*
  59. .SH FILES
  60. .TP
  61. -.I /etc/irssi.conf
  62. +.I HOMEBREW_PREFIX/etc/irssi.conf
  63. Global configuration file
  64. .TP
  65. .I ~/.irssi/config
  66. @@ -83,13 +83,13 @@ Default irssi theme
  67. .I ~/.irssi/away.log
  68. Logged messages in away status
  69. .TP
  70. -.I /usr/share/irssi/help/
  71. +.I HOMEBREW_PREFIX/share/irssi/help/
  72. Directory including many help files
  73. .TP
  74. -.I /usr/share/irssi/scripts/
  75. +.I HOMEBREW_PREFIX/share/irssi/scripts/
  76. Global scripts directory
  77. .TP
  78. -.I /usr/share/irssi/themes/
  79. +.I HOMEBREW_PREFIX/share/irssi/themes/
  80. Global themes directory
  81. .TP
  82. .I ~/.irssi/scripts/