2014-10-27 18:06:08 +00:00
|
|
|
require "formula"
|
|
|
|
|
|
|
|
class Yash < Formula
|
|
|
|
homepage "http://yash.sourceforge.jp/"
|
2015-04-14 11:55:35 +00:00
|
|
|
url "http://dl.sourceforge.jp/yash/62651/yash-2.37.tar.gz"
|
|
|
|
sha1 "a6ac6fe9434a25a8fd39137a05768aa65076bed6"
|
2014-10-27 18:06:08 +00:00
|
|
|
|
2014-10-27 18:21:52 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-04-14 12:05:54 +00:00
|
|
|
sha256 "e155165566942ee1bde9cd71ef246ef0454befb2e5b23e43ac1eaca007fc8b46" => :yosemite
|
|
|
|
sha256 "469eacccbb09edd965b099476fb616e8e3ecd10071f24c654ac525bde2e65721" => :mavericks
|
|
|
|
sha256 "93538457f7f06a70634be8d1242bae4adb99ff3aac2518ae14b903fd987755ca" => :mountain_lion
|
2014-10-27 18:21:52 +00:00
|
|
|
end
|
|
|
|
|
2014-10-27 18:06:08 +00:00
|
|
|
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
|