diff options
| author | Richard Osborn | 2011-08-28 21:17:39 -0500 |
|---|---|---|
| committer | Jack Nagel | 2011-08-30 20:20:43 -0500 |
| commit | f363b05336af3cc9a63db75235bbab864e366c28 (patch) | |
| tree | f87175bbe364c8befda6e93d44acf84c30adc405 /Library/Formula | |
| parent | 4a8587acc53e03f2b6af7f534777bbf3476974e5 (diff) | |
| download | homebrew-f363b05336af3cc9a63db75235bbab864e366c28.tar.bz2 | |
gnu-prolog: use inreplace instead of a patch
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/gnu-prolog.rb | 30 |
1 files changed, 4 insertions, 26 deletions
diff --git a/Library/Formula/gnu-prolog.rb b/Library/Formula/gnu-prolog.rb index 95703bd43..b35df74db 100644 --- a/Library/Formula/gnu-prolog.rb +++ b/Library/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';; |
