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-01-13 21:05:49 +00:00
|
|
|
url 'https://mirbsd.org/MirOS/dist/mir/mksh/mksh-R49.tgz'
|
|
|
|
sha1 '06b9d0162d1f91ff28d3fa66533e67edb168694d'
|
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
|