Created
February 16, 2016 17:36
-
-
Save mpenick/2333627bb6fd44476eb7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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