Skip to content

Commit

Permalink
goredo 0.12.3 (new formula)
Browse files Browse the repository at this point in the history
Package http://www.goredo.cypherpunks.ru/Install.html

Closes #68846.

Signed-off-by: Carlo Cabrera <[email protected]>
  • Loading branch information
Kai Ian Hendry authored and carlocab committed Jan 14, 2021
1 parent e3f7566 commit 7386c76
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions Formula/goredo.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
class Goredo < Formula
desc "Go implementation of djb's redo, a Makefile replacement that sucks less"
homepage "http://www.goredo.cypherpunks.ru/"
url "http://www.goredo.cypherpunks.ru/download/goredo-0.12.3.tar.zst"
version "0.12.3"
sha256 "d735a27312504914ec4413abc6719c52800d5aa5defb135e871396299b2c720f"
license "GPL-3.0-only"

depends_on "go" => :build
depends_on "zstd" => :build

def install
goredo_prefix = "goredo-#{version}"
system "tar", "--use-compress-program", "unzstd", "-xvf", "#{goredo_prefix}.tar.zst"
cd "#{goredo_prefix}/src" do
system "go", "build", *std_go_args, "-mod=vendor"
end
cd bin do
system "./goredo", "-symlinks"
end
end

test do
(testpath/"gore.do").write <<~EOS
echo YOU ARE LIKELY TO BE EATEN BY A GRUE >&2
EOS
assert_equal "YOU ARE LIKELY TO BE EATEN BY A GRUE\n", shell_output("#{bin}/redo -no-progress gore 2>&1")
end
end

0 comments on commit 7386c76

Please sign in to comment.