gnu-prolog: use inreplace instead of a patch

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
master
Richard Osborn 2011-08-28 21:17:39 -05:00 committed by Jack Nagel
parent b2989729dc
commit 4f63cc29f6
1 changed files with 4 additions and 26 deletions

View File

@ -9,14 +9,14 @@ class GnuProlog < Formula
fails_with_llvm 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 def install
ENV.j1 # make won't run in parallel ENV.j1 # make won't run in parallel
Dir.chdir 'src' do 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 "./configure", "--prefix=#{prefix}"
system "make" system "make"
system "make install-strip" system "make install-strip"
@ -24,25 +24,3 @@ class GnuProlog < Formula
end end
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';;