PageRenderTime 38ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/Library/Formula/csv-fix.rb

https://bitbucket.org/JoshHagins/homebrew
Ruby | 23 lines | 16 code | 5 blank | 2 comment | 0 complexity | 2cb9c36a4a3fdb88e4cd743bc9036045 MD5 | raw file
  1. require "formula"
  2. class CsvFix < Formula
  3. homepage "http://neilb.bitbucket.org/csvfix/"
  4. url "https://bitbucket.org/neilb/csvfix/get/version-1.6.tar.gz"
  5. sha1 "ca770b47f2e08a09350c4005e6ab3c524798b440"
  6. needs :cxx11
  7. def install
  8. # clang on Mt. Lion will try to build against libstdc++,
  9. # despite -std=gnu++0x
  10. ENV.libcxx
  11. system "make lin"
  12. bin.install "csvfix/bin/csvfix"
  13. end
  14. test do
  15. assert_equal %{"foo","bar"\n},
  16. pipe_output("#{bin}/csvfix trim", "foo , bar \n")
  17. end
  18. end