From 4f63cc29f6d9af218675dc9ef0f68b38def624c7 Mon Sep 17 00:00:00 2001 From: Richard Osborn Date: Sun, 28 Aug 2011 21:17:39 -0500 Subject: [PATCH] gnu-prolog: use inreplace instead of a patch Signed-off-by: Jack Nagel --- Formula/gnu-prolog.rb | 30 ++++-------------------------- 1 file changed, 4 insertions(+), 26 deletions(-) diff --git a/Formula/gnu-prolog.rb b/Formula/gnu-prolog.rb index 95703bd4388..b35df74db7c 100644 --- a/Formula/gnu-prolog.rb +++ b/Formula/gnu-prolog.rb @@ -9,14 +9,14 @@ class GnuProlog < Formula fails_with_llvm - # Applies fix as seen here: - # http://lists.gnu.org/archive/html/users-prolog/2011-07/msg00013.html - def patches; DATA; end - def install ENV.j1 # make won't run in parallel Dir.chdir 'src' do + # Applies fix as seen here: + # http://lists.gnu.org/archive/html/users-prolog/2011-07/msg00013.html + inreplace "configure", "darwin10", "darwin1" + system "./configure", "--prefix=#{prefix}" system "make" system "make install-strip" @@ -24,25 +24,3 @@ class GnuProlog < Formula end end -__END__ -diff -rupN a/src/configure b/src/configure ---- a/src/configure 2011-08-19 14:45:19.000000000 -0500 -+++ b/src/configure 2011-08-19 14:47:00.000000000 -0500 -@@ -3700,7 +3700,7 @@ else - fi - AS0=as - case "$host" in -- i*86*darwin10*) ASFLAGS='-arch i686';; -+ i*86*darwin1*) ASFLAGS='-arch i686';; - x86_64*solaris*) AS0=gas; ASFLAGS='--64';; - *) if test "$with_gas" = yes; then AS0=gas; fi;; - esac -@@ -4614,7 +4614,7 @@ else - - CFLAGS_MACHINE= - case "$host" in -- i*86*darwin10*) CFLAGS_MACHINE='-march=i686 -m32';; -+ i*86*darwin1*) CFLAGS_MACHINE='-march=i686 -m32';; - mips*irix*) CFLAGS_MACHINE='-march=4000';; - *sparc*sunos4.1.3) CFLAGS_MACHINE='-msupersparc';; - *sparc*solaris) CFLAGS_MACHINE='-msupersparc';;