etsh: rename from osh

master
ilovezfs 2017-06-24 21:10:45 -07:00
parent d7c9166334
commit e7c2284fa5
3 changed files with 9 additions and 3 deletions

1
Aliases/osh Symbolic link
View File

@ -0,0 +1 @@
../Formula/etsh.rb

View File

@ -1,4 +1,4 @@
class Osh < Formula class Etsh < Formula
desc "Two ports of /bin/sh from V6 UNIX (circa 1975)" desc "Two ports of /bin/sh from V6 UNIX (circa 1975)"
homepage "https://v6shell.org/" homepage "https://v6shell.org/"
url "https://v6shell.org/src/osh-4.4.0.tar.gz" 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" option "with-examples", "Build with shell examples"
conflicts_with "teleport", :because => "both install `tsh` binaries"
resource "examples" do resource "examples" do
url "https://v6shell.org/v6scripts/v6scripts-20160128.tar.gz" url "https://v6shell.org/v6scripts/v6scripts-20160128.tar.gz"
sha256 "c23251137de67b042067b68f71cd85c3993c566831952af305f1fde93edcaf4d" sha256 "c23251137de67b042067b68f71cd85c3993c566831952af305f1fde93edcaf4d"
end end
def install def install
system "./configure", "osh", "sh6" system "./configure"
system "make", "install", "PREFIX=#{prefix}", "SYSCONFDIR=#{etc}", "MANDIR=#{man1}" system "make", "install", "PREFIX=#{prefix}", "SYSCONFDIR=#{etc}", "MANDIR=#{man1}"
bin.install_symlink "etsh" => "osh"
bin.install_symlink "tsh" => "sh6"
if build.with? "examples" if build.with? "examples"
resource("examples").stage do resource("examples").stage do
@ -32,7 +36,7 @@ class Osh < Formula
end end
test do 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" if build.with? "examples"
ENV.prepend_path "PATH", libexec ENV.prepend_path "PATH", libexec

View File

@ -120,6 +120,7 @@
"objective-caml": "ocaml", "objective-caml": "ocaml",
"offline-imap": "offlineimap", "offline-imap": "offlineimap",
"open-mpi16": "open-mpi@1.6", "open-mpi16": "open-mpi@1.6",
"osh": "etsh",
"percona-server55": "percona-server@5.5", "percona-server55": "percona-server@5.5",
"percona-server56": "percona-server@5.6", "percona-server56": "percona-server@5.6",
"perl514": "perl@5.14", "perl514": "perl@5.14",