2014-02-12 01:24:10 +00:00
|
|
|
require "formula"
|
|
|
|
|
|
|
|
class Ksh < Formula
|
|
|
|
homepage "http://www.kornshell.com"
|
|
|
|
url "http://www2.research.att.com/~astopen/download/tgz/ast-ksh.2012-08-01.tgz",
|
2014-12-17 03:03:43 +00:00
|
|
|
:using => :nounzip, :user => "I accept www.opensource.org/licenses/eclipse:."
|
2014-02-12 01:24:10 +00:00
|
|
|
sha1 "316428e9937806183a134aa1669dea40c3a73695"
|
|
|
|
version "93u+" # Versioning scheme: + means "+ patches", - means "beta/alpha".
|
|
|
|
|
2014-03-08 01:37:02 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2014-05-10 14:30:02 +00:00
|
|
|
revision 1
|
|
|
|
sha1 "e9cb13e19571b48d13c1b51c37d74c8a3206d397" => :mavericks
|
|
|
|
sha1 "568d10076fcb5b145611fd60fa01b0b0fb9d5f39" => :mountain_lion
|
|
|
|
sha1 "ad1c9d854e90b29baee3b1ade2c185ac48119657" => :lion
|
2014-03-08 01:37:02 +00:00
|
|
|
end
|
|
|
|
|
2014-02-12 01:24:10 +00:00
|
|
|
resource "init" do
|
|
|
|
url "http://www2.research.att.com/~astopen/download/tgz/INIT.2012-08-01.tgz",
|
2014-12-17 03:03:43 +00:00
|
|
|
:using => :nounzip, :user => "I accept www.opensource.org/licenses/eclipse:."
|
2014-02-12 01:24:10 +00:00
|
|
|
sha1 "0b472a615db384fe707042baaa3347dc1aa1c81e"
|
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
|
|
|
(buildpath/"lib/package/tgz").install resource("init"), Dir["*.tgz"]
|
|
|
|
|
|
|
|
system "tar", "xzf", "lib/package/tgz/INIT.2012-08-01.tgz"
|
|
|
|
system "/bin/ksh", "bin/package", "read"
|
|
|
|
|
|
|
|
# Needed due to unusal build system.
|
2014-03-20 22:23:04 +00:00
|
|
|
ENV.refurbish_args
|
2014-02-12 01:24:10 +00:00
|
|
|
|
|
|
|
# From Apple"s ksh makefile.
|
|
|
|
kshcppdefines = "-DSHOPT_SPAWN=0 -D_ast_int8_t=int64_t -D_lib_memccpy"
|
|
|
|
system "/bin/ksh", "bin/package", "make", "CCFLAGS=#{kshcppdefines}"
|
|
|
|
|
|
|
|
bin.install "arch/darwin.i386-64/bin/ksh" => "ksh93"
|
2014-03-25 05:47:14 +00:00
|
|
|
bin.install_symlink "ksh93" => "ksh"
|
2014-02-12 01:24:10 +00:00
|
|
|
|
|
|
|
man1.install "arch/darwin.i386-64/man/man1/sh.1" => "ksh93.1"
|
2014-03-25 05:47:14 +00:00
|
|
|
man1.install_symlink "ksh93.1" => "ksh.1"
|
2014-02-12 01:24:10 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
2014-12-10 01:45:14 +00:00
|
|
|
We agreed to the Eclipse Public License 1.0 for you.
|
|
|
|
If this is unacceptable you should uninstall.
|
2014-02-12 01:24:10 +00:00
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|