2013-01-13 03:30:53 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Plenv < Formula
|
|
|
|
homepage 'https://github.com/tokuhirom/plenv'
|
2013-06-02 01:45:41 +00:00
|
|
|
url 'https://github.com/tokuhirom/plenv/archive/2.0.1.tar.gz'
|
|
|
|
sha1 '534e9048ff171fee2d47d2508f5af30b92b3107f'
|
2013-01-13 03:30:53 +00:00
|
|
|
|
|
|
|
head 'https://github.com/tokuhirom/plenv.git'
|
|
|
|
|
|
|
|
def install
|
2013-06-01 05:25:23 +00:00
|
|
|
prefix.install 'bin', 'plenv.d', 'completions', 'libexec'
|
|
|
|
|
|
|
|
# Run rehash after installing.
|
|
|
|
system "#{bin}/plenv", "rehash"
|
2013-01-13 03:30:53 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
To enable shims add to your profile:
|
|
|
|
if which plenv > /dev/null; then eval "$(plenv init -)"; fi
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|