homebrew-core/Formula/gel.rb
Mike McQuaid 4e35a0a023
gel: generate manpages.
Closes #39228.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2019-04-25 13:07:02 -07:00

23 lines
608 B
Ruby

class Gel < Formula
desc "Modern gem manager"
homepage "https://gel.dev"
url "https://github.com/gel-rb/gel/archive/v0.2.0.tar.gz"
sha256 "7d69f745986c9c33272f080496aea53719d69d4f465993c740f432ef5f0a3bd3"
def install
ENV["PATH"] = "bin:#{ENV["HOME"]}/.local/gel/bin:#{ENV["PATH"]}"
system "gel", "install"
system "rake", "man"
bin.install "exe/gel"
prefix.install "lib"
man1.install Pathname.glob("man/man1/*.1")
end
test do
(testpath/"Gemfile").write <<~EOS
source "https://rubygems.org"
gem "gel"
EOS
system "#{bin}/gel", "install"
end
end