blob: d4fbbb1bc9f3168c8a1ea23366dc16c192a39f2e (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
 | require 'formula'
class Exenv < Formula
  homepage 'https://github.com/mururu/exenv'
  url 'https://github.com/mururu/exenv/archive/v0.1.0.tar.gz'
  sha1 '0984b6c260e42d750c8df68c8f48c19a90dc5db9'
  head 'https://github.com/mururu/exenv.git'
  def install
    inreplace 'libexec/exenv', '/usr/local', HOMEBREW_PREFIX
    prefix.install Dir['*']
  end
  def caveats; <<-EOS.undent
    To use Homebrew's directories rather than ~/.exenv add to your profile:
      export EXENV_ROOT=#{var}/exenv
    To enable shims and autocompletion add to your profile:
      if which exenv > /dev/null; then eval "$(exenv init -)"; fi
    EOS
  end
end
 |