homebrew-core/Formula/exenv.rb
Baptiste Fontaine 1233b584d0 exenv: test added
Closes Homebrew/homebrew#40013.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-05-23 21:05:53 +01:00

25 lines
707 B
Ruby

class Exenv < Formula
homepage "https://github.com/mururu/exenv"
url "https://github.com/mururu/exenv/archive/v0.1.0.tar.gz"
sha256 "368095760ecc386a0930954f5f0ce7cea977641fe6d27b1beff032f512598a58"
head "https://github.com/mururu/exenv.git"
def install
inreplace "libexec/exenv", "/usr/local", HOMEBREW_PREFIX
prefix.install Dir["*"]
end
def caveats; <<-EOS.undent
To use Homebrew's directories rather than ~/.exenv add to your profile:
export "EXENV_ROOT=#{var}/exenv"
To enable shims and autocompletion add to your profile:
if which exenv > /dev/null; then eval "$(exenv init -)"; fi
EOS
end
test do
system "#{bin}/exenv", "init", "-"
end
end