subversion --perl tries to install to `/Library/Perl` which is
not writeable by the regular user and causes a build error.
- Set the perl `DESTDIR=#{prefix}` and add a caveat.
FixesHomebrew/homebrew#15352ClosesHomebrew/homebrew#15652.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
The MacOS.version? family of methods (other than "leopard?") are poorly
defined and lead to confusing code. Replace them in formulae with more
explicit comparisons.
"MacOS.version" is a special version object that can be compared to
numerics, symbols, and strings using the standard Ruby comparison
methods.
The old methods were moved to compat when the version comparison code
was merged, and they must remain there "forever", but they should not be
used in new code.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This will find EXTERN.h correctly even if the user has installed a
custom perl installation, such as from perlbrew. See Homebrew/homebrew#11619 for a bit
more info.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Subversion will fail with clang when it queries the compiler
used to build system Python and finds it is llvm-gcc. It then
uses the clang cflags with llvm-gcc to compile the python bindings
which causes the usual unknown `-march=native` flag issue.
Pre-define the configure variable `ac_cv_python_compile` as ENV.cc
FixesHomebrew/homebrew#10914.
ClosesHomebrew/homebrew#12059.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Subversion's JavaHL library depends on JNI headers that are only available by
installing Developer Tools. Setting JAVA_HOME to something in /System/Library
breaks because JNI headers aren't symlinked into the framework directories
here. I believe the proper JAVA_HOME setting, if necessary, is the output of
/usr/libexec/java_home, but the same effect can be achieved by not setting
JAVA_HOME at all.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Inspired from the +unicode_path variant of the Macports subversion package.
This option activates a patch to enable Mac OS X unicode paths handling.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>