etsh: rename from osh
parent
d7c9166334
commit
e7c2284fa5
|
@ -0,0 +1 @@
|
|||
../Formula/etsh.rb
|
|
@ -1,4 +1,4 @@
|
|||
class Osh < Formula
|
||||
class Etsh < Formula
|
||||
desc "Two ports of /bin/sh from V6 UNIX (circa 1975)"
|
||||
homepage "https://v6shell.org/"
|
||||
url "https://v6shell.org/src/osh-4.4.0.tar.gz"
|
||||
|
@ -14,14 +14,18 @@ class Osh < Formula
|
|||
|
||||
option "with-examples", "Build with shell examples"
|
||||
|
||||
conflicts_with "teleport", :because => "both install `tsh` binaries"
|
||||
|
||||
resource "examples" do
|
||||
url "https://v6shell.org/v6scripts/v6scripts-20160128.tar.gz"
|
||||
sha256 "c23251137de67b042067b68f71cd85c3993c566831952af305f1fde93edcaf4d"
|
||||
end
|
||||
|
||||
def install
|
||||
system "./configure", "osh", "sh6"
|
||||
system "./configure"
|
||||
system "make", "install", "PREFIX=#{prefix}", "SYSCONFDIR=#{etc}", "MANDIR=#{man1}"
|
||||
bin.install_symlink "etsh" => "osh"
|
||||
bin.install_symlink "tsh" => "sh6"
|
||||
|
||||
if build.with? "examples"
|
||||
resource("examples").stage do
|
||||
|
@ -32,7 +36,7 @@ class Osh < Formula
|
|||
end
|
||||
|
||||
test do
|
||||
assert_match "brew!", shell_output("#{bin}/osh -c 'echo brew!'").strip
|
||||
assert_match "brew!", shell_output("#{bin}/etsh -c 'echo brew!'").strip
|
||||
|
||||
if build.with? "examples"
|
||||
ENV.prepend_path "PATH", libexec
|
|
@ -120,6 +120,7 @@
|
|||
"objective-caml": "ocaml",
|
||||
"offline-imap": "offlineimap",
|
||||
"open-mpi16": "open-mpi@1.6",
|
||||
"osh": "etsh",
|
||||
"percona-server55": "percona-server@5.5",
|
||||
"percona-server56": "percona-server@5.6",
|
||||
"perl514": "perl@5.14",
|
||||
|
|
Loading…
Reference in New Issue