gnu-getopt: use Formula[]

This commit is contained in:
Adam Vandenberg 2014-02-24 22:30:34 -08:00
parent 794d0283b0
commit bf9d0d7715

View file

@ -11,7 +11,7 @@ class GnuGetopt < Formula
def install
inreplace 'Makefile' do |s|
gettext = Formula.factory 'gettext'
gettext = Formula['gettext']
s.change_make_var! "CPPFLAGS", "\\1 -I#{gettext.include}"
s.change_make_var! "LDFLAGS", "\\1 -L#{gettext.lib} -lintl"
end