24 lines
693 B
Ruby
24 lines
693 B
Ruby
|
class Immortal < Formula
|
||
|
desc "OS agnostic (*nix) cross-platform supervisor"
|
||
|
homepage "https://immortal.run/"
|
||
|
url "https://github.com/immortal/immortal/archive/0.13.2.tar.gz"
|
||
|
sha256 "f34674720828c984ef34df33b75b614fabe81e4fd50eb152746a33a273daa4f9"
|
||
|
head "https://github.com/immortal/immortal.git"
|
||
|
|
||
|
depends_on "go" => :build
|
||
|
|
||
|
def install
|
||
|
ENV["GOPATH"] = buildpath
|
||
|
(buildpath/"src/github.com/immortal/immortal").install buildpath.children
|
||
|
cd "src/github.com/immortal/immortal" do
|
||
|
system "make", "install", "DESTDIR=#{prefix}"
|
||
|
end
|
||
|
end
|
||
|
|
||
|
test do
|
||
|
system bin/"immortal", "-v"
|
||
|
system bin/"immortalctl", "-v"
|
||
|
system bin/"immortaldir", "-v"
|
||
|
end
|
||
|
end
|