class Parallel < Formula desc "Shell command parallelization utility" homepage "https://savannah.gnu.org/projects/parallel/" url "https://ftpmirror.gnu.org/gnu/parallel/parallel-20251122.tar.bz2" mirror "https://ftp.gnu.org/gnu/parallel/parallel-20251122.tar.bz2" sha256 "368d1982cfd9dbebb8cd0e444de6199559df94ac2dd1edf95f74350f0af1e84d" license "GPL-3.0-or-later" version_scheme 1 head "https://git.savannah.gnu.org/git/parallel.git", branch: "master" livecheck do url :homepage regex(/GNU Parallel v?(\d{6,8}).*? released/i) end bottle do sha256 cellar: :any_skip_relocation, all: "22c7571e71de4da4488f064f0c26b77c4da537322743710bf215c6d5ebc41ab3" end conflicts_with "moreutils", because: "both install a `parallel` executable" def install ENV.append_path "PATH", bin system "./configure", "--prefix=#{prefix}" system "make", "install" bash_completion.install share/"bash-completion/completions/parallel" end def caveats <<~EOS To use the --csv option, the Perl Text::CSV module has to be installed. You can install it via: perl -MCPAN -e'install Text::CSV' EOS end test do assert_equal "test\ntest\n", shell_output("#{bin}/parallel --will-cite echo ::: test test") end end