aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/twemcache.rb
diff options
context:
space:
mode:
authorBerk D. Demir2012-12-12 03:07:27 -0800
committerAdam Vandenberg2012-12-14 10:18:37 -0800
commitd670728f1a99741d5f955863f5ddb7930f34fb18 (patch)
tree47e96f57e1d81f0db183ba262ae4b7b642f79600 /Library/Formula/twemcache.rb
parent714b31299e4a67eacbf3a7b9426daaa80bd25026 (diff)
downloadhomebrew-d670728f1a99741d5f955863f5ddb7930f34fb18.tar.bz2
twemcache 2.5.3
Closes #16530. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/twemcache.rb')
-rw-r--r--Library/Formula/twemcache.rb30
1 files changed, 30 insertions, 0 deletions
diff --git a/Library/Formula/twemcache.rb b/Library/Formula/twemcache.rb
new file mode 100644
index 000000000..a4aa8cdb0
--- /dev/null
+++ b/Library/Formula/twemcache.rb
@@ -0,0 +1,30 @@
+require 'formula'
+
+class Twemcache < Formula
+ homepage 'https://github.com/twitter/twemcache'
+ head 'https://github.com/twitter/twemcache.git'
+ url "https://github.com/twitter/twemcache/archive/v2.5.3.tar.gz"
+ sha256 '05371d9ed123e01286ea74d9bd1af892be548b84bb24da98118a67a1ec876845'
+
+ option "enable-debug", "Debug mode with assertion panics enabled"
+
+ depends_on :automake
+ depends_on 'libevent'
+
+ def install
+ # After the deprecation of GitHub Downloads, we don't have distribution
+ # downloads anymore. Everything is now a repository download from version
+ # tags.
+ system "autoreconf", "-ivf"
+
+ args = ["--prefix=#{prefix}"]
+ if build.include? "enable-debug"
+ ENV['CFLAGS'] += "-ggdb3 -O0"
+ args << "--enable-debug=full"
+ end
+
+ system "./configure", *args
+ system "make"
+ system "make install"
+ end
+end