Use opt paths in keg-only messages
This commit is contained in:
parent
05b91e3d29
commit
57df15afd0
@ -436,19 +436,21 @@ end
|
|||||||
|
|
||||||
class Formula
|
class Formula
|
||||||
def keg_only_text
|
def keg_only_text
|
||||||
# Add indent into reason so undent won't truncate the beginnings of lines
|
s = "This formula is keg-only: so it was not symlinked into #{HOMEBREW_PREFIX}."
|
||||||
reason = self.keg_only_reason.to_s.gsub(/[\n]/, "\n ")
|
s << "\n\n#{keg_only_reason.to_s}"
|
||||||
return <<-EOS.undent
|
if lib.directory? or include.directory?
|
||||||
This formula is keg-only, so it was not symlinked into #{HOMEBREW_PREFIX}.
|
s <<
|
||||||
|
<<-EOS.undent_________________________________________________________72
|
||||||
|
|
||||||
#{reason}
|
|
||||||
|
|
||||||
Generally there are no consequences of this for you.
|
Generally there are no consequences of this for you. If you build your
|
||||||
If you build your own software and it requires this formula, you'll need
|
own software and it requires this formula, you'll need to add to your
|
||||||
to add its lib & include paths to your build variables:
|
build variables:
|
||||||
|
|
||||||
LDFLAGS -L#{lib}
|
EOS
|
||||||
CPPFLAGS -I#{include}
|
s << " LDFLAGS: -L#{HOMEBREW_PREFIX}/opt/#{name}/lib\n" if lib.directory?
|
||||||
EOS
|
s << " CPPFLAGS: -I#{HOMEBREW_PREFIX}/opt/#{name}/include\n" if include.directory?
|
||||||
|
end
|
||||||
|
s << "\n"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user