Files
2023-11-22 23:26:10 -08:00

31 lines
948 B
Ruby

class Findutils < Formula
desc "Collection of GNU find, xargs, and locate"
homepage "https://www.gnu.org/software/findutils/"
url "http://ftpmirror.gnu.org/findutils/findutils-4.9.0.tar.xz"
mirror "https://ftp.gnu.org/gnu/findutils/findutils-4.9.0.tar.xz"
sha256 "a2bfb8c09d436770edc59f50fa483e785b161a3b7b9d547573cb08065fd462fe"
bottle do
sha256 "9a4f2d8a09718df3da29ba5bdca5eb4c92cf28b00163966bea7ccd005c7188db" => :tiger_altivec
end
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" if build.without? "default-names"
system "./configure", *args
system "make", "install"
end
test do
system "#{bin}/gfind", "--version"
end
end