homebrew-core/Formula/dash.rb

31 lines
801 B
Ruby
Raw Normal View History

2009-12-29 12:41:25 +00:00
require 'formula'
2011-03-10 05:11:03 +00:00
class Dash < Formula
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'
sha1 'a3ebc16f2e2c7ae8adf64e5e62ae3dcb631717c6'
2012-04-19 02:37:43 +00:00
head 'https://git.kernel.org/pub/scm/utils/dash/dash.git'
2009-12-29 12:41:25 +00:00
2012-07-07 18:08:22 +00:00
depends_on :automake if ARGV.build_head?
2009-12-29 12:41:25 +00:00
def install
if ARGV.build_head?
system "aclocal"
system "autoreconf -f -i -Wall,no-obsolete"
end
system "./configure", "--prefix=#{prefix}",
"--with-libedit",
"--disable-dependency-tracking",
"--enable-fnmatch",
"--enable-glob"
2009-12-29 12:41:25 +00:00
system "make"
system "make install"
end
def test
system "#{bin}/dash", "-c", "echo Hello!"
end
2009-12-29 12:41:25 +00:00
end