homebrew-core/Formula/parallel.rb
2019-10-03 23:45:09 -04:00

28 lines
1 KiB
Ruby

class Parallel < Formula
desc "Shell command parallelization utility"
homepage "https://savannah.gnu.org/projects/parallel/"
url "https://ftp.gnu.org/gnu/parallel/parallel-20190922.tar.bz2"
mirror "https://ftpmirror.gnu.org/parallel/parallel-20190922.tar.bz2"
sha256 "282fee2cb40a54ba32a922446365b782c4f461f848432b969de5a17b33193c63"
head "https://git.savannah.gnu.org/git/parallel.git"
bottle do
cellar :any_skip_relocation
sha256 "1a58adcb2e33406b57eb7bec48147e04dbe9300f84ae14a6290935669a5c5143" => :catalina
sha256 "1a58adcb2e33406b57eb7bec48147e04dbe9300f84ae14a6290935669a5c5143" => :mojave
sha256 "1a58adcb2e33406b57eb7bec48147e04dbe9300f84ae14a6290935669a5c5143" => :high_sierra
end
conflicts_with "moreutils",
:because => "both install a `parallel` executable."
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