hercules --HEAD

Closes Homebrew/homebrew#28922.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
master
Ian McAlpine 2014-05-02 21:15:14 +01:00 committed by Adam Vandenberg
parent d5d2cd330b
commit 8411151c7a
1 changed files with 29 additions and 5 deletions

View File

@ -7,12 +7,36 @@ class Hercules < Formula
skip_clean :la
head do
url 'https://github.com/hercules-390/hyperion.git'
depends_on :autoconf
depends_on :automake
depends_on :libtool
end
def install
# Since Homebrew optimizes for us, tell Hercules not to.
# (It gets it wrong anyway.)
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--enable-optimization=no"
if build.head?
ENV.append 'CFLAGS', '-D_FORTIFY_SOURCE=0' if MacOS.version >= :maverick
# bundled autoconf.sh omits --add-missing
system "aclocal -I m4 -I autoconf"
system "autoheader"
system "automake --add-missing"
system "autoconf"
# IPv6 doesn't build on OSX
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--disable-ipv6",
"--enable-optimization=no"
else
# Since Homebrew optimizes for us, tell Hercules not to.
# (It gets it wrong anyway.)
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--enable-optimization=no"
end
system "make"
system "make install"
end