blob: 45d3225bfc6adad91962f7797babbcf9b529915d (
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
 | require 'formula'
class Wemux < Formula
  homepage 'https://github.com/zolrath/wemux'
  url 'https://github.com/zolrath/wemux/archive/v3.2.0.tar.gz'
  sha1 '099e6afbd5313aadd9a4dae7fc416f3846888624'
  head 'https://github.com/zolrath/wemux.git'
  bottle do
    cellar :any
    sha1 "519923d54faac98ebfc0772354a0c605e2566519" => :mavericks
    sha1 "215e25340fc5fee5cd838668f928b530ad71a56f" => :mountain_lion
    sha1 "01222b27c6a031f3a0ac1e01079b48664cc0c3af" => :lion
  end
  depends_on 'tmux'
  def install
    inreplace 'wemux', '/usr/local/etc', etc
    bin.install 'wemux'
    man1.install 'man/wemux.1'
    inreplace 'wemux.conf.example', 'change_this', ENV['USER']
    etc.install 'wemux.conf.example' => 'wemux.conf'
  end
  def caveats; <<-EOS.undent
    Your current user account has been automatically added as a wemux host.
    To give a user the ability to host wemux sessions add them to the
    host_list array in:
      #{etc}/wemux.conf
    Either edit the file in your text editor of choice or run `wemux conf` to
    open the file in your $EDITOR.
    EOS
  end
  test do
    system "#{bin}/wemux", "help"
  end
end
 |