aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/gearman.rb12
1 files changed, 9 insertions, 3 deletions
diff --git a/Library/Formula/gearman.rb b/Library/Formula/gearman.rb
index 49b518925..741627ddb 100644
--- a/Library/Formula/gearman.rb
+++ b/Library/Formula/gearman.rb
@@ -2,16 +2,22 @@ require 'formula'
class Gearman < Formula
homepage 'http://gearman.org/'
- url 'https://launchpad.net/gearmand/1.2/1.1.5/+download/gearmand-1.1.5.tar.gz'
- sha1 '516c7690551ea214198a7502a85e976c136b8d65'
+ url 'https://launchpad.net/gearmand/1.2/1.1.7/+download/gearmand-1.1.7.tar.gz'
+ sha1 '4dbbdfbbfd184f1902fc5b139ec250dc6f260bc8'
+
+ option 'with-mysql', 'Compile with MySQL persistent queue enabled'
depends_on 'pkg-config' => :build
depends_on 'boost'
depends_on 'libevent'
depends_on 'ossp-uuid'
+ depends_on :mysql if build.include? 'with-mysql'
def install
- system "./configure", "--prefix=#{prefix}", "--without-mysql"
+ args = ["--prefix=#{prefix}"]
+ args << "--with-mysql" if build.include? 'with-mysql'
+
+ system "./configure", *args
system "make install"
end