Removes any global methods from formulae, and moves #kext_prefix (which
seems to be at least somewhat abstractable) into the Formula class. The
only formula with global methods is now aspell; it (and its generating
script in contrib) has been changed to prefix that method with
`aspell_`, to minimize the risk of name collisions.
Closes#19331.
Closes#19343.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
- In subversion and gdal, because they used
HOMEBREW_PREFIX/lib instead of
Formula.factory('sqlite').opt_prefix
Closes#17005.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
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.
Fixes#15352Closes#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 #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
Fixes#10914.
Closes#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>