2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-27 04:41:34 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Hercules < Formula
|
2013-07-31 15:26:58 +00:00
|
|
|
homepage 'http://www.hercules-390.eu/'
|
|
|
|
url 'http://downloads.hercules-390.eu/hercules-3.09.tar.gz'
|
|
|
|
sha1 '5cbe89ec214de00b90e3077c27db636a7d2607f5'
|
2009-09-27 04:41:34 +00:00
|
|
|
|
2013-12-11 07:03:30 +00:00
|
|
|
skip_clean :la
|
|
|
|
|
2010-07-24 04:34:02 +00:00
|
|
|
depends_on 'gawk'
|
2009-09-27 04:41:34 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
# Since Homebrew optimizes for us, tell Hercules not to.
|
|
|
|
# (It gets it wrong anyway.)
|
2010-04-07 05:58:35 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
2009-09-27 04:41:34 +00:00
|
|
|
"--enable-optimization=no"
|
2013-12-05 15:55:02 +00:00
|
|
|
# Reported upstream:
|
|
|
|
# https://github.com/rbowler/spinhawk/issues/16
|
2013-12-05 04:21:30 +00:00
|
|
|
inreplace "hscutl.c", "SOL_TCP", "IPPROTO_TCP"
|
2009-09-27 04:41:34 +00:00
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|