homebrew-core/Formula/nodenv.rb
Jason Karns 0d3598bedf nodenv 1.0.0
update urls

nodenv has moved from oinutter to nodenv github org

Closes Homebrew/homebrew#48380.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2016-01-23 12:31:58 +00:00

29 lines
875 B
Ruby

class Nodenv < Formula
desc "Manage multiple NodeJS versions"
homepage "https://github.com/nodenv/nodenv"
url "https://github.com/nodenv/nodenv/archive/v1.0.0.tar.gz"
sha256 "1b7d0a43f27d92d12af2658ac297b397b6b5b1e25af48e77de2e7e8675083586"
head "https://github.com/nodenv/nodenv.git"
bottle :unneeded
depends_on "node-build" => :recommended
def install
inreplace "libexec/nodenv", "/usr/local", HOMEBREW_PREFIX
prefix.install "bin", "libexec", "completions"
end
def caveats; <<-EOS.undent
To use Homebrew's directories rather than ~/.nodenv add to your profile:
export NODENV_ROOT=#{var}/nodenv
To enable shims and autocompletion add to your profile:
if which nodenv > /dev/null; then eval "$(nodenv init -)"; fi
EOS
end
test do
shell_output("eval \"$(#{bin}/nodenv init -)\" && nodenv --version")
end
end