2014-07-30 15:08:47 +00:00
|
|
|
require "formula"
|
2013-04-21 14:15:42 +00:00
|
|
|
|
|
|
|
class Bitchx < Formula
|
|
|
|
|
2014-07-30 15:08:47 +00:00
|
|
|
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"
|
2013-04-21 14:15:42 +00:00
|
|
|
|
2013-09-19 14:28:35 +00:00
|
|
|
# Reported upstream:
|
|
|
|
# https://github.com/BitchX/BitchX/pull/8
|
2014-03-18 03:44:53 +00:00
|
|
|
patch :DATA
|
2013-04-21 14:15:42 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
args = %W{
|
|
|
|
--prefix=#{prefix}
|
|
|
|
--with-ssl
|
2014-08-01 21:25:34 +00:00
|
|
|
--with-plugins=acro,aim,arcfour,amp,autocycle,blowfish,cavlink,encrypt,fserv,hint,identd,nap,pkga,possum,qbx,qmail
|
2013-04-21 14:15:42 +00:00
|
|
|
--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
|
2014-05-20 17:41:52 +00:00
|
|
|
system bin/"BitchX", "-v"
|
2013-04-21 14:15:42 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
2013-09-19 14:28:35 +00:00
|
|
|
|
|
|
|
__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);
|
|
|
|
|
|
|
|
/*
|