37 lines
1.5 KiB
Ruby
37 lines
1.5 KiB
Ruby
class Dash < Formula
|
|
desc "POSIX-compliant descendant of NetBSD's ash (the Almquist SHell)"
|
|
homepage "http://gondor.apana.org.au/~herbert/dash/"
|
|
url "http://gondor.apana.org.au/~herbert/dash/files/dash-0.5.11.5.tar.gz"
|
|
sha256 "db778110891f7937985f29bf23410fe1c5d669502760f584e54e0e7b29e123bd"
|
|
license "BSD-3-Clause"
|
|
head "https://git.kernel.org/pub/scm/utils/dash/dash.git"
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, arm64_big_sur: "12e8257cfc5dda342cf5df3579e4d75d6c7da1c3e5188ea2bd632f66ca9291dc"
|
|
sha256 cellar: :any_skip_relocation, big_sur: "a7eafa8a473d2bfd1d9fbc207ed863d5765189b6662341420bee8a78cc6d4360"
|
|
sha256 cellar: :any_skip_relocation, catalina: "b7ab66d5cea5b77081f58392eb8f8c66341cf20c94739a77c262f0a1f54716a6"
|
|
sha256 cellar: :any_skip_relocation, mojave: "b7db705a81f667bde21d234b7241d9e0ae0643e9052aa836196095bbd4e98dbb"
|
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "947fffdc8681c896ef07de1dabbd69341458de8d37c106d706d6013942d156c4"
|
|
end
|
|
|
|
depends_on "autoconf" => :build
|
|
depends_on "automake" => :build
|
|
|
|
uses_from_macos "libedit"
|
|
|
|
def install
|
|
ENV["ac_cv_func_stat64"] = "no" if Hardware::CPU.arm?
|
|
system "./autogen.sh" if build.head?
|
|
|
|
system "./configure", "--prefix=#{prefix}",
|
|
"--with-libedit",
|
|
"--disable-dependency-tracking"
|
|
system "make"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/dash", "-c", "echo Hello!"
|
|
end
|
|
end
|