aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/byobu.rb
blob: 35a6beac3abd49889052b83ff94c6dfdc8151e05 (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
25
26
27
require 'formula'

class Byobu < Formula
  homepage 'http://byobu.co'
  url 'https://launchpad.net/byobu/trunk/5.60/+download/byobu_5.60.orig.tar.gz'
  sha1 '567d8d4b4973a8d31e98043a892ca00136714495'

  depends_on 'coreutils'
  depends_on 'gnu-sed' # fails with BSD sed
  depends_on 'tmux'
  depends_on 'newt' => 'with-python'

  def install
    system "./configure", "--prefix=#{prefix}"
    system "make install"
  end

  def caveats; <<-EOS.undent
    Add the following to your shell configuration file:
      export BYOBU_PREFIX=$(brew --prefix)
    EOS
  end

  test do
    system "#{bin}/byobu-config"
  end
end