homebrew-core/Formula/gnu-getopt.rb
Mike Griepentrog 3a67b554ec gnu-getopt 1.1.5
Closes Homebrew/homebrew#20105.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-05-27 18:22:34 -07:00

20 lines
587 B
Ruby

require 'formula'
class GnuGetopt < Formula
homepage 'http://software.frodo.looijaard.name/getopt/'
url 'http://software.frodo.looijaard.name/getopt/files/getopt-1.1.5.tar.gz'
sha1 '9090eb46ac92f2fd2749ca4121e81aaad40f325d'
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