mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-28 03:49:49 -05:00
subversion - warn if JAVA_HOME is set
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>
This commit is contained in:
1 parent
9756003570
commit
809a18aa71
1 file changed
+10
-4
@@ -68,10 +68,16 @@ class Subversion <Formula
|
||||
end
|
||||
|
||||
def install
|
||||
if build_java? and not build_universal?
|
||||
opoo "A non-Universal Java build was requested."
|
||||
puts "To use Java bindings with various Java IDEs, you might need a universal build:"
|
||||
puts " brew install --universal --java subversion"
|
||||
if build_java?
|
||||
unless build_universal?
|
||||
opoo "A non-Universal Java build was requested."
|
||||
puts "To use Java bindings with various Java IDEs, you might need a universal build:"
|
||||
puts " brew install subversion --universal --java"
|
||||
end
|
||||
|
||||
unless (ENV["JAVA_HOME"] or "").empty?
|
||||
opoo "JAVA_HOME is set. Try unsetting it if JNI headers cannot be found."
|
||||
end
|
||||
end
|
||||
|
||||
ENV.universal_binary if build_universal?
|
||||
|
||||
Reference in new issue
Block a user