2012-04-13 02:56:35 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Wemux < Formula
|
|
|
|
homepage 'https://github.com/zolrath/wemux'
|
2014-03-13 19:32:22 +00:00
|
|
|
url 'https://github.com/zolrath/wemux/archive/v3.2.0.tar.gz'
|
|
|
|
sha1 '099e6afbd5313aadd9a4dae7fc416f3846888624'
|
2012-04-13 02:56:35 +00:00
|
|
|
|
|
|
|
head 'https://github.com/zolrath/wemux.git'
|
|
|
|
|
2014-03-13 19:48:34 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2014-03-13 20:53:23 +00:00
|
|
|
sha1 "519923d54faac98ebfc0772354a0c605e2566519" => :mavericks
|
|
|
|
sha1 "215e25340fc5fee5cd838668f928b530ad71a56f" => :mountain_lion
|
|
|
|
sha1 "01222b27c6a031f3a0ac1e01079b48664cc0c3af" => :lion
|
2014-03-13 19:48:34 +00:00
|
|
|
end
|
|
|
|
|
2012-04-13 02:56:35 +00:00
|
|
|
depends_on 'tmux'
|
|
|
|
|
|
|
|
def install
|
2012-07-03 09:28:09 +00:00
|
|
|
inreplace 'wemux', '/usr/local/etc', etc
|
2012-04-13 02:56:35 +00:00
|
|
|
bin.install 'wemux'
|
|
|
|
man1.install 'man/wemux.1'
|
|
|
|
|
2012-07-03 09:28:09 +00:00
|
|
|
inreplace 'wemux.conf.example', 'change_this', ENV['USER']
|
2012-04-13 02:56:35 +00:00
|
|
|
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
|
|
|
|
|
2013-03-25 18:35:22 +00:00
|
|
|
test do
|
|
|
|
system "#{bin}/wemux", "help"
|
2012-04-13 02:56:35 +00:00
|
|
|
end
|
|
|
|
end
|