Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

gnu-prolog: support OSX x86-64

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
  • Loading branch information...
commit fab47234436183a1ce490d7ee9968f95dd5e05c1 1 parent 782e702
@ichizok ichizok authored adamv committed
Showing with 15 additions and 6 deletions.
  1. +15 −6 Library/Formula/gnu-prolog.rb
View
21 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
Please sign in to comment.
Something went wrong with that request. Please try again.