From 8849a36a56c007bf0c046c320b7d700b299e2ae6 Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Sun, 28 Dec 2014 21:48:02 +0800 Subject: gnu-getopt: modernize --- Library/Formula/gnu-getopt.rb | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'Library/Formula') 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 -- cgit v1.2.3