diff options
| author | ichizok | 2011-09-05 12:37:27 +0900 |
|---|---|---|
| committer | Adam Vandenberg | 2012-03-31 11:32:30 -0700 |
| commit | fab47234436183a1ce490d7ee9968f95dd5e05c1 (patch) | |
| tree | 2a93d10ca9c3747050144ff6ea8ac67baba3c9e8 /Library/Formula/gnu-prolog.rb | |
| parent | 782e7020bcb78fe5d260c16cabae7c3f92ace009 (diff) | |
| download | homebrew-fab47234436183a1ce490d7ee9968f95dd5e05c1.tar.bz2 | |
gnu-prolog: support OSX x86-64
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/gnu-prolog.rb')
| -rw-r--r-- | Library/Formula/gnu-prolog.rb | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/Library/Formula/gnu-prolog.rb b/Library/Formula/gnu-prolog.rb index 1acdb2679..1b01a040b 100644 --- a/Library/Formula/gnu-prolog.rb +++ b/Library/Formula/gnu-prolog.rb @@ -1,23 +1,32 @@ require 'formula' class GnuProlog < Formula - url 'http://gprolog.univ-paris1.fr/gprolog-1.4.0.tar.gz' homepage 'http://www.gprolog.org/' + url 'http://gprolog.univ-paris1.fr/gprolog-1.4.0.tar.gz' md5 'cc944e5637a04a9184c8aa46c947fd16' skip_clean :all - fails_with_llvm :build => 2334 + # Support OSX x86-64. See: + # https://github.com/mxcl/homebrew/pull/7428 + # http://lists.gnu.org/archive/html/users-prolog/2011-09/msg00004.html + # Includes previous inreplace fix from: + # http://lists.gnu.org/archive/html/users-prolog/2011-07/msg00013.html + def patches + "https://gist.github.com/raw/1191268/35db85d5cfe5ecd5699286bdd945856ea9cee1a1/patch-x86_64-darwin.diff" + end def install ENV.j1 # make won't run in parallel cd 'src' do - # Applies fix as seen here: - # http://lists.gnu.org/archive/html/users-prolog/2011-07/msg00013.html - inreplace "configure", "darwin10", "darwin1" + args = ["--prefix=#{prefix}"] + + if MacOS.prefer_64_bit? + args << "--build=x86_64-apple-darwin" << "--host=x86_64-apple-darwin" + end - system "./configure", "--prefix=#{prefix}" + system "./configure", *args system "make" system "make install-strip" end |
