29 lines
1.3 KiB
Ruby
29 lines
1.3 KiB
Ruby
class Direnv < Formula
|
|
desc "Load/unload environment variables based on $PWD"
|
|
homepage "https://direnv.net/"
|
|
url "https://github.com/direnv/direnv/archive/v2.28.0.tar.gz"
|
|
sha256 "fa539c63034b6161d8238299bb516dcec79e8905cd43ff2b9559ad6bf047cc93"
|
|
license "MIT"
|
|
head "https://github.com/direnv/direnv.git"
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, arm64_monterey: "325b31ac3f1915ed7182cd8d7cf5a409a892307927a6505d4d8dfb96a2e2ac49"
|
|
sha256 cellar: :any_skip_relocation, arm64_big_sur: "8fabe33920273c377ace461d6f2ff02a78569b230b7625402086ea4ebeffff38"
|
|
sha256 cellar: :any_skip_relocation, monterey: "9966eeeeb204359d38ede9062d6e861f668e6becbe92b1a93b6f09e7f3d8bf24"
|
|
sha256 cellar: :any_skip_relocation, big_sur: "64680c7245384e3cd59c4e0b9a1f32e5f0a26f5591b77c3736ed9160191571c3"
|
|
sha256 cellar: :any_skip_relocation, catalina: "c10f6a3b721b2c5c12b8bb3604bba9af3946edcada447327afa074b6c39e6996"
|
|
sha256 cellar: :any_skip_relocation, mojave: "8f1a615929f583478efb0c6853754dba806f94d95ed67c43f36062d95e50c636"
|
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "4825370bfed48a27d68702df57dc7026d72d6329d14cd7f3722f09ad07021a1c"
|
|
end
|
|
|
|
depends_on "go" => :build
|
|
|
|
def install
|
|
system "make", "install", "PREFIX=#{prefix}"
|
|
end
|
|
|
|
test do
|
|
system bin/"direnv", "status"
|
|
end
|
|
end
|