From 12a4e662c979ba99fa850ec539ac26170f4adcbe Mon Sep 17 00:00:00 2001 From: Nibbles McGurk Date: Wed, 14 Sep 2011 15:28:29 -0700 Subject: 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 #7637. Signed-off-by: Charlie Sharpsteen --- Library/Formula/dash.rb | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/dash.rb b/Library/Formula/dash.rb index e97298d0e..5eac688d0 100644 --- a/Library/Formula/dash.rb +++ b/Library/Formula/dash.rb @@ -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 -- cgit v1.2.3