class Parallel < Formula desc "Shell command parallelization utility" homepage "https://savannah.gnu.org/projects/parallel/" url "https://ftp.gnu.org/gnu/parallel/parallel-20180522.tar.bz2" mirror "https://ftpmirror.gnu.org/parallel/parallel-20180522.tar.bz2" sha256 "eb017e2aea57464c3c91bd1120d419a303d2c204c35ec41fc156e6536ffa0cce" head "https://git.savannah.gnu.org/git/parallel.git" bottle do cellar :any_skip_relocation sha256 "c40a7387030bc0bf2b04842685fc750d3d5965ff7554611eba6603d3fbc03956" => :high_sierra sha256 "c40a7387030bc0bf2b04842685fc750d3d5965ff7554611eba6603d3fbc03956" => :sierra sha256 "c40a7387030bc0bf2b04842685fc750d3d5965ff7554611eba6603d3fbc03956" => :el_capitan end if Tab.for_name("moreutils").with?("parallel") conflicts_with "moreutils", :because => "both install a `parallel` executable." end def install system "./configure", "--prefix=#{prefix}" system "make", "install" end test do assert_equal "test\ntest\n", shell_output("#{bin}/parallel --will-cite echo ::: test test") end end