homebrew-core/Formula/mysql-proxy.rb
Toshiyuki Kawanishi bef4ba514a mysql-proxy 0.8.3
Closes Homebrew/homebrew#25564.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-12-31 07:53:10 +00:00

24 lines
810 B
Ruby

require 'formula'
class MysqlProxy < Formula
homepage 'http://dev.mysql.com/doc/refman/5.6/en/mysql-proxy.html'
url 'http://cdn.mysql.com/Downloads/MySQL-Proxy/mysql-proxy-0.8.3.tar.gz'
sha1 'ce6e03e2bdcafecd06a9c3582096dd4eeacdaaa8'
depends_on :mysql
depends_on 'pkg-config' => :build
depends_on 'glib'
depends_on 'libevent'
depends_on 'lua'
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
# Ugh, don't dump these directly into /usr/local/include.
# Use a subfolder, please.
"--includedir=#{include}/mysqlproxy"
system "make install"
# Copy over the example scripts
(share+"mysqlproxy").install Dir['examples/*.lua']
end
end