diff options
| author | Lucas Clemente | 2014-03-17 14:26:01 +0100 |
|---|---|---|
| committer | Adam Vandenberg | 2014-04-20 10:55:55 -0700 |
| commit | d371aa6dd5cc54cdaaea1ce39ff3fdd78a5da20b (patch) | |
| tree | 13bb07bf870c043f1b71101871b30fe118ee847c /Library/Formula/fsw.rb | |
| parent | 0ca8be8c7252c2d70bf655ec84214ad3bcecb3de (diff) | |
| download | homebrew-d371aa6dd5cc54cdaaea1ce39ff3fdd78a5da20b.tar.bz2 | |
fsw 1.3.0 (new formula)
Closes #27630.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/fsw.rb')
| -rw-r--r-- | Library/Formula/fsw.rb | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Library/Formula/fsw.rb b/Library/Formula/fsw.rb new file mode 100644 index 000000000..6c5af668a --- /dev/null +++ b/Library/Formula/fsw.rb @@ -0,0 +1,23 @@ +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 |
