2014-03-17 13:26:01 +00:00
|
|
|
class Fsw < Formula
|
|
|
|
homepage "http://emcrisostomo.github.io/fsw/"
|
2015-01-27 13:29:26 +00:00
|
|
|
url "https://github.com/emcrisostomo/fsw/releases/download/1.3.9/fsw-1.3.9.tar.gz"
|
|
|
|
sha1 "bd2b230dc800946941d89512ce9ae8669365d21a"
|
2014-03-17 13:26:01 +00:00
|
|
|
|
|
|
|
def install
|
2014-04-20 17:56:36 +00:00
|
|
|
ENV.append "CXXFLAGS", "-stdlib=libc++"
|
2014-03-17 13:26:01 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--disable-silent-rules",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
io = IO.popen("fsw test")
|
2015-01-27 13:29:26 +00:00
|
|
|
(testpath/"test").write("foo")
|
2014-03-17 13:26:01 +00:00
|
|
|
assert_equal File.expand_path("test"), io.gets.strip
|
|
|
|
Process.kill "INT", io.pid
|
|
|
|
Process.wait io.pid
|
|
|
|
end
|
|
|
|
end
|