homebrew-core/Formula/bitchx.rb
William Riley-Land 2477ed3674 bitchx: specify plugins to build
bitchx has no "--disable-plugin" option, so this is the next best way
to disable plugins that won't build (e.g. europa).

Fixes Homebrew/homebrew#31282.
Closes Homebrew/homebrew#31284.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2014-08-25 23:41:42 -07:00

59 lines
1.5 KiB
Ruby

require "formula"
class Bitchx < Formula
homepage "https://github.com/BitchX"
url "http://bitchx.ca/BitchX-1.2-final.tar.gz"
mirror "http://pkgs.fedoraproject.org/repo/pkgs/BitchX/BitchX-1.2-final.tar.gz/5c4947f5a345574e28d93f78cb191ce4/BitchX-1.2-final.tar.gz"
sha1 "a2162a18d3a96ade7d2410f6a560e43f7d6b8763"
# Reported upstream:
# https://github.com/BitchX/BitchX/pull/8
patch :DATA
def install
args = %W{
--prefix=#{prefix}
--with-ssl
--with-plugins=acro,aim,arcfour,amp,autocycle,blowfish,cavlink,encrypt,fserv,hint,identd,nap,pkga,possum,qbx,qmail
--enable-ipv6
--mandir=#{man}
}
system "./configure", *args
system "make"
system "make", "install"
end
def caveats; <<-EOS.undent
On case-sensitive filesytems, it is necessary to run `BitchX` not `bitchx`.
For best visual appearance, your terminal emulator may need:
* Character encoding set to Western (ISO Latin 1).
(or a similar, compatible encoding)
* A font capable of extended ASCII characters:
See: https://www.google.com/search?q=perfect+dos+vga+437
EOS
end
test do
system bin/"BitchX", "-v"
end
end
__END__
diff --git a/source/compat.c b/source/compat.c
index fa68988..9549bd6 100644
--- a/source/compat.c
+++ b/source/compat.c
@@ -1011,6 +1011,10 @@ int scandir (const char *name,
#include <stddef.h>
#include <string.h>
+#if defined(__APPLE__)
+ #define environ (*_NSGetEnviron())
+#endif
+
int bsd_setenv(const char *name, const char *value, int rewrite);
/*