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-05-25 06:02:54 +00:00
|
|
|
url "https://github.com/BurntSushi/xsv/archive/0.12.1.tar.gz"
|
|
|
|
sha256 "40e7463f913ce49593b575100fd51f85f2f5deabf918849f2a93c39e057d74a9"
|
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-05-25 06:14:02 +00:00
|
|
|
sha256 "85bd78adf255149d4d6a646462572b72f2a3c154173f34f4b1bfe9f390b77f68" => :sierra
|
|
|
|
sha256 "27100a2dc22c8eb3b885003dfd8b761df21b3ac76f3d285127c381cdd1cdba66" => :el_capitan
|
|
|
|
sha256 "b5171016edd9758a393163ff5393eb77cd0c4936f60badbff77adfd0e8373671" => :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
|