aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorDmitry Shaposhnik2013-09-23 13:09:57 -0500
committerAdam Vandenberg2013-10-04 08:07:59 -0700
commit41e82a1c0fcc195becb211af8f69f732f6934d0f (patch)
tree0c9c524e1dd088f8e505ceaf2ab02e105c0d5bee /Library/Formula
parent1bf63f39939d1344a56f64507411f90b68baf440 (diff)
downloadhomebrew-41e82a1c0fcc195becb211af8f69f732f6934d0f.tar.bz2
Sysbench 0.4.12
Closes #22765. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/sysbench.rb24
1 files changed, 24 insertions, 0 deletions
diff --git a/Library/Formula/sysbench.rb b/Library/Formula/sysbench.rb
new file mode 100644
index 000000000..8cf8c2797
--- /dev/null
+++ b/Library/Formula/sysbench.rb
@@ -0,0 +1,24 @@
+require 'formula'
+
+class Sysbench < Formula
+ homepage 'http://sysbench.sourceforge.net/'
+ url 'http://downloads.sourceforge.net/project/sysbench/sysbench/0.4.12/sysbench-0.4.12.tar.gz'
+ sha1 '3f346e8b29b738711546970b027bbb7359d4672a'
+
+ depends_on 'automake'
+ depends_on :mysql => :recommended
+ depends_on :postgresql => :optional
+
+ def install
+ inreplace 'configure.ac', 'AC_PROG_LIBTOOL', 'AC_PROG_RANLIB'
+
+ system "./autogen.sh"
+
+ args = ["--prefix=#{prefix}"]
+ args << "--with-mysql" if build.with? 'mysql'
+ args << "--with-psql" if build.with? 'postgresql'
+
+ system "./configure", *args
+ system "make install"
+ end
+end