aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/mysql-connector-c.rb
blob: d15ead9000fefcd9d707a87a963221e3a4634742 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
require 'formula'

class MysqlConnectorC < Formula
  homepage 'http://dev.mysql.com/downloads/connector/c/6.0.html'
  url 'http://mysql.llarian.net/Downloads/Connector-C/mysql-connector-c-6.0.2.tar.gz'
  sha1 '4c1369953258d040d27ec3a0c29ef0b71c357a17'

  depends_on 'cmake' => :build

  conflicts_with 'percona-server',
    :because => 'both install `mysql_config`'

  fails_with :llvm do
    build 2334
    cause "Unsupported inline asm"
  end

  def install
    system "cmake", ".", *std_cmake_args
    system 'make'
    ENV.j1
    system 'make install'
  end
end