aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/yash.rb
blob: 4369315b35d073ca453decf2b2170d951f0becc3 (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
require "formula"

class Yash < Formula
  homepage "http://yash.sourceforge.jp/"
  url "http://dl.sourceforge.jp/yash/60930/yash-2.36.tar.xz"
  sha1 "da034f893bf34e3851a93e8512f3fb027e59f0f5"

  bottle do
    cellar :any
    sha1 "efa6ac2ec264e4efc16394f55839a89753631903" => :yosemite
    sha1 "803be32d90a8ab8fd2812b342be94316c9727dd8" => :mavericks
    sha1 "bffcef7392e6ddeccda732aea313ae3ea7f1e36d" => :mountain_lion
  end

  def install
    system "sh", "./configure",
            "--prefix=#{prefix}",
            "--enable-alias",
            "--enable-array",
            "--enable-dirstack",
            "--enable-help",
            "--enable-history",
            "--enable-lineedit",
            "--disable-nls",
            "--enable-printf",
            "--enable-socket",
            "--enable-test",
            "--enable-ulimit"
    system "make", "install"
  end

  test do
    system "#{bin}/yash", "-c", "echo hello world"
  end
end