2013-06-08 20:43:44 +00:00
|
|
|
class Exenv < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Elixir versions management tool"
|
2015-05-23 11:56:46 +00:00
|
|
|
homepage "https://github.com/mururu/exenv"
|
|
|
|
url "https://github.com/mururu/exenv/archive/v0.1.0.tar.gz"
|
|
|
|
sha256 "368095760ecc386a0930954f5f0ce7cea977641fe6d27b1beff032f512598a58"
|
2013-06-08 20:43:44 +00:00
|
|
|
|
2015-05-23 11:56:46 +00:00
|
|
|
head "https://github.com/mururu/exenv.git"
|
2013-06-08 20:43:44 +00:00
|
|
|
|
|
|
|
def install
|
2015-05-23 11:56:46 +00:00
|
|
|
inreplace "libexec/exenv", "/usr/local", HOMEBREW_PREFIX
|
|
|
|
prefix.install Dir["*"]
|
2013-06-08 20:43:44 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
To use Homebrew's directories rather than ~/.exenv add to your profile:
|
2015-05-23 11:56:46 +00:00
|
|
|
export "EXENV_ROOT=#{var}/exenv"
|
2013-06-08 20:43:44 +00:00
|
|
|
|
|
|
|
To enable shims and autocompletion add to your profile:
|
|
|
|
if which exenv > /dev/null; then eval "$(exenv init -)"; fi
|
|
|
|
EOS
|
|
|
|
end
|
2015-05-23 11:56:46 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/exenv", "init", "-"
|
|
|
|
end
|
2013-06-08 20:43:44 +00:00
|
|
|
end
|