Only check for Jars if lib exists.
This commit is contained in:
parent
4b198a6664
commit
1146eec3bf
@ -158,12 +158,14 @@ def install f
|
|||||||
end
|
end
|
||||||
|
|
||||||
# Check for Jars in lib
|
# Check for Jars in lib
|
||||||
unless f.lib.children.select{|g| g.to_s =~ /\.jar$/}.empty?
|
if File.exist?(f.lib)
|
||||||
opoo 'JARs where installed to "lib".'
|
unless f.lib.children.select{|g| g.to_s =~ /\.jar$/}.empty?
|
||||||
puts "Installing JARs to \"lib\" can cause conflicts between packages."
|
opoo 'JARs were installed to "lib".'
|
||||||
puts "For Java software, it is typically better for the formula to"
|
puts "Installing JARs to \"lib\" can cause conflicts between packages."
|
||||||
puts "install to \"libexec\" and then symlink or wrap binaries into \"bin\"."
|
puts "For Java software, it is typically better for the formula to"
|
||||||
puts "See \"activemq\", \"jruby\", etc. for examples."
|
puts "install to \"libexec\" and then symlink or wrap binaries into \"bin\"."
|
||||||
|
puts "See \"activemq\", \"jruby\", etc. for examples."
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# link from Cellar to Prefix
|
# link from Cellar to Prefix
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user