aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/findutils.rb
diff options
context:
space:
mode:
authorDominyk Tiller2014-11-13 03:54:43 +0000
committerMike McQuaid2014-11-13 08:35:40 +0000
commitac30d8c827a701ad36245cd93681811103e719aa (patch)
tree3b54326a819e1b756017efea1f653ef651be7859 /Library/Formula/findutils.rb
parentdc2f097118c0a9a7dff1d7ab472957c4d48eb19b (diff)
downloadhomebrew-ac30d8c827a701ad36245cd93681811103e719aa.tar.bz2
findutils: option depreciation
Depreciates the now defunct default-names option in favour of with-default-names. Adds a test. Closes #34147. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula/findutils.rb')
-rw-r--r--Library/Formula/findutils.rb22
1 files changed, 14 insertions, 8 deletions
diff --git a/Library/Formula/findutils.rb b/Library/Formula/findutils.rb
index 53ed5583a..395e6b80a 100644
--- a/Library/Formula/findutils.rb
+++ b/Library/Formula/findutils.rb
@@ -1,10 +1,10 @@
-require 'formula'
+require "formula"
class Findutils < Formula
- homepage 'http://www.gnu.org/software/findutils/'
- url 'http://ftpmirror.gnu.org/findutils/findutils-4.4.2.tar.gz'
- mirror 'http://ftp.gnu.org/gnu/findutils/findutils-4.4.2.tar.gz'
- sha1 'e8dd88fa2cc58abffd0bfc1eddab9020231bb024'
+ homepage "http://www.gnu.org/software/findutils/"
+ url "http://ftpmirror.gnu.org/findutils/findutils-4.4.2.tar.gz"
+ mirror "https://ftp.gnu.org/gnu/findutils/findutils-4.4.2.tar.gz"
+ sha1 "e8dd88fa2cc58abffd0bfc1eddab9020231bb024"
bottle do
sha1 "aa891bdc442314c4aeb3f1a14d9b3d5ebe037332" => :mavericks
@@ -12,16 +12,22 @@ class Findutils < Formula
sha1 "bc7e41186d3a3610a417b4dd5fd9a874f9b21c58" => :lion
end
- 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"
def install
args = ["--prefix=#{prefix}",
"--localstatedir=#{var}/locate",
"--disable-dependency-tracking",
"--disable-debug"]
- 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
+
+ test do
+ system "#{bin}/gfind", "--version"
end
end