2017-03-21 17:46:45 +00:00
|
|
|
class Xsv < Formula
|
|
|
|
desc "Fast CSV toolkit written in Rust."
|
|
|
|
homepage "https://github.com/BurntSushi/xsv"
|
2017-03-28 23:01:27 +00:00
|
|
|
url "https://github.com/BurntSushi/xsv/archive/0.11.0.tar.gz"
|
|
|
|
sha256 "b0c21849eaa445d75765fd56da5f47359ef8cffa5970a329345f1fcb724cb5fe"
|
2017-03-21 17:46:45 +00:00
|
|
|
head "https://github.com/BurntSushi/xsv.git"
|
|
|
|
|
2017-03-21 18:50:06 +00:00
|
|
|
bottle do
|
2017-03-28 23:06:58 +00:00
|
|
|
sha256 "6f7fd81033e00cfb8736e24450a87d98e1f7fc28185644b64a8331ffe0ff6df8" => :sierra
|
|
|
|
sha256 "4be9b4e5af53e4e22c8dbafb83befaaacaf382c0ae24dfcf4a815a91974b6025" => :el_capitan
|
|
|
|
sha256 "eef4f40a15ea50c5526b6efd2c26d97ba103db2fe6fad4050792d41469cd7f37" => :yosemite
|
2017-03-21 18:50:06 +00:00
|
|
|
end
|
|
|
|
|
2017-03-21 17:46:45 +00:00
|
|
|
depends_on "rust" => :build
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "cargo", "build", "--release"
|
|
|
|
|
|
|
|
bin.install "target/release/xsv"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
(testpath/"test.csv").write("first header,second header")
|
|
|
|
system "#{bin}/xsv", "stats", "test.csv"
|
|
|
|
end
|
|
|
|
end
|