diff options
| author | Xu Cheng | 2014-12-28 21:48:02 +0800 |
|---|---|---|
| committer | Mike McQuaid | 2014-12-28 14:18:25 +0000 |
| commit | 8849a36a56c007bf0c046c320b7d700b299e2ae6 (patch) | |
| tree | 67625e693997ca5abf10f1302655227f2cc52f8f /Library/Formula/gnu-getopt.rb | |
| parent | 0bd07cbe548953098ff4b6e8009a825b90a65593 (diff) | |
| download | homebrew-8849a36a56c007bf0c046c320b7d700b299e2ae6.tar.bz2 | |
gnu-getopt: modernize
Diffstat (limited to 'Library/Formula/gnu-getopt.rb')
| -rw-r--r-- | Library/Formula/gnu-getopt.rb | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/Library/Formula/gnu-getopt.rb b/Library/Formula/gnu-getopt.rb index e7cf98631..9c50eb3e1 100644 --- a/Library/Formula/gnu-getopt.rb +++ b/Library/Formula/gnu-getopt.rb @@ -1,9 +1,7 @@ -require 'formula' - class GnuGetopt < Formula - homepage 'http://software.frodo.looijaard.name/getopt/' - url 'http://frodo.looijaard.name/system/files/software/getopt/getopt-1.1.5.tar.gz' - sha1 '9090eb46ac92f2fd2749ca4121e81aaad40f325d' + homepage "http://software.frodo.looijaard.name/getopt/" + url "http://frodo.looijaard.name/system/files/software/getopt/getopt-1.1.5.tar.gz" + sha1 "9090eb46ac92f2fd2749ca4121e81aaad40f325d" bottle do revision 1 @@ -12,13 +10,13 @@ class GnuGetopt < Formula sha1 "8c90689aca391072d2a557b8f8ebfe0eacbba2f2" => :mountain_lion end - depends_on 'gettext' + depends_on "gettext" keg_only :provided_by_osx def install - inreplace 'Makefile' do |s| - gettext = Formula['gettext'] + inreplace "Makefile" do |s| + gettext = Formula["gettext"] s.change_make_var! "CPPFLAGS", "\\1 -I#{gettext.include}" s.change_make_var! "LDFLAGS", "\\1 -L#{gettext.lib} -lintl" end |
