2011-03-10 05:11:03 +00:00
|
|
|
class CsvFix < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "CSVfix is a tool for manipulating CSV data"
|
2014-06-27 22:17:14 +00:00
|
|
|
homepage "http://neilb.bitbucket.org/csvfix/"
|
2014-04-26 02:55:31 +00:00
|
|
|
url "https://bitbucket.org/neilb/csvfix/get/version-1.6.tar.gz"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "32982aa0daa933140e1ea5a667fb71d8adc731cc96068de3a8e83815be62c52b"
|
2014-04-26 02:55:31 +00:00
|
|
|
|
|
|
|
needs :cxx11
|
2010-09-17 18:07:00 +00:00
|
|
|
|
|
|
|
def install
|
2014-04-26 02:55:31 +00:00
|
|
|
# clang on Mt. Lion will try to build against libstdc++,
|
|
|
|
# despite -std=gnu++0x
|
|
|
|
ENV.libcxx
|
|
|
|
|
2015-08-03 12:55:31 +00:00
|
|
|
system "make", "lin"
|
2014-04-26 02:55:31 +00:00
|
|
|
bin.install "csvfix/bin/csvfix"
|
2010-09-17 18:07:00 +00:00
|
|
|
end
|
2014-02-11 00:40:06 +00:00
|
|
|
|
|
|
|
test do
|
2015-08-03 12:55:31 +00:00
|
|
|
assert_equal %("foo","bar"
|
|
|
|
),
|
2014-05-04 19:12:41 +00:00
|
|
|
pipe_output("#{bin}/csvfix trim", "foo , bar \n")
|
2014-02-11 00:40:06 +00:00
|
|
|
end
|
2010-09-17 18:07:00 +00:00
|
|
|
end
|