2017-05-29 19:22:51 +00:00
|
|
|
class Asdf < Formula
|
|
|
|
desc "Extendable version manager with support for Ruby, Node.js, Erlang & more"
|
|
|
|
homepage "https://github.com/asdf-vm"
|
2018-03-11 23:32:35 +00:00
|
|
|
url "https://github.com/asdf-vm/asdf/archive/v0.4.3.tar.gz"
|
|
|
|
sha256 "5b8b84721ff58fc857ddb01561b616f9a8cad18b4f0df3b4c44e1f7afc31eedf"
|
2017-05-29 19:22:51 +00:00
|
|
|
|
|
|
|
bottle :unneeded
|
|
|
|
|
2018-03-19 09:56:47 +00:00
|
|
|
depends_on "autoconf"
|
|
|
|
depends_on "automake"
|
|
|
|
depends_on "libtool"
|
2017-05-29 19:22:51 +00:00
|
|
|
depends_on "coreutils"
|
|
|
|
depends_on "libyaml"
|
|
|
|
depends_on "openssl"
|
|
|
|
depends_on "readline"
|
|
|
|
depends_on "unixodbc"
|
|
|
|
|
|
|
|
def install
|
|
|
|
bash_completion.install "completions/asdf.bash"
|
2017-07-11 05:54:03 +00:00
|
|
|
fish_completion.install "completions/asdf.fish"
|
2017-05-29 19:22:51 +00:00
|
|
|
libexec.install "bin/private"
|
|
|
|
prefix.install Dir["*"]
|
|
|
|
|
2017-09-21 09:48:03 +00:00
|
|
|
inreplace "#{lib}/commands/reshim.sh",
|
|
|
|
"exec $(asdf_dir)/bin/private/asdf-exec ",
|
|
|
|
"exec $(asdf_dir)/libexec/private/asdf-exec "
|
2017-05-29 19:22:51 +00:00
|
|
|
end
|
|
|
|
|
2017-10-18 10:10:48 +00:00
|
|
|
def caveats; <<~EOS
|
2017-05-29 19:22:51 +00:00
|
|
|
Add the following line to your bash profile (e.g. ~/.bashrc, ~/.profile, or ~/.bash_profile)
|
2017-09-21 09:48:03 +00:00
|
|
|
source #{opt_prefix}/asdf.sh
|
2017-07-11 05:54:03 +00:00
|
|
|
|
|
|
|
If you use Fish shell, add the following line to your fish config (e.g. ~/.config/fish/config.fish)
|
2017-09-21 09:48:03 +00:00
|
|
|
source #{opt_prefix}/asdf.fish
|
2017-05-29 19:22:51 +00:00
|
|
|
EOS
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/asdf", "plugin-list"
|
|
|
|
end
|
|
|
|
end
|