From ce59cf54d92b6c53cccb0e89bb4e3ef2a50e9b22 Mon Sep 17 00:00:00 2001 From: Michael Koval Date: Sat, 24 Dec 2011 03:32:03 -0500 Subject: [PATCH] octave: add upstream patch to fix broken build Signed-off-by: Adam Vandenberg --- Formula/octave.rb | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Formula/octave.rb b/Formula/octave.rb index 1b6cc95add..6376192efc 100644 --- a/Formula/octave.rb +++ b/Formula/octave.rb @@ -62,6 +62,14 @@ class Octave < Formula ] end + def patches + # Upstream patch that fixes a bug that causes the build to fail when BSD + # sed is used instead of GNU sed. See changeset 13791:4cf7356a99d0. See + # http://hg.savannah.gnu.org/hgweb/octave/rev/4cf7356a99d0 for more + # information. + DATA + end + def install ENV.fortran @@ -109,3 +117,15 @@ class Octave < Formula s = native_caveats + s unless no_native? end end + +__END__ +--- a/src/find-defun-files.sh Wed Nov 02 09:24:48 2011 -0700 ++++ b/src/find-defun-files.sh Wed Nov 02 12:40:29 2011 -0400 +@@ -21,6 +21,6 @@ + file="$srcdir/$arg" + fi + if [ "`$EGREP -l "$DEFUN_PATTERN" $file`" ]; then +- echo "$file" | $SED 's,.*/,,; s/\.\(cc\|yy\|ll\)$/.df/'; ++ echo "$file" | $SED 's,.*/,,; s/\.cc$/.df/; s/\.ll$/.df/; s/\.yy$/.df/'; + fi + done