blob: aa3a03263b86a59ee173ba7ffbe3881b4e1dac82 (
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
25
26
27
28
29
30
31
32
33
34
|
class MysqlConnectorC < Formula
homepage "http://dev.mysql.com/downloads/connector/c/"
url "http://dev.mysql.com/get/Downloads/Connector-C/mysql-connector-c-6.1.6-src.tar.gz"
sha256 "2222433012c415871958b61bc4f3683e1ebe77e3389f698b267058c12533ea78"
bottle do
sha256 "b7cc223beca61228800d26878f7882b23afeb3a8a4297c1b2b84a9faa604a7e4" => :yosemite
sha256 "c9a3c310c3eb3f9a0284b6b337bc531e0bb1e5351134fa7d8b26d331aaaebd7b" => :mavericks
sha256 "5928f92ae51c122d69863ecfdda5f055bc0f6e8aea02c8ae484f3148747f5984" => :mountain_lion
end
depends_on "cmake" => :build
conflicts_with "mysql", "mariadb", "percona-server",
:because => "both install MySQL client libraries"
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
test do
system "#{bin}/mysql_config", "--cflags"
system "#{bin}/mysql_config", "--include"
system "#{bin}/mysql_config", "--libs"
end
end
|