d64ab46271
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>
28 lines
816 B
Ruby
28 lines
816 B
Ruby
require 'formula'
|
|
|
|
class Dash < Formula
|
|
url 'http://gondor.apana.org.au/~herbert/dash/files/dash-0.5.7.tar.gz'
|
|
homepage 'http://gondor.apana.org.au/~herbert/dash/'
|
|
sha1 'a3ebc16f2e2c7ae8adf64e5e62ae3dcb631717c6'
|
|
head 'https://git.kernel.org/pub/scm/utils/dash/dash.git', :using => :git
|
|
|
|
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"
|
|
system "make"
|
|
system "make install"
|
|
end
|
|
|
|
def test
|
|
system "#{HOMEBREW_PREFIX}/bin/dash -c \"echo Hello!\""
|
|
puts " ^--- That works."
|
|
end
|
|
end
|