39 lines
1.6 KiB
Ruby
39 lines
1.6 KiB
Ruby
class Bitchx < Formula
|
|
desc "Text-based, scriptable IRC client"
|
|
homepage "https://bitchx.sourceforge.io/"
|
|
url "https://downloads.sourceforge.net/project/bitchx/ircii-pana/bitchx-1.2.1/bitchx-1.2.1.tar.gz"
|
|
sha256 "2d270500dd42b5e2b191980d584f6587ca8a0dbda26b35ce7fadb519f53c83e2"
|
|
revision 1
|
|
|
|
bottle do
|
|
sha256 arm64_big_sur: "628166ae821a5f6e24e522aacf347d3789f4c16deeb060e234ba333432ee6dd7"
|
|
sha256 big_sur: "5c97a97f3f4633129252dbe9691dbfd23960469fca3214326f465cb94f2089dd"
|
|
sha256 catalina: "9e24f64d188be8be36054aad67ead05bffd2f1b5a7c6bef6bc9f98f7ea92fb87"
|
|
sha256 mojave: "52939d589b5697402b6b5c658ab065651ac1943e8c7c7c9798aca5f76790be00"
|
|
sha256 high_sierra: "0a021e6d01b7f7d4ee9d048459ab7367b48da791896b2edeb96e270b196ff202"
|
|
sha256 sierra: "0c9e7fcf39a8fb0c80f867495cf1d6776fbe4aec6010a1986edbca820ed7a6f0"
|
|
end
|
|
|
|
depends_on "openssl@1.1"
|
|
|
|
def install
|
|
# 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"
|
|
|
|
system "./configure", "--prefix=#{prefix}",
|
|
"--mandir=#{man}",
|
|
"--enable-ipv6",
|
|
"--with-plugins=acro,aim,arcfour,amp,autocycle,blowfish,cavlink,encrypt,fserv," \
|
|
"hint,identd,nap,pkga,possum,qbx,qmail",
|
|
"--with-ssl"
|
|
system "make"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
system bin/"BitchX", "-v"
|
|
end
|
|
end
|