36 lines
953 B
Ruby
36 lines
953 B
Ruby
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
|