7bd947eb0b
* Use new "url" features * Use keg_only DSL * Use "skip_clean :all" DSL * Whitespace and style cleanups * Make bash invocations less silly * Use new man2-man8 helpers * Remove "FileUtils." since it is included in Formula * Use real names for deps instead of aliases * ENV.x11 now updates path, so remove that from individual brews
20 lines
577 B
Ruby
20 lines
577 B
Ruby
require 'formula'
|
|
|
|
class GnuGetopt <Formula
|
|
url 'http://software.frodo.looijaard.name/getopt/files/getopt-1.1.4.tar.gz'
|
|
md5 '02188ca68da27c4175d6e9f3da732101'
|
|
homepage 'http://software.frodo.looijaard.name/getopt/'
|
|
|
|
depends_on 'gettext'
|
|
|
|
keg_only :provided_by_osx
|
|
|
|
def install
|
|
inreplace 'Makefile' do |s|
|
|
gettext = Formula.factory 'gettext'
|
|
s.change_make_var! "CPPFLAGS", "\\1 -I#{gettext.include}"
|
|
s.change_make_var! "LDFLAGS", "\\1 -L#{gettext.lib} -lintl"
|
|
end
|
|
system "make", "prefix=#{prefix}", "mandir=#{man}", "install"
|
|
end
|
|
end
|