aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/gnu-indent.rb
diff options
context:
space:
mode:
authorDominyk Tiller2014-11-13 04:07:34 +0000
committerJack Nagel2014-11-13 22:57:27 -0600
commitee836bba4d34efc0268c7c9152d4d6595a1d520d (patch)
tree2c76a4bf79e749797a850600a8e639fa008ac79a /Library/Formula/gnu-indent.rb
parent59dbcc62f2c4c855bf5e3b4ba1735e5bd0573df3 (diff)
downloadhomebrew-ee836bba4d34efc0268c7c9152d4d6595a1d520d.tar.bz2
gnu-indent: option depreciation
Depreciates the default names option in favour of with-default-names, adds a test. Closes #34149. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula/gnu-indent.rb')
-rw-r--r--Library/Formula/gnu-indent.rb20
1 files changed, 11 insertions, 9 deletions
diff --git a/Library/Formula/gnu-indent.rb b/Library/Formula/gnu-indent.rb
index bd5a61661..230b883ca 100644
--- a/Library/Formula/gnu-indent.rb
+++ b/Library/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