Ticket #5488: cpp-driver.rb

File cpp-driver.rb, 567 bytes (added by fdupont, 3 months ago)

macOS brew file for cpp-driver

Line 
1class CppDriver < Formula
2  desc "DataStax C/C++ Driver for Apache Cassandra"
3  homepage "https://github.com/datastax/cpp-driver"
4  url "https://github.com/datastax/cpp-driver/archive/2.8.0.tar.gz"
5  sha256 "bd437734921c8ad45fe2e81ae0ddf52cc16565a5a82eae5d3295426266c59b47"
6
7  depends_on "cmake" => :build
8  depends_on "libuv"
9  depends_on "openssl"
10
11  def install
12    mkdir "build" do
13      system "cmake", "..", *std_cmake_args
14      system "make", "install"
15      (lib/"pkgconfig").install_symlink lib/"pkgconfig/cassandra.pc" => "cpp-driver.pc"
16    end
17  end
18end