Skip to content

Instantly share code, notes, and snippets.

@mpenick
Created February 16, 2016 17:36
Show Gist options
  • Select an option

  • Save mpenick/2333627bb6fd44476eb7 to your computer and use it in GitHub Desktop.

Select an option

Save mpenick/2333627bb6fd44476eb7 to your computer and use it in GitHub Desktop.
require "formula"
class CassandraCppDriver < Formula
homepage "http://datastax.github.io/cpp-driver/"
url "https://github.com/datastax/cpp-driver/archive/2.2.0.tar.gz"
sha1 "743275f46c54944cd81d6c17674e62b96d65ccd0"
version "2.2.0"
head "git://github.com:datastax/cpp-driver.git", :branch => "master"
depends_on "cmake" => :build
depends_on "libuv"
def install
mkdir 'build' do
system "cmake", "-DCMAKE_BUILD_TYPE=RELEASE", "-DCASS_BUILD_STATIC=ON", "-DCMAKE_INSTALL_PREFIX:PATH=#{prefix}", "-DCMAKE_INSTALL_LIBDIR=#{lib}", ".."
system "make", "install"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment