Fixes Homebrew/homebrew#14637; cppunit configure failure

This commit is contained in:
Max Howell 2012-09-03 17:27:19 -04:00
parent 0d69f9e24e
commit d0a970c16e

View file

@ -7,6 +7,10 @@ class Cppunit < Formula
option :universal
def patches
DATA
end
def install
ENV.universal_binary if build.universal?
@ -15,3 +19,19 @@ class Cppunit < Formula
system "make install"
end
end
# configure script is broken, the final rm -f fails because it tries to file
# delete a directory. superenv exposes this bug for some reason, but std-env
# does not. Weird.
__END__
diff --git a/configure b/configure
index 424eea6..11e73ad 100755
--- a/configure
+++ b/configure
@@ -23318,5 +23318,5 @@ echo X/* automatically generated */ |
echo "$as_me: error: input file $ac_prefix_conf_IN does not exist, skip generating $ac_prefix_conf_OUT" >&2;}
{ (exit 1); exit 1; }; }
fi
- rm -f conftest.*
+ rm -f conftest.* || true
fi