42 lines
2.0 KiB
Ruby
42 lines
2.0 KiB
Ruby
class Posh < Formula
|
|
desc "Policy-compliant ordinary shell"
|
|
homepage "https://salsa.debian.org/clint/posh"
|
|
url "https://salsa.debian.org/clint/posh/-/archive/debian/0.14.1/posh-debian-0.14.1.tar.bz2"
|
|
sha256 "3c9ca430977d85ad95d439656269b878bd5bde16521b778c222708910d111c80"
|
|
license "GPL-3.0-or-later"
|
|
|
|
livecheck do
|
|
url :stable
|
|
regex(%r{^debian/v?(\d+(?:\.\d+)+)$}i)
|
|
end
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, arm64_ventura: "f3c1625c3fcfbf58672e6870e8ab89869ca68dc90978d2bd518d21f5f9fcac86"
|
|
sha256 cellar: :any_skip_relocation, arm64_monterey: "6678d5df02415c5e8bb866a7c5e7819f10ef23dd7bb19ba61f8f2cdad612e01f"
|
|
sha256 cellar: :any_skip_relocation, arm64_big_sur: "1b66fa64e195d0429fb1f7c0d0bf7f93c147ffa8533934f694d4ac6da5c4b78f"
|
|
sha256 cellar: :any_skip_relocation, ventura: "f7fe58efa692f3f29ed734868afc118cd0875a6bc82d912bf9d30444f9cd1058"
|
|
sha256 cellar: :any_skip_relocation, monterey: "5e83a4ac84636b1aa38b60ecda3a475f5e10c17aed479d1e9a91162765ab0bf6"
|
|
sha256 cellar: :any_skip_relocation, big_sur: "970ac65535d1bb793b2312b7d1ce56861576c981ffc4c1fe049d290a5ba98118"
|
|
sha256 cellar: :any_skip_relocation, catalina: "9a30988f801e9c31ad6fefd48a232a5c95990300eb396a4c32a991176f8350b6"
|
|
sha256 cellar: :any_skip_relocation, mojave: "20157fe0e9ff5389d07f85079a3137112cd6ad5bff5081d247e8778a082281c8"
|
|
sha256 cellar: :any_skip_relocation, high_sierra: "bfee90257c267d2bd68ec3501887901179f4464d3e6d5b9afb42580ef1db4677"
|
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "1d97ee0b895a51027075cf2ba1b4644b7a9c0202b4b1ea989252bae13924a41d"
|
|
end
|
|
|
|
depends_on "autoconf" => :build
|
|
depends_on "automake" => :build
|
|
|
|
def install
|
|
system "autoreconf", "-fiv"
|
|
system "./configure", "--disable-dependency-tracking",
|
|
"--disable-silent-rules",
|
|
"--prefix=#{prefix}"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
output = shell_output("#{bin}/posh -c 'echo homebrew'")
|
|
assert_equal "homebrew", output.chomp
|
|
end
|
|
end
|