homebrew-core/Formula/posh.rb

23 lines
703 B
Ruby
Raw Normal View History

class Posh < Formula
desc "Policy-compliant ordinary shell"
homepage "https://salsa.debian.org/clint/posh"
url "https://salsa.debian.org/clint/posh/repository/debian/0.13.1/archive.tar.gz"
sha256 "c2c10db047294309a109f09e0c76a0cdc33af39563c847b84149b9ac5210f115"
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