1
- require 'formula'
2
-
3
1
class MysqlConnectorC < Formula
4
- homepage 'http://dev.mysql.com/downloads/connector/c/'
5
- url 'http://dev.mysql.com/get/Downloads/Connector-C/mysql-connector-c-6.1.3-src.tar.gz'
6
- sha1 'd70392aafb9ddeddd797c8131898e8727f904898'
2
+ desc "MySQL database connector for C applications"
3
+ homepage "https://dev.mysql.com/downloads/connector/c/"
4
+ url "https://dev.mysql.com/get/Downloads/Connector-C/mysql-connector-c-6.1.6-src.tar.gz"
5
+ sha256 "2222433012c415871958b61bc4f3683e1ebe77e3389f698b267058c12533ea78"
6
+
7
+ bottle do
8
+ sha256 "b7cc223beca61228800d26878f7882b23afeb3a8a4297c1b2b84a9faa604a7e4" => :yosemite
9
+ sha256 "c9a3c310c3eb3f9a0284b6b337bc531e0bb1e5351134fa7d8b26d331aaaebd7b" => :mavericks
10
+ sha256 "5928f92ae51c122d69863ecfdda5f055bc0f6e8aea02c8ae484f3148747f5984" => :mountain_lion
11
+ end
7
12
8
- depends_on ' cmake' => :build
13
+ depends_on " cmake" => :build
9
14
10
- conflicts_with ' mysql' , ' mariadb' , ' percona-server' ,
11
- :because => ' both install MySQL client libraries'
15
+ conflicts_with " mysql" , " mariadb" , " percona-server" ,
16
+ :because => " both install MySQL client libraries"
12
17
13
18
fails_with :llvm do
14
19
build 2334
@@ -17,8 +22,12 @@ class MysqlConnectorC < Formula
17
22
18
23
def install
19
24
system "cmake" , "." , *std_cmake_args
20
- system 'make'
21
- ENV . j1
22
- system 'make install'
25
+ system "make" , "install"
26
+ end
27
+
28
+ test do
29
+ system "#{ bin } /mysql_config" , "--cflags"
30
+ system "#{ bin } /mysql_config" , "--include"
31
+ system "#{ bin } /mysql_config" , "--libs"
23
32
end
24
33
end
0 commit comments