From 6e55d22663e10288e7f3250833dd2ae259aed8db Mon Sep 17 00:00:00 2001 From: Dominyk Tiller Date: Thu, 13 Nov 2014 04:07:34 +0000 Subject: [PATCH] gnu-indent: option depreciation Depreciates the default names option in favour of with-default-names, adds a test. Closes Homebrew/homebrew#34149. Signed-off-by: Jack Nagel --- Formula/gnu-indent.rb | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/Formula/gnu-indent.rb b/Formula/gnu-indent.rb index bd5a616612..230b883ca3 100644 --- a/Formula/gnu-indent.rb +++ b/Formula/gnu-indent.rb @@ -1,14 +1,16 @@ -require 'formula' +require "formula" class GnuIndent < Formula - homepage 'http://www.gnu.org/software/indent/' - url 'http://ftpmirror.gnu.org/indent/indent-2.2.10.tar.gz' - mirror 'http://ftp.gnu.org/gnu/indent/indent-2.2.10.tar.gz' - sha1 '20fa8a7a4af6670c3254c8b87020291c3db37ed1' + homepage "https://www.gnu.org/software/indent/" + url "http://ftpmirror.gnu.org/indent/indent-2.2.10.tar.gz" + mirror "https://ftp.gnu.org/gnu/indent/indent-2.2.10.tar.gz" + sha1 "20fa8a7a4af6670c3254c8b87020291c3db37ed1" - depends_on 'gettext' + depends_on "gettext" - option 'default-names', "Do not prepend 'g' to the binary" + deprecated_option "default-names" => "with-default-names" + + option "with-default-names", "Do not prepend 'g' to the binary" # Fix broken include and missing build dependency patch :DATA @@ -21,10 +23,10 @@ class GnuIndent < Formula --mandir=#{man} ] - args << "--program-prefix=g" unless build.include? 'default-names' + args << "--program-prefix=g" if build.without? "default-names" system "./configure", *args - system "make install" + system "make", "install" end end