homebrew-core/Formula/csv-fix.rb
Jason Huebsch 884215d886 csv-fix: update homepage
site moved to bitbucket as stated on old google code site

Closes Homebrew/homebrew#30502.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-06-28 18:37:12 -05:00

26 lines
587 B
Ruby

require "formula"
class CsvFix < Formula
homepage "http://neilb.bitbucket.org/csvfix/"
url "https://bitbucket.org/neilb/csvfix/get/version-1.6.tar.gz"
sha1 "ca770b47f2e08a09350c4005e6ab3c524798b440"
needs :cxx11
def install
# clang on Mt. Lion will try to build against libstdc++,
# despite -std=gnu++0x
ENV.libcxx
system "make lin"
bin.install "csvfix/bin/csvfix"
end
test do
IO.popen("#{bin}/csvfix trim", "w+") do |pipe|
pipe.write "foo , bar \n"
pipe.close_write
assert_equal %{"foo","bar"\n}, pipe.read
end
end
end