7ab331f999
Closes #8119. Signed-off-by: Tomasz Pajor <tomek@polishgeeks.com>
30 lines
812 B
Ruby
30 lines
812 B
Ruby
class Zplug < Formula
|
|
desc "The next-generation plugin manager for zsh"
|
|
homepage "https://zplug.sh/"
|
|
url "https://github.com/zplug/zplug/archive/2.4.0.tar.gz"
|
|
sha256 "9afa904ddde29e46587cf3d22f2a20d36d92d0bf7a9193cc68b78d47e66eef73"
|
|
head "https://github.com/zplug/zplug.git"
|
|
|
|
bottle :unneeded
|
|
|
|
depends_on "zsh" => :optional
|
|
|
|
def install
|
|
bin.install Dir["bin/*"]
|
|
man1.install "doc/man/man1/zplug.1"
|
|
prefix.install Dir["*"]
|
|
touch prefix/"packages.zsh"
|
|
end
|
|
|
|
def caveats; <<-EOS.undent
|
|
In order to use zplug, please add the following to your .zshrc:
|
|
export ZPLUG_HOME=#{opt_prefix}
|
|
source $ZPLUG_HOME/init.zsh
|
|
EOS
|
|
end
|
|
|
|
test do
|
|
ENV["ZPLUG_HOME"] = opt_prefix
|
|
system "zsh", "-c", "source #{opt_prefix}/init.zsh && (( $+functions[zplug] ))"
|
|
end
|
|
end
|