aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/direnv.rb
blob: 10e151dadf4b87efc34171bb1be58b29302a36f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
require 'formula'

class Direnv < Formula
  homepage 'http://www.direnv.net'
  url 'https://github.com/zimbatm/direnv/archive/v2.4.0.tar.gz'
  sha1 '1fc9b77eb60c6d22d16bdb059edc1db0f1228dea'

  head 'https://github.com/zimbatm/direnv.git'

  depends_on "go" => :build

  def install
    system "make", "install", "DESTDIR=#{prefix}"
  end

  def caveats; <<-EOS.undent
    At the END of your ~/.bashrc or ~/.zshrc, add the following line:
      eval "$(direnv hook $0)"

    See the wiki for docs and examples:
      https://github.com/zimbatm/direnv/wiki/
    EOS
  end
end