2010-07-02 18:08:02 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class GnuGetopt < Formula
|
2013-01-28 02:54:11 +00:00
|
|
|
homepage 'http://software.frodo.looijaard.name/getopt/'
|
2013-05-25 18:11:47 +00:00
|
|
|
url 'http://software.frodo.looijaard.name/getopt/files/getopt-1.1.5.tar.gz'
|
|
|
|
sha1 '9090eb46ac92f2fd2749ca4121e81aaad40f325d'
|
2010-07-02 18:08:02 +00:00
|
|
|
|
2014-03-13 20:14:00 +00:00
|
|
|
bottle do
|
|
|
|
sha1 "6eabcaf1e8a8942c7211279f4950ecd002a8600f" => :mavericks
|
|
|
|
sha1 "68382964c9d56b44c8f149dcb2f7632809dff87d" => :mountain_lion
|
|
|
|
sha1 "4a344addaaac7afef511d0fa29d9daaa32ed5b39" => :lion
|
|
|
|
end
|
|
|
|
|
2010-07-02 18:08:02 +00:00
|
|
|
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|
|
2014-02-25 06:30:34 +00:00
|
|
|
gettext = Formula['gettext']
|
2010-07-02 18:08:02 +00:00
|
|
|
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
|