aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJohnathan Conley2013-08-30 10:42:39 -0500
committerAdam Vandenberg2013-09-14 21:28:14 -0700
commit13a66e21416889e132e12fc83ff2eee0279408d6 (patch)
tree7ad77c88090a0ac1bc3b1da576f77c784864a70e /Library
parent3e4694f185cce36ab097137fc68718e9f09b48bf (diff)
downloadhomebrew-13a66e21416889e132e12fc83ff2eee0279408d6.tar.bz2
hamsterdb 2.1.2
hamsterdb is an embedded nosql key-value store Closes #22219. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/hamsterdb.rb46
1 files changed, 46 insertions, 0 deletions
diff --git a/Library/Formula/hamsterdb.rb b/Library/Formula/hamsterdb.rb
new file mode 100644
index 000000000..f69dc3e2a
--- /dev/null
+++ b/Library/Formula/hamsterdb.rb
@@ -0,0 +1,46 @@
+require 'formula'
+
+class Hamsterdb < Formula
+ homepage 'http://hamsterdb.com'
+ head 'https://github.com/cruppstahl/hamsterdb.git', :branch => 'topic/next'
+ url 'http://hamsterdb.com/dl/hamsterdb-2.1.2.tar.gz'
+ sha256 '5d1adbd25aad38646c83b8db013dc02af563c2447bd79b25aeac6cc287d098b0'
+
+ option 'without-java', 'Do not build the Java wrapper'
+ option 'without-remote', 'Disable access to remote databases'
+
+ depends_on 'boost'
+ depends_on 'gnutls'
+
+ if build.head?
+ depends_on 'automake' => :build
+ depends_on 'libtool' => :build
+ end
+
+ if build.with? 'remote'
+ depends_on 'protobuf'
+ depends_on 'libuv'
+ end
+
+ def install
+
+ if build.head?
+ inreplace 'bootstrap.sh', /^libtoolize/, 'glibtoolize'
+ system "./bootstrap.sh"
+ end
+
+ features = []
+ features << '--disable-java' if build.without? 'java'
+ features << '--disable-remote' if build.without? 'remote'
+
+ system "./configure", "--disable-debug", "--disable-dependency-tracking",
+ "--prefix=#{prefix}",
+ *features
+ system "make", "install"
+
+ end
+
+ test do
+ system "#{bin}/ham_info -h"
+ end
+end