2011-03-10 05:11:03 +00:00
|
|
|
class Dash < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "POSIX-compliant descendant of NetBSD's ash (the Almquist SHell)"
|
2015-08-03 12:55:31 +00:00
|
|
|
homepage "http://gondor.apana.org.au/~herbert/dash/"
|
2015-01-16 13:58:45 +00:00
|
|
|
url "http://gondor.apana.org.au/~herbert/dash/files/dash-0.5.8.tar.gz"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "c6db3a237747b02d20382a761397563d813b306c020ae28ce25a1c3915fac60f"
|
2012-04-19 02:37:43 +00:00
|
|
|
|
2015-01-16 14:19:42 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha1 "c1ac235981ac608abb8cdf5649676ac3f40afb2d" => :yosemite
|
|
|
|
sha1 "b626fcc3d0a9482b32d2c62b6faa99159324ea82" => :mavericks
|
|
|
|
sha1 "6f4795d3a2d23d1010b637b4212c664ac9e5055b" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2013-09-21 23:33:42 +00:00
|
|
|
head do
|
2015-08-03 12:55:31 +00:00
|
|
|
url "https://git.kernel.org/pub/scm/utils/dash/dash.git"
|
2014-12-04 22:38:00 +00:00
|
|
|
depends_on "autoconf" => :build
|
|
|
|
depends_on "automake" => :build
|
2013-09-21 23:33:42 +00:00
|
|
|
end
|
2012-02-27 03:44:55 +00:00
|
|
|
|
2009-12-29 12:41:25 +00:00
|
|
|
def install
|
2013-11-13 17:58:50 +00:00
|
|
|
system "./autogen.sh" if build.head?
|
2011-02-19 10:27:21 +00:00
|
|
|
|
|
|
|
system "./configure", "--prefix=#{prefix}",
|
2011-09-14 22:28:29 +00:00
|
|
|
"--with-libedit",
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--enable-fnmatch",
|
|
|
|
"--enable-glob"
|
2009-12-29 12:41:25 +00:00
|
|
|
system "make"
|
2015-08-03 12:55:31 +00:00
|
|
|
system "make", "install"
|
2009-12-29 12:41:25 +00:00
|
|
|
end
|
2011-09-14 22:28:29 +00:00
|
|
|
|
2014-02-23 21:31:41 +00:00
|
|
|
test do
|
2012-05-15 21:36:45 +00:00
|
|
|
system "#{bin}/dash", "-c", "echo Hello!"
|
2011-09-14 22:28:29 +00:00
|
|
|
end
|
2009-12-29 12:41:25 +00:00
|
|
|
end
|