24 lines
673 B
Ruby
24 lines
673 B
Ruby
|
require "formula"
|
||
|
|
||
|
class Fsw < Formula
|
||
|
homepage "http://emcrisostomo.github.io/fsw/"
|
||
|
url "https://github.com/emcrisostomo/fsw/releases/download/v1.3.0/fsw-1.3.0.tar.gz"
|
||
|
sha1 "9350fc405ca62af5ad00edf1d59ce881018abcb5"
|
||
|
|
||
|
def install
|
||
|
ENV.append 'CXXFLAGS', '-stdlib=libc++'
|
||
|
system "./configure", "--disable-dependency-tracking",
|
||
|
"--disable-silent-rules",
|
||
|
"--prefix=#{prefix}"
|
||
|
system "make", "install"
|
||
|
end
|
||
|
|
||
|
test do
|
||
|
io = IO.popen("fsw test")
|
||
|
(testpath/'test').write('foo')
|
||
|
assert_equal File.expand_path("test"), io.gets.strip
|
||
|
Process.kill "INT", io.pid
|
||
|
Process.wait io.pid
|
||
|
end
|
||
|
end
|