aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/hercules.rb
diff options
context:
space:
mode:
authorJack Nagel2014-05-24 20:12:10 -0500
committerJack Nagel2014-05-24 20:14:20 -0500
commit9d149b7501bef3ebbff2af0cb9b6bc0404af4de6 (patch)
treefaef1d802708a68fb5125961089b3be26bc824d7 /Library/Formula/hercules.rb
parent405cbcdfb89db66f5b34b3f1815ba2448f873563 (diff)
downloadhomebrew-9d149b7501bef3ebbff2af0cb9b6bc0404af4de6.tar.bz2
hercule: simplify build
- _FORTIFY_SOURCE=0 hack doesn't appear to be necessary - --disable-ipv6 doesn't appear to be necessary - autogen.sh uses --add-missing
Diffstat (limited to 'Library/Formula/hercules.rb')
-rw-r--r--Library/Formula/hercules.rb45
1 files changed, 14 insertions, 31 deletions
diff --git a/Library/Formula/hercules.rb b/Library/Formula/hercules.rb
index d9d5c4e50..340958191 100644
--- a/Library/Formula/hercules.rb
+++ b/Library/Formula/hercules.rb
@@ -1,43 +1,26 @@
-require 'formula'
+require "formula"
class Hercules < Formula
- homepage 'http://www.hercules-390.eu/'
- url 'http://downloads.hercules-390.eu/hercules-3.10.tar.gz'
- sha1 '10599041c7e5607cf2e7ecc76802f785043e2830'
+ homepage "http://www.hercules-390.eu/"
+ url "http://downloads.hercules-390.eu/hercules-3.10.tar.gz"
+ sha1 "10599041c7e5607cf2e7ecc76802f785043e2830"
skip_clean :la
head do
- url 'https://github.com/hercules-390/hyperion.git'
- depends_on :autoconf
- depends_on :automake
- depends_on :libtool
+ url "https://github.com/hercules-390/hyperion.git"
+ depends_on "autoconf" => :build
+ depends_on "automake" => :build
+ depends_on "libtool" => :build
end
def install
- 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 "./autogen.sh" if build.head?
+ system "./configure", "--disable-debug",
+ "--disable-dependency-tracking",
+ "--prefix=#{prefix}",
+ "--enable-optimization=no"
system "make"
- system "make install"
+ system "make", "install"
end
end