2013-02-22 05:23:41 +00:00
|
|
|
class Epic5 < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Enhanced, programmable IRC client"
|
2015-04-21 18:33:23 +00:00
|
|
|
homepage "http://www.epicsol.org/"
|
2015-12-22 10:51:45 +00:00
|
|
|
url "http://ftp.epicsol.org/pub/epic/EPIC5-PRODUCTION/epic5-1.4.tar.xz"
|
|
|
|
sha256 "3bc04e07768040db266667513158d2c640544abb49cbab29343f6ef05ebd621e"
|
2015-08-30 03:47:04 +00:00
|
|
|
|
|
|
|
head "http://git.epicsol.org/epic5.git"
|
2015-04-21 18:33:23 +00:00
|
|
|
|
2015-04-21 19:12:15 +00:00
|
|
|
bottle do
|
2015-12-22 11:16:51 +00:00
|
|
|
sha256 "3ea96f2a4be750e64b9d5219764aef858a5b58f997ceb7bcf5b1d85bf088542c" => :el_capitan
|
|
|
|
sha256 "a868d664e78c1b424d514db8f5d421d59bf02e3a7e79738850ce1e67139ebd8c" => :yosemite
|
|
|
|
sha256 "3e71127bb305c3f5fe6d226b67e4e7d9b2c02220afc042315b1d3e2fa5b2756f" => :mavericks
|
2015-04-21 19:12:15 +00:00
|
|
|
end
|
|
|
|
|
2015-04-21 18:33:23 +00:00
|
|
|
depends_on "openssl"
|
2013-02-22 05:23:41 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
2015-04-21 18:33:23 +00:00
|
|
|
"--mandir=#{man}",
|
2015-09-18 13:29:57 +00:00
|
|
|
"--with-ipv6",
|
|
|
|
"--with-ssl=#{Formula["openssl"].opt_prefix}"
|
2015-04-21 18:33:23 +00:00
|
|
|
system "make", "install"
|
2013-02-22 05:23:41 +00:00
|
|
|
end
|
|
|
|
|
2014-02-23 21:31:41 +00:00
|
|
|
test do
|
2015-04-21 18:33:23 +00:00
|
|
|
connection = fork do
|
2015-07-21 06:14:42 +00:00
|
|
|
exec bin/"epic5", "irc.freenode.net"
|
2015-04-21 18:33:23 +00:00
|
|
|
end
|
|
|
|
sleep 5
|
|
|
|
Process.kill("TERM", connection)
|
2013-02-22 05:23:41 +00:00
|
|
|
end
|
|
|
|
end
|