aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/fsw.rb23
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