Skip to content

Instantly share code, notes, and snippets.

@rasky
Created June 3, 2016 00:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rasky/1e50cfe1e3119b0241d99ef27e0020b5 to your computer and use it in GitHub Desktop.
Save rasky/1e50cfe1e3119b0241d99ef27e0020b5 to your computer and use it in GitHub Desktop.
Traildb homebrew formula
class Traildb < Formula
desc "Blazingly-fast database for log-structured data"
homepage "http://traildb.io"
url "https://github.com/traildb/traildb/archive/0.5.tar.gz"
sha256 "4d1b61cc7068ec3313fe6322fc366a996c9d357dd3edf667dd33f0ab2c103271"
depends_on "libarchive"
depends_on "homebrew/boneyard/judy"
depends_on "pkg-config" => :build
def install
ENV["PREFIX"] = prefix
system "./waf", "configure", "install"
end
test do
(testpath/"in.csv").write("1234 1234\n")
system "#{bin}/tdb", "make", "-c", "-i", "in.csv", "--tdb-format", "pkg"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment