2011-11-28 17:40:42 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Mksh < Formula
|
2013-02-22 21:46:36 +00:00
|
|
|
homepage 'https://mirbsd.org/mksh.htm'
|
2014-10-08 20:38:06 +00:00
|
|
|
url 'http://mirbsd.org/MirOS/dist/mir/mksh/mksh-R50d.tgz'
|
|
|
|
sha1 '0066c260e0ae6736c56189f481607d8306449c53'
|
2011-11-28 17:40:42 +00:00
|
|
|
|
2014-09-10 13:53:38 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2014-10-08 20:47:34 +00:00
|
|
|
sha1 "4e0335469b6ff8bf83257cda6e00bd3205fff163" => :mavericks
|
|
|
|
sha1 "b93d25d2a9c3f606d44567a2cdf400649b7b6cf4" => :mountain_lion
|
|
|
|
sha1 "52e7568da446b9ea44f23a39b6c6542d6e73beb1" => :lion
|
2014-09-10 13:53:38 +00:00
|
|
|
end
|
|
|
|
|
2011-11-28 17:40:42 +00:00
|
|
|
def install
|
2013-07-25 12:17:25 +00:00
|
|
|
system "sh", "./Build.sh", "-r", "-c", (ENV.compiler == :clang ? "lto" : "combine")
|
2011-11-28 17:40:42 +00:00
|
|
|
bin.install 'mksh'
|
|
|
|
man1.install 'mksh.1'
|
|
|
|
end
|
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
To allow using mksh as a login shell, run this as root:
|
|
|
|
echo #{HOMEBREW_PREFIX}/bin/mksh >> /etc/shells
|
2012-03-21 16:16:04 +00:00
|
|
|
Then, any user may run `chsh` to change their shell.
|
2011-11-28 17:40:42 +00:00
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|