2010-07-02 18:08:02 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class GnuGetopt < Formula
|
2010-07-02 18:08:02 +00:00
|
|
|
url 'http://software.frodo.looijaard.name/getopt/files/getopt-1.1.4.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '8b9b329b3a8f5d52c91c0381616ecbd1ba291486'
|
2010-07-02 18:08:02 +00:00
|
|
|
homepage 'http://software.frodo.looijaard.name/getopt/'
|
|
|
|
|
|
|
|
depends_on 'gettext'
|
|
|
|
|
2010-04-07 05:58:35 +00:00
|
|
|
keg_only :provided_by_osx
|
2010-07-02 18:08:02 +00:00
|
|
|
|
|
|
|
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
|