dash: Update to 0.5.7 and added glob + fnmatch

dash gets an update to 0.5.7 plus a few additional configure flags
to add functionality to its shell supporting file and directory
globbing and matching expressions from libc fnmatch(3) and glob(3).
I also added a test def.  This was compiled on OSX 64bit 10.6.8
using llvm 2335 and gcc-4.2.1.  It fails_with_clang, an ld error,
though I've not seen fails_with_clang in a formula so I left it out.

     Undefined symbols for architecture x86_64:
       "_bgcmd", referenced from:
           _builtincmd in builtins.o

Closes Homebrew/homebrew#7637.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
This commit is contained in:
Nibbles McGurk 2011-09-14 15:28:29 -07:00 committed by Charlie Sharpsteen
parent 93012982cb
commit d64ab46271

View file

@ -1,9 +1,9 @@
require 'formula'
class Dash < Formula
url 'http://gondor.apana.org.au/~herbert/dash/files/dash-0.5.6.1.tar.gz'
url 'http://gondor.apana.org.au/~herbert/dash/files/dash-0.5.7.tar.gz'
homepage 'http://gondor.apana.org.au/~herbert/dash/'
sha1 '06944456a1e3a2cbc325bffd0c898eff198b210a'
sha1 'a3ebc16f2e2c7ae8adf64e5e62ae3dcb631717c6'
head 'https://git.kernel.org/pub/scm/utils/dash/dash.git', :using => :git
def install
@ -13,8 +13,16 @@ class Dash < Formula
end
system "./configure", "--prefix=#{prefix}",
"--with-libedit"
"--with-libedit",
"--disable-dependency-tracking",
"--enable-fnmatch",
"--enable-glob"
system "make"
system "make install"
end
def test
system "#{HOMEBREW_PREFIX}/bin/dash -c \"echo Hello!\""
puts " ^--- That works."
end
end