Skip to content

Instantly share code, notes, and snippets.

@dreadjr
Created December 6, 2019 19:11
Show Gist options
  • Save dreadjr/4e8f080b41d9362ac2cd5ecf63d9250e to your computer and use it in GitHub Desktop.
Save dreadjr/4e8f080b41d9362ac2cd5ecf63d9250e to your computer and use it in GitHub Desktop.
zplug-gnu-parallel
class Parallel < Formula
desc "Shell command parallelization utility"
homepage "https://savannah.gnu.org/projects/parallel/"
url "https://ftp.gnu.org/gnu/parallel/parallel-20191122.tar.bz2"
mirror "https://ftpmirror.gnu.org/parallel/parallel-20191122.tar.bz2"
sha256 "182a93155dea12ddc36b7e85fd2d8342d7a88e7a449e4161a5a291e1f4989507"
head "https://git.savannah.gnu.org/git/parallel.git"
bottle do
cellar :any_skip_relocation
sha256 "3612b7077dfa5d67d13e66c77680eaeb876f397f79724c90eefe9f7291fc8892" => :catalina
sha256 "3612b7077dfa5d67d13e66c77680eaeb876f397f79724c90eefe9f7291fc8892" => :mojave
sha256 "3612b7077dfa5d67d13e66c77680eaeb876f397f79724c90eefe9f7291fc8892" => :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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment