jscoverage-0.5.1 has a file with hardcoded gcc and g++, named
configure.gnu. inreplace those with ENV.cc and ENV.cxx.
It also has three places in js/configure where the conftest uses
int main {
but also has two return commands. The first return command,
return;
does not return a value. The second one does `return 0;`.
This causes an error building with clang during configure
because `int main` should return a value. inline patch those
by removing the extra return command so that it does a `return 0;`
All four of these issues have been bug reported to their tracker,
and the formula comments include a link to the bug report. The
issues exist in HEAD. This now builds with all the compilers in
Lion and Snow Leopard, though no runtime tests were done as this
is unfamiliar software.
FixesHomebrew/homebrew#11600.
ClosesHomebrew/homebrew#11611.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>