homebrew-core/Formula/bitchx.rb

140 lines
4.7 KiB
Ruby

class Bitchx < Formula
desc "Text-based, scriptable IRC client"
homepage "https://bitchx.sourceforge.io/"
license "BSD-3-Clause"
revision 1
head "https://git.code.sf.net/p/bitchx/git.git", branch: "master"
stable do
url "https://downloads.sourceforge.net/project/bitchx/ircii-pana/bitchx-1.2.1/bitchx-1.2.1.tar.gz"
sha256 "2d270500dd42b5e2b191980d584f6587ca8a0dbda26b35ce7fadb519f53c83e2"
# Apply these upstream commits to fix Linux build:
# https://sourceforge.net/p/bitchx/git/ci/1c6ff3088ad01a15bea50f78f1b2b468db7afae9/
# https://sourceforge.net/p/bitchx/git/ci/4f63d4892995eec6707f194b462c9fc3184ee85d/
# Remove with next release.
patch :DATA
end
bottle do
rebuild 1
sha256 arm64_ventura: "13c3a23d3e7316d509646ddbd5ee5442c096856124a4f2cc9123afee2ab66bfd"
sha256 arm64_monterey: "2176f208cf2ef65ebe0fc9ea27d2581e21450a01f2b399aba4d0620085245bc2"
sha256 arm64_big_sur: "e92a812a3fdb12ef256f677a923b1343bd9a478beb41c988ea36845e6e154d75"
sha256 ventura: "c793d5d32ff5b4bb73d9c33f12b047459245ecc9f80883c66fac3ae9a30e2f6e"
sha256 monterey: "60c248c5f1b0a85a655ec9462b28982c4c0a089babdac242aedf9e0313a36f8e"
sha256 big_sur: "fb716a19bd25719a59a53270eb4dd4087d11946f44fe2a7adde6aeee183917fd"
sha256 catalina: "ea43f6d0776072e4a73f77621b676920c7a85c0b35446e29d61612c2e68d1ce8"
sha256 x86_64_linux: "99bec310978096fc74fb480bd558108eb6f9a476ce0dc6721c84a5023f6913c4"
end
depends_on "openssl@3"
uses_from_macos "libxcrypt"
uses_from_macos "ncurses"
def install
plugins = %w[
acro arcfour amp autocycle blowfish cavlink encrypt
fserv hint identd nap pkga possum qbx qmail
]
# Remove following in next release
if build.stable?
# AIM plugin was removed upstream:
# https://sourceforge.net/p/bitchx/git/ci/35b1a65f03a2ca2dde31c9dbd77968587b6027d3/
plugins << "aim"
# Patch to fix OpenSSL detection with OpenSSL 1.1
# A similar fix is already committed upstream:
# https://sourceforge.net/p/bitchx/git/ci/184af728c73c379d1eee57a387b6012572794fa8/
inreplace "configure", "SSLeay", "OpenSSL_version_num"
end
system "./configure", "--prefix=#{prefix}",
"--mandir=#{man}",
"--enable-ipv6",
"--with-plugins=#{plugins.join(",")}",
"--with-ssl"
system "make"
system "make", "install"
end
test do
system bin/"BitchX", "-v"
end
end
__END__
diff --git a/dll/amp/layer2.c b/dll/amp/layer2.c
index d4c4d95..2b7d412 100644
--- a/dll/amp/layer2.c
+++ b/dll/amp/layer2.c
@@ -77,7 +77,7 @@ int hsize,fs,mean_frame_size;
nbal=&t_nbal2;
sblimit=8;
break;
- default : /*printf(" bit alloc info no gud ");*/
+ default : break;
}
break;
case 1 : switch (bitrate) /* 1 = 48 kHz */
@@ -98,7 +98,7 @@ int hsize,fs,mean_frame_size;
nbal=&t_nbal2;
sblimit=8;
break;
- default : /*printf(" bit alloc info no gud ");*/
+ default : break;
}
break;
case 2 : switch (bitrate) /* 2 = 32 kHz */
@@ -122,10 +122,10 @@ int hsize,fs,mean_frame_size;
nbal=&t_nbal3;
sblimit=12;
break;
- default : /*printf("bit alloc info not ok\n");*/
+ default : break;
}
break;
- default : /*printf("sampling freq. not ok/n");*/
+ default : break;
} else {
bit_alloc_index=&t_allocMPG2;
nbal=&t_nbalMPG2;
diff --git a/source/commands.c b/source/commands.c
index d140d57..7fd81d6 100644
--- a/source/commands.c
+++ b/source/commands.c
@@ -118,7 +118,6 @@ extern int doing_notice;
static void oper_password_received (char *, char *);
-int no_hook_notify = 0;
int load_depth = -1;
extern char cx_function[];
diff --git a/source/modules.c b/source/modules.c
index 52817fc..99d39bb 100644
--- a/source/modules.c
+++ b/source/modules.c
@@ -77,7 +77,7 @@ extern int BX_read_sockets();
extern int identd;
extern int doing_notice;
-int (*serv_open_func) (int, unsigned long, int);
+extern int (*serv_open_func) (int, unsigned long, int);
extern int (*serv_output_func) (int, int, char *, int);
extern int (*serv_input_func) (int, char *, int, int, int);
extern int (*serv_close_func) (int, unsigned long, int);
diff --git a/source/numbers.c b/source/numbers.c
index 741fca9..2f80f22 100644
--- a/source/numbers.c
+++ b/source/numbers.c
@@ -66,7 +66,6 @@ void show_server_map (void);
int stats_k_grep (char **);
void who_handlekill (char *, char *, char *);
void handle_tracekill (int, char *, char *, char *);
-int no_hook_notify;
extern AJoinList *ajoin_list;
void remove_from_server_list (int);