2009-12-29 12:41:25 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Dash < Formula
|
2010-11-08 03:20:36 +00:00
|
|
|
homepage 'http://gondor.apana.org.au/~herbert/dash/'
|
2012-07-07 18:08:22 +00:00
|
|
|
url 'http://gondor.apana.org.au/~herbert/dash/files/dash-0.5.7.tar.gz'
|
2011-09-14 22:28:29 +00:00
|
|
|
sha1 'a3ebc16f2e2c7ae8adf64e5e62ae3dcb631717c6'
|
2012-04-19 02:37:43 +00:00
|
|
|
|
2013-09-21 23:33:42 +00:00
|
|
|
head do
|
|
|
|
url 'https://git.kernel.org/pub/scm/utils/dash/dash.git'
|
|
|
|
depends_on :automake
|
|
|
|
end
|
2012-02-27 03:44:55 +00:00
|
|
|
|
2009-12-29 12:41:25 +00:00
|
|
|
def install
|
2012-08-27 05:22:07 +00:00
|
|
|
if build.head?
|
2011-02-19 10:27:21 +00:00
|
|
|
system "aclocal"
|
|
|
|
system "autoreconf -f -i -Wall,no-obsolete"
|
|
|
|
end
|
|
|
|
|
|
|
|
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"
|
|
|
|
system "make install"
|
|
|
|
end
|
2011-09-14 22:28:29 +00:00
|
|
|
|
|
|
|
def test
|
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
|