aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorNibbles McGurk2011-09-14 15:28:29 -0700
committerCharlie Sharpsteen2011-09-23 20:33:14 -0700
commit12a4e662c979ba99fa850ec539ac26170f4adcbe (patch)
treeb786e9eec492500a024a4e2bef4dba488671497e /Library/Formula
parentdaee5d343df6186ca92f3c027efc88f83fc4b8c8 (diff)
downloadhomebrew-12a4e662c979ba99fa850ec539ac26170f4adcbe.tar.bz2
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 <source@sharpsteen.net>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/dash.rb14
1 files changed, 11 insertions, 3 deletions
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