homebrew-core/Formula/yash.rb
2015-04-14 22:54:43 +08:00

35 lines
1 KiB
Ruby

require "formula"
class Yash < Formula
homepage "http://yash.sourceforge.jp/"
url "http://dl.sourceforge.jp/yash/62651/yash-2.37.tar.gz"
sha1 "a6ac6fe9434a25a8fd39137a05768aa65076bed6"
bottle do
cellar :any
sha256 "e155165566942ee1bde9cd71ef246ef0454befb2e5b23e43ac1eaca007fc8b46" => :yosemite
sha256 "469eacccbb09edd965b099476fb616e8e3ecd10071f24c654ac525bde2e65721" => :mavericks
sha256 "93538457f7f06a70634be8d1242bae4adb99ff3aac2518ae14b903fd987755ca" => :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