blob: 658944b3cf0db2757933cd7649b6222c6f42b76b (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
 | require 'formula'
class Dash < Formula
  homepage 'http://gondor.apana.org.au/~herbert/dash/'
  url "http://gondor.apana.org.au/~herbert/dash/files/dash-0.5.8.tar.gz"
  sha1 "cd058935bba545427caa375337afe8a6309477d2"
  bottle do
    cellar :any
    sha1 "c1ac235981ac608abb8cdf5649676ac3f40afb2d" => :yosemite
    sha1 "b626fcc3d0a9482b32d2c62b6faa99159324ea82" => :mavericks
    sha1 "6f4795d3a2d23d1010b637b4212c664ac9e5055b" => :mountain_lion
  end
  head do
    url 'https://git.kernel.org/pub/scm/utils/dash/dash.git'
    depends_on "autoconf" => :build
    depends_on "automake" => :build
  end
  def install
    system "./autogen.sh" if build.head?
    system "./configure", "--prefix=#{prefix}",
                          "--with-libedit",
                          "--disable-dependency-tracking",
                          "--enable-fnmatch",
                          "--enable-glob"
    system "make"
    system "make install"
  end
  test do
    system "#{bin}/dash", "-c", "echo Hello!"
  end
end
 |